Files
TEAM/model/student_model.py
T
2026-09-24 14:22:50 +08:00

32 lines
1.5 KiB
Python

from sqlalchemy import Integer, Column, Date, DateTime, Numeric, String
from util.database import Base
class Student(Base):
"""对应 Excel Sheet:学生表。"""
__tablename__ = "wl_student"
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="逻辑删除字段")