Production line configuration including factory metadata, shift schedule, target production, break periods, and named shift periods (startup, production, break, shutdown). Stored in a compacted Kafka topic and materialized as a KTable for stream enrichment joins.
Key Fields
| Field | Type | Description |
|---|---|---|
| factoryId | string | Factory identifier |
| operationArea | string | Operation area within the factory |
| processLine | string | Human-readable line name |
| schedule | ShiftSchedule | Shift start/end times and name |
| shiftTargetPieces | int | Target production count per shift |
| breaks | array | Legacy scheduled break periods (superseded by periods) |
| periods | array<ShiftPeriodDef> | Named shift periods with type (STARTUP, PRODUCTION, BREAK, SHUTDOWN) |
Example
{ "factoryId": "FACTORY-01", "operationArea": "CNC-MACHINING", "operationOrg": "PLANT-NORTH", "processLine": "CNC-LATHE-01", "schedule": { "shiftStart": "06:00", "shiftEnd": "14:00", "shiftName": "Morning" }, "shiftTargetPieces": 500, "breaks": [ { "start": "09:00", "end": "09:15" }, { "start": "12:00", "end": "12:30" } ], "periods": [ { "name": "Startup", "type": "STARTUP", "start": "06:00", "end": "06:30" }, { "name": "Morning Break", "type": "BREAK", "start": "09:00", "end": "09:15" }, { "name": "Lunch Break", "type": "BREAK", "start": "12:00", "end": "12:30" }, { "name": "Shutdown", "type": "SHUTDOWN", "start": "13:45", "end": "14:00" } ]}