This commit is contained in:
maruizhi
2026-09-21 09:54:25 +08:00
parent d0c63f7de8
commit def360eae6
3 changed files with 79 additions and 12 deletions
+4 -5
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='性别')
@@ -30,4 +30,3 @@ class Student_Model(Base):
,onupdate=datetime.now)
Base.metadata.create_all(engine)