ioe/inventory/models.py
2025-04-27 14:50:32 +08:00

32 lines
859 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 这是一个过渡文件,用于确保向后兼容性
# 模型现在已经重构到inventory/models/目录下的各个文件中
# 从重构后的模型结构中导入所有模型
from inventory.models.product import (
Product, Category, Color, Size, Store
)
from inventory.models.inventory import (
Inventory, InventoryTransaction,
check_inventory, update_inventory, StockAlert
)
from inventory.models.inventory_check import (
InventoryCheck, InventoryCheckItem
)
from inventory.models.member import (
Member, MemberLevel, RechargeRecord
)
from inventory.models.sales import (
Sale, SaleItem
)
from inventory.models.common import (
OperationLog
)
# 警告:这个文件将在重构完成后删除
# 请直接从inventory.models导入模型例如:
# from inventory.models import Product