Files
arlo/database/tcontent/model.py
konjacpotato 5c3c429620
All checks were successful
Gitea Actions Demo / deploy (push) Successful in 11s
task: add send common mail task
2026-02-15 15:53:48 +08:00

12 lines
712 B
Python

from sqlalchemy import Column, Integer, String, Text, DateTime, func
from database.database import Base
class TContent(Base):
__tablename__ = 't_content'
id = Column(Integer, primary_key=True, autoincrement=True, comment='自动递增的唯一内容ID')
project = Column(String(64), nullable=False, comment='项目名称', index=True)
subject = Column(String(256), nullable=False, comment='主题')
content = Column(Text, nullable=True, comment='内容')
create_time = Column(DateTime, server_default=func.now(), nullable=False, comment='创建时间')
update_time = Column(DateTime, server_default=func.now(), onupdate=func.now(), nullable=False, comment='更新时间')