demo seed change 2

This commit is contained in:
Urtzi Alfaro
2025-12-14 11:58:14 +01:00
parent ff830a3415
commit a030bd14c8
44 changed files with 3093 additions and 977 deletions

View File

@@ -50,7 +50,7 @@ class MeasurementUnit(enum.Enum):
class ProductionPriority(enum.Enum):
"""Production batch priority levels"""
LOW = "low"
NORMAL = "normal"
MEDIUM = "medium"
HIGH = "high"
URGENT = "urgent"
@@ -284,7 +284,7 @@ class ProductionBatch(Base):
# Production details
status = Column(SQLEnum(ProductionStatus), nullable=False, default=ProductionStatus.PLANNED, index=True)
priority = Column(SQLEnum(ProductionPriority), nullable=False, default=ProductionPriority.NORMAL)
priority = Column(SQLEnum(ProductionPriority), nullable=False, default=ProductionPriority.MEDIUM)
assigned_staff = Column(JSONB, nullable=True) # List of staff assigned to this batch
production_notes = Column(Text, nullable=True)