2025-01-05 21:05:16 +08:00
|
|
|
from sqlalchemy import Column, Integer, String, SmallInteger
|
2025-03-05 20:56:27 +08:00
|
|
|
from mooc.db.database import Base
|
2025-01-05 21:05:16 +08:00
|
|
|
|
|
|
|
|
|
|
|
class MessageNoticeLog(Base):
|
|
|
|
__tablename__ = 'message_notice_log'
|
|
|
|
|
|
|
|
id = Column(Integer, primary_key=True, index=True, nullable=False)
|
|
|
|
message = Column(String(255), nullable=False)
|
|
|
|
is_read = Column(SmallInteger, nullable=False)
|
|
|
|
uid = Column(Integer, nullable=False)
|
|
|
|
sign = Column(String(22), nullable=False)
|
|
|
|
type = Column(SmallInteger, nullable=False)
|
|
|
|
status = Column(SmallInteger, nullable=True)
|
|
|
|
create_time = Column(Integer, nullable=False)
|
|
|
|
end_time = Column(Integer, nullable=False)
|
|
|
|
url = Column(String(255), nullable=False)
|