kangda_robot_backend/ruoyi-fastapi-backend/module_admin/entity/do/message_do.py

24 lines
908 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from sqlalchemy import DateTime, String, BigInteger, Column
from config.database import Base
class Message(Base):
"""
系统消息表
"""
__tablename__ = 'message'
message_id = Column(BigInteger, primary_key=True, autoincrement=True, nullable=False, comment='消息主键')
type = Column(String(2), nullable=False, comment='类型0告警消息')
status = Column(String(2), nullable=False, comment='状态0未处理1已处理')
detail = Column(String(512), nullable=True, comment='消息描述')
create_time = Column(DateTime, nullable=False, comment='创建时间')
create_by = Column(String(64), nullable=True, comment='创建者')
update_time = Column(DateTime, nullable=False, comment='更新时间')
update_by = Column(String(64), nullable=False, comment='更新者')
remark = Column(String(512), nullable=True, comment='备注')