增加科目表的id

This commit is contained in:
2026-09-22 19:14:04 +08:00
parent daed5971ea
commit be1edae34c
4 changed files with 48 additions and 14 deletions
+3 -1
View File
@@ -23,7 +23,9 @@ class Tea(Base):
class_id = Column(Integer
,nullable=False
,comment='班级id')
sub = Column(String(50)
phone = Column(String(50))
subject_id = Column(Integer
, ForeignKey('subject.id')
,nullable=False
,comment='教学科目')
home_place = Column(String(50)