sys_notice.py 655 B

123456789101112131415161718192021
  1. from sqlalchemy import Column, Integer, LargeBinary, String
  2. from domain.models.base_model import UpdateModelBase
  3. class SysNoticeModel(UpdateModelBase):
  4. """
  5. 通知公告表
  6. """
  7. __tablename__ = "sys_notice"
  8. notice_title = Column(String(50), nullable=False, comment="公告标题")
  9. notice_type = Column(
  10. Integer, nullable=False, default=0, comment="公告类型(1通知 2公告)"
  11. )
  12. notice_content = Column(LargeBinary, comment="公告内容")
  13. status = Column(
  14. Integer, nullable=False, default=0, comment="公告状态(0正常 1关闭)"
  15. )
  16. remark = Column(String(255), comment="备注")