mrz
This commit is contained in:
@@ -10,6 +10,11 @@ class Student_Model(Base):
|
||||
, autoincrement=True
|
||||
,comment='学生编号')
|
||||
|
||||
class_id = Column(Integer
|
||||
,ForeignKey('wl_class.class_id')
|
||||
,comment='班级编号'
|
||||
)
|
||||
|
||||
stu_name=Column(String(100),comment='学生姓名')
|
||||
|
||||
age=Column(Integer,comment='年龄')
|
||||
@@ -49,12 +54,6 @@ class ClassManagement(Base):
|
||||
|
||||
class_id= Column(Integer, primary_key=True, autoincrement=True,comment='班级编号')
|
||||
|
||||
stu_id = Column(Integer
|
||||
,ForeignKey('wl_student.stu_id')
|
||||
,nullable=False
|
||||
,comment='学生编号'
|
||||
)
|
||||
|
||||
class_name = Column(String(100), comment='班级姓名')
|
||||
|
||||
start_class_date = Column(DATE,comment='开课时间')
|
||||
|
||||
Reference in New Issue
Block a user