Files
1/model/wl_advisor_model.py
T

29 lines
794 B
Python
Raw Normal View History

2026-09-12 16:30:43 +08:00
from sqlalchemy import ( Column,Date,DateTime,
ForeignKey,
Integer,
SmallInteger,
String,
func,
)
from sqlalchemy.orm import relationship
from database import Base
class Advisor(Base):
__tablename__ = "advisor"
2026-09-12 20:55:36 +08:00
adv_id = Column(Integer, primary_key=True, autoincrement=True, comment="顾问编号")
adv_name = Column(String(50), nullable=False, index=True, comment="顾问姓名")
adv_gender = Column(String(8), comment="性别")
adv_phone = Column(String(20), index=True, comment="手机号")
adv_email = Column(String(64), comment="邮箱")
adv_region = Column(String(64), comment="负责区域/招生渠道")
2026-09-12 16:30:43 +08:00
is_deleted = Column(SmallInteger,nullable=False, default=0,server_default="0",
index=True,comment="1=已删除",)
2026-09-14 14:50:25 +08:00
2026-09-12 16:30:43 +08:00