ShiftEvent (v1.0.0)

Shift lifecycle event (start/end)

Signals the start or end of a production shift on a specific line. SHIFT_STARTED events initialize the shift aggregate; SHIFT_ENDED events emit the final snapshot and clear state.

Key Fields

FieldTypeDescription
eventTypeenumSHIFT_STARTED or SHIFT_ENDED
lineIdstringProduction line identifier
shiftNamestringHuman-readable shift name (e.g., “Morning”)
shiftTargetintTarget number of pieces for this shift
timestamplongEvent timestamp in milliseconds since epoch