dingdanquanliucheng/backend/app/models/__init__.py

60 lines
1.3 KiB
Python
Raw Normal View History

"""ORM 模型统一导出入口。
business.py system.py 导入所有模型类
其他模块通过 `from backend.app.models import Customer` 方式引用
"""
2026-05-14 13:51:06 +08:00
from backend.app.models.base import AuditMixin, TimestampMixin
from backend.app.models.business import (
AIRecognitionLog,
2026-05-14 13:51:06 +08:00
Customer,
CustomerArrears,
FileAttachment,
2026-05-14 10:15:51 +08:00
LogisticsTask,
LogisticsTrace,
2026-06-15 13:18:43 +08:00
LogisticsWaybill,
OrderSupplierTextLog,
PerformanceStatCache,
2026-05-14 13:51:06 +08:00
Product,
ProductCategory,
2026-06-15 13:18:43 +08:00
ProductPriceTier,
ProductPricingRule,
2026-05-14 13:51:06 +08:00
SalesOrder,
2026-06-15 13:18:43 +08:00
SalesOrderApproveLog,
2026-05-14 13:51:06 +08:00
SalesOrderItem,
Supplier,
2026-06-15 13:18:43 +08:00
SupplierProductCost,
SystemReminder,
2026-05-14 10:15:51 +08:00
)
from backend.app.models.system import AuditLog, Menu, Role, RoleMenu, SystemConfig, User
2026-05-14 10:15:51 +08:00
__all__ = [
2026-05-14 13:51:06 +08:00
"AuditMixin",
"TimestampMixin",
2026-06-15 13:18:43 +08:00
"AIRecognitionLog",
"AuditLog",
2026-05-14 13:51:06 +08:00
"Customer",
"CustomerArrears",
"FileAttachment",
2026-05-14 13:51:06 +08:00
"LogisticsTask",
"LogisticsTrace",
2026-06-15 13:18:43 +08:00
"LogisticsWaybill",
"Menu",
"OrderSupplierTextLog",
"PerformanceStatCache",
2026-05-14 10:15:51 +08:00
"Product",
2026-05-14 13:51:06 +08:00
"ProductCategory",
2026-06-15 13:18:43 +08:00
"ProductPriceTier",
"ProductPricingRule",
"Role",
"RoleMenu",
2026-05-14 10:15:51 +08:00
"SalesOrder",
2026-06-15 13:18:43 +08:00
"SalesOrderApproveLog",
2026-05-14 10:15:51 +08:00
"SalesOrderItem",
2026-05-14 13:51:06 +08:00
"Supplier",
2026-06-15 13:18:43 +08:00
"SupplierProductCost",
2026-05-14 10:15:51 +08:00
"SystemConfig",
2026-06-15 13:18:43 +08:00
"SystemReminder",
2026-05-14 13:51:06 +08:00
"User",
2026-05-14 10:15:51 +08:00
]