Files

17 lines
558 B
Python
Raw Permalink Normal View History

2026-09-21 23:17:51 +08:00
# model/advisor.py
# 顾问表:学生表的外键关联表
from sqlalchemy import Column, Integer, String
from database import Base
class Advisor(Base):
__tablename__ = "advisor"
advisor_id = Column(Integer, primary_key=True, autoincrement=True)
advisor_name = Column(String(50), nullable=False, comment="顾问姓名")
is_deleted = Column(Integer, default=0, nullable=False, comment="逻辑删除: 0正常 1删除")
def __repr__(self):
return f"<Advisor(advisor_id={self.advisor_id}, advisor_name='{self.advisor_name}')>"