1d11bf9fc3
- 后端:创建system_messages表模型和Schema - 后端:实现消息创建、查询、标记已读的服务层 - 后端:新增REST API接口(需admin.system_message权限) - 前端:完善系统消息抽屉弹窗,显示消息列表 - 前端:自动加载未读数量,支持标记已读 - 数据库:新增迁移脚本建表 Co-authored-by: multica-agent <github@multica.ai>
33 lines
877 B
Python
33 lines
877 B
Python
"""Database model package.
|
|
|
|
Import all model modules during package initialization so SQLAlchemy can
|
|
resolve string-based relationships regardless of route/service import order.
|
|
"""
|
|
|
|
from . import atp_asset, atp_model, audit_log, auth_session, elevation, file_storage, fl_analysis, lightning_event, lightning_sample, line, line_tower, menu, object_group, rbac, scheduled_task, system_message, system_param, tower_model, tower_profile, user, wine, worker_registry
|
|
|
|
__all__ = [
|
|
"atp_asset",
|
|
"atp_model",
|
|
"audit_log",
|
|
"auth_session",
|
|
"elevation",
|
|
"file_storage",
|
|
"fl_analysis",
|
|
"lightning_event",
|
|
"lightning_sample",
|
|
"line",
|
|
"line_tower",
|
|
"menu",
|
|
"object_group",
|
|
"rbac",
|
|
"scheduled_task",
|
|
"system_message",
|
|
"system_param",
|
|
"tower_model",
|
|
"tower_profile",
|
|
"user",
|
|
"wine",
|
|
"worker_registry",
|
|
]
|