Files
X-Financial/server/src/app/db/base.py
caoxiaozhu 665a744a43 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
2026-05-12 06:34:36 +00:00

47 lines
1.4 KiB
Python

from app.db.base_class import Base
from app.models.agent_conversation import AgentConversation, AgentConversationMessage
from app.models.agent_asset import AgentAsset, AgentAssetReview, AgentAssetVersion
from app.models.agent_run import AgentRun, AgentToolCall, SemanticParseLog
from app.models.approval import ApprovalRecord
from app.models.audit_log import AuditLog
from app.models.employee_change_log import EmployeeChangeLog
from app.models.employee import Employee
from app.models.financial_record import (
AccountsPayableRecord,
AccountsReceivableRecord,
ExpenseClaim,
ExpenseClaimItem,
)
from app.models.organization import OrganizationUnit
from app.models.reimbursement import ReimbursementRequest
from app.models.role import Role
from app.models.system_model_setting import SystemModelSetting
from app.models.system_setting import SystemSetting
from app.models.system_setting_secret import SystemSettingSecret
__all__ = [
"Base",
"AccountsPayableRecord",
"AccountsReceivableRecord",
"AgentConversation",
"AgentConversationMessage",
"AgentAsset",
"AgentAssetReview",
"AgentAssetVersion",
"AgentRun",
"AgentToolCall",
"ApprovalRecord",
"AuditLog",
"Employee",
"EmployeeChangeLog",
"ExpenseClaim",
"ExpenseClaimItem",
"OrganizationUnit",
"ReimbursementRequest",
"Role",
"SemanticParseLog",
"SystemModelSetting",
"SystemSetting",
"SystemSettingSecret",
]