模型类

This commit is contained in:
maruizhi
2026-09-24 14:22:50 +08:00
parent a0bf614c77
commit 4c57d748ed
12 changed files with 106 additions and 102 deletions
+21 -21
View File
@@ -8,24 +8,24 @@ class Student(Base):
__tablename__ = "wl_student"
id = Column(Integer, primary_key=True, autoincrement=True)
student_number = Column(String(50), nullable=False)
name = Column(String(100))
gender = Column(String(20))
birth_date = Column(Date)
id_card_number = Column(String(18))
phone_number = Column(String(30))
hometown = Column(String(100))
graduate_school = Column(String(200))
education = Column(String(50))
hobbies = Column(String(500))
trial_date = Column(Date)
expected_salary = Column(Numeric(12, 2))
consultant_id = Column(Integer)
class_id = Column(Integer)
payment_method = Column(String(20))
emergency_contact = Column(String(100))
remark = Column(String(1000))
created_at = Column(DateTime)
updated_at = Column(DateTime)
is_deleted = Column(default=False, nullable=False)
id = Column(Integer, primary_key=True, autoincrement=True, comment="id(逻辑主键)")
student_number = Column(String(50), nullable=False, comment="学号(业务主键)")
name = Column(String(100), comment="姓名")
gender = Column(String(20), comment="性别")
birth_date = Column(Date, comment="出生年月")
id_card_number = Column(String(18), comment="身份证号")
phone_number = Column(String(30), comment="电话号码")
hometown = Column(String(100), comment="籍贯")
graduate_school = Column(String(200), comment="毕业学校")
education = Column(String(50), comment="学历")
hobbies = Column(String(500), comment="兴趣爱好")
trial_date = Column(Date, comment="试听日期")
expected_salary = Column(Numeric(12, 2), comment="就业期望薪资")
consultant_id = Column(Integer, comment="顾问id")
class_id = Column(Integer, comment="班级id")
payment_method = Column(String(20), comment="支付方式")
emergency_contact = Column(String(100), comment="紧急联系人")
remark = Column(String(1000), comment="备注")
created_at = Column(DateTime, comment="数据创建时间")
updated_at = Column(DateTime, comment="数据更新时间")
is_deleted = Column(default=False, nullable=False, comment="逻辑删除字段")