test一轮完成的版本

This commit is contained in:
2026-09-12 20:55:36 +08:00
parent 004fd75a46
commit c4ae803a34
8 changed files with 50 additions and 68 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ class Student(Base):
stu_id = Column(Integer, primary_key=True, autoincrement=True, comment='内部主键')
# ---------- 业务学号(对外,按规则生成)----------
stu_no = Column(String(20), unique=True, nullable=False, index=True, comment='学号')
# class_id = Column(Integer, ForeignKey('wl_class.id'), nullable=True, comment='班级ID')
class_id = Column(Integer, ForeignKey('class_info.class_id'), nullable=True, comment='班级ID')
stu_name = Column(String(30), nullable=True, comment='学生姓名')
native_place = Column(String(50), nullable=True, comment='籍贯')
graduate_school=Column(String(128), nullable=True, comment='毕业学校')
@@ -18,7 +18,7 @@ class Student(Base):
in_time= Column(Date, nullable=True, comment='入学时间')
out_time= Column(Date, nullable=True, comment='毕业时间')
edu= Column(String(32), nullable=True, comment='学历')
# advisor_id = Column(Integer, ForeignKey('wl_advisor.id'), nullable=True, comment='顾问ID')
advisor_id = Column(Integer, ForeignKey('advisor.adv_id'), nullable=True, comment='顾问ID')
stu_age = Column(Integer, nullable=True, comment='年龄')
stu_gender = Column(String(8), nullable=True, comment='性别')