feat(backend): update database models and add agent_conversation

- base.py: update database base configuration
- models/__init__.py: update models exports
- models/system_setting.py: update system setting model
- models/agent_conversation.py: add new agent conversation model
This commit is contained in:
caoxiaozhu
2026-05-12 06:34:36 +00:00
parent 8227e0ab5c
commit 665a744a43
4 changed files with 65 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ class SystemSetting(Base):
admin_account: Mapped[str] = mapped_column(String(120), default="superadmin")
admin_email: Mapped[str] = mapped_column(String(255), default="")
session_timeout: Mapped[int] = mapped_column(Integer, default=30)
conversation_retention_days: Mapped[int] = mapped_column(Integer, default=3)
notice_email: Mapped[str] = mapped_column(String(255), default="")
mfa_enabled: Mapped[bool] = mapped_column(Boolean, default=True)
strong_password: Mapped[bool] = mapped_column(Boolean, default=True)