from sqlalchemy import Column, Integer, String from domain.models.base_model import UpdateModelBase class SysPostModel(UpdateModelBase): """ 岗位信息表 """ __tablename__ = "sys_post" post_code = Column(String(64), nullable=False, comment="岗位编码") post_name = Column(String(50), nullable=False, comment="岗位名称") post_sort = Column(Integer, nullable=False, comment="显示顺序") status = Column(Integer, nullable=False, default=0, comment="状态(0正常 1停用)") remark = Column(String(500), nullable=True, default=None, comment="备注")