Fix Alembic issue
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
"""
|
||||
Inventory Service Models Package
|
||||
|
||||
Import all models to ensure they are registered with SQLAlchemy Base.
|
||||
"""
|
||||
|
||||
# Import all models to register them with the Base metadata
|
||||
from .inventory import (
|
||||
Ingredient,
|
||||
Stock,
|
||||
StockMovement,
|
||||
ProductTransformation,
|
||||
StockAlert,
|
||||
UnitOfMeasure,
|
||||
IngredientCategory,
|
||||
ProductCategory,
|
||||
ProductType,
|
||||
ProductionStage,
|
||||
StockMovementType,
|
||||
)
|
||||
|
||||
from .food_safety import (
|
||||
FoodSafetyCompliance,
|
||||
TemperatureLog,
|
||||
FoodSafetyAlert,
|
||||
FoodSafetyStandard,
|
||||
ComplianceStatus,
|
||||
FoodSafetyAlertType,
|
||||
)
|
||||
|
||||
# List all models for easier access
|
||||
__all__ = [
|
||||
# Inventory models
|
||||
"Ingredient",
|
||||
"Stock",
|
||||
"StockMovement",
|
||||
"ProductTransformation",
|
||||
"StockAlert",
|
||||
# Inventory enums
|
||||
"UnitOfMeasure",
|
||||
"IngredientCategory",
|
||||
"ProductCategory",
|
||||
"ProductType",
|
||||
"ProductionStage",
|
||||
"StockMovementType",
|
||||
# Food safety models
|
||||
"FoodSafetyCompliance",
|
||||
"TemperatureLog",
|
||||
"FoodSafetyAlert",
|
||||
# Food safety enums
|
||||
"FoodSafetyStandard",
|
||||
"ComplianceStatus",
|
||||
"FoodSafetyAlertType",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user