71 lines
2.4 KiB
Python
71 lines
2.4 KiB
Python
# =============================================================================
|
|
# 企微IT智能服务台 — 模型包初始化
|
|
# =============================================================================
|
|
# 说明:导出所有模型类,方便 Alembic 和其他模块统一导入
|
|
# 注意:即使某些模型在当前文件未直接使用,也必须导入
|
|
# 否则 Alembic 无法检测到这些模型,不会生成对应的迁移脚本
|
|
# =============================================================================
|
|
|
|
from app.models.conversation import Conversation
|
|
from app.models.message import Message
|
|
from app.models.agent import Agent
|
|
from app.models.quick_reply_template import QuickReplyTemplate
|
|
from app.models.system_config import SystemConfig
|
|
from app.models.funny_phrase import FunnyPhrase
|
|
from app.models.approval_link import ApprovalLink
|
|
from app.models.software_download import SoftwareDownload
|
|
from app.models.agent_note import AgentNote
|
|
from app.models.employee import Employee
|
|
from app.models.todo_item import TodoItem
|
|
from app.models.troubleshooting_template import TroubleshootingTemplate
|
|
from app.models.config_change_log import ConfigChangeLog
|
|
from app.models.role import Role
|
|
from app.models.user_role import UserRole
|
|
from app.models.role_mapping_rule import RoleMappingRule
|
|
from app.models.conversation_evaluation import ConversationEvaluation
|
|
from app.models.audit_log import AuditLog
|
|
from app.models.conversation_annotation import ConversationAnnotation # P2-10 会话标注
|
|
from app.models.knowledge_suggestion import KnowledgeSuggestion # P2-13 知识库自动迭代
|
|
from app.models.knowledge_base import KnowledgeBase
|
|
# 阶段5 自动化闭环模型
|
|
from app.models.automation import (
|
|
AutoSession,
|
|
AutoAction,
|
|
ApprovalTicket,
|
|
ScenarioConfig,
|
|
RuleVersion,
|
|
ActionLog,
|
|
MappingCache,
|
|
)
|
|
# 所有模型类的列表,方便遍历
|
|
__all__ = [
|
|
"Conversation",
|
|
"Message",
|
|
"Agent",
|
|
"QuickReplyTemplate",
|
|
"SystemConfig",
|
|
"FunnyPhrase",
|
|
"ApprovalLink",
|
|
"SoftwareDownload",
|
|
"AgentNote",
|
|
"Employee",
|
|
"TodoItem",
|
|
"TroubleshootingTemplate",
|
|
"ConfigChangeLog",
|
|
"Role",
|
|
"UserRole",
|
|
"RoleMappingRule",
|
|
"ConversationEvaluation",
|
|
"AuditLog",
|
|
"ConversationAnnotation",
|
|
"KnowledgeSuggestion",
|
|
"KnowledgeBase",
|
|
"AutoSession",
|
|
"AutoAction",
|
|
"ApprovalTicket",
|
|
"ScenarioConfig",
|
|
"RuleVersion",
|
|
"ActionLog",
|
|
"MappingCache",
|
|
]
|