This commit is contained in:
msj
2026-09-21 09:39:28 +08:00
parent 94c20a01a3
commit 8626f57db5
3 changed files with 80 additions and 8 deletions
+4 -4
View File
@@ -8,10 +8,10 @@ class Student_Model(Base):
, primary_key=True
, autoincrement=True
,comment='学生编号')
# class_id=Column(Integer
# ,ForeignKey('wl_class.class_id')
# ,nullable=False
# ,comment='班级编号')
class_id=Column(Integer
,ForeignKey('wl_class.class_id')
,nullable=False
,comment='班级编号')
stu_name=Column(String(100),comment='学生姓名')
age=Column(Integer,comment='年龄')
gender=Column(String(50),comment='性别')