Add role-based filtering and imporve code
This commit is contained in:
@@ -5,6 +5,13 @@
|
||||
Production service models
|
||||
"""
|
||||
|
||||
# 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)
|
||||
|
||||
from .production import (
|
||||
ProductionBatch,
|
||||
ProductionSchedule,
|
||||
@@ -31,4 +38,5 @@ __all__ = [
|
||||
"EquipmentStatus",
|
||||
"ProcessStage",
|
||||
"EquipmentType",
|
||||
"AuditLog",
|
||||
]
|
||||
Reference in New Issue
Block a user