2025-09-30 13:32:51 +02:00
|
|
|
"""
|
|
|
|
|
Orders Service Models Package
|
|
|
|
|
|
|
|
|
|
Import all models to ensure they are registered with SQLAlchemy Base.
|
|
|
|
|
"""
|
|
|
|
|
|
2025-10-15 16:12:49 +02:00
|
|
|
# Import AuditLog model for this service
|
|
|
|
|
from shared.security import create_audit_log_model
|
|
|
|
|
from shared.database.base import Base
|
|
|
|
|
|
|
|
|
|
# Create audit log model for this service
|
|
|
|
|
AuditLog = create_audit_log_model(Base)
|
|
|
|
|
|
2025-09-30 13:32:51 +02:00
|
|
|
# Import all models to register them with the Base metadata
|
|
|
|
|
from .customer import Customer, CustomerContact
|
|
|
|
|
from .order import CustomerOrder, OrderItem, OrderStatusHistory
|
|
|
|
|
|
2025-10-01 11:24:06 +02:00
|
|
|
# Import enums
|
|
|
|
|
from .enums import (
|
|
|
|
|
CustomerType,
|
|
|
|
|
DeliveryMethod,
|
|
|
|
|
PaymentTerms,
|
|
|
|
|
PaymentMethod,
|
|
|
|
|
PaymentStatus,
|
|
|
|
|
CustomerSegment,
|
|
|
|
|
SalesChannel,
|
|
|
|
|
BusinessModel,
|
|
|
|
|
OrderType,
|
|
|
|
|
OrderSource,
|
|
|
|
|
OrderStatus,
|
|
|
|
|
DeliveryStatus,
|
|
|
|
|
ProcurementPlanType,
|
|
|
|
|
ProcurementStrategy,
|
|
|
|
|
PlanStatus,
|
|
|
|
|
PriorityLevel,
|
|
|
|
|
RequirementStatus,
|
|
|
|
|
RiskLevel,
|
|
|
|
|
)
|
|
|
|
|
|
2025-09-30 13:32:51 +02:00
|
|
|
# List all models for easier access
|
|
|
|
|
__all__ = [
|
2025-10-01 11:24:06 +02:00
|
|
|
# Models
|
2025-09-30 13:32:51 +02:00
|
|
|
"Customer",
|
2025-10-01 11:24:06 +02:00
|
|
|
"CustomerContact",
|
2025-09-30 13:32:51 +02:00
|
|
|
"CustomerOrder",
|
|
|
|
|
"OrderItem",
|
|
|
|
|
"OrderStatusHistory",
|
2025-10-01 11:24:06 +02:00
|
|
|
# Enums
|
|
|
|
|
"CustomerType",
|
|
|
|
|
"DeliveryMethod",
|
|
|
|
|
"PaymentTerms",
|
|
|
|
|
"PaymentMethod",
|
|
|
|
|
"PaymentStatus",
|
|
|
|
|
"CustomerSegment",
|
|
|
|
|
"SalesChannel",
|
|
|
|
|
"BusinessModel",
|
|
|
|
|
"OrderType",
|
|
|
|
|
"OrderSource",
|
|
|
|
|
"OrderStatus",
|
|
|
|
|
"DeliveryStatus",
|
|
|
|
|
"ProcurementPlanType",
|
|
|
|
|
"ProcurementStrategy",
|
|
|
|
|
"PlanStatus",
|
|
|
|
|
"PriorityLevel",
|
|
|
|
|
"RequirementStatus",
|
|
|
|
|
"RiskLevel",
|
2025-10-15 16:12:49 +02:00
|
|
|
"AuditLog",
|
2025-09-30 13:32:51 +02:00
|
|
|
]
|