Skip to main content

Domain Model

Audience

Developers, QA engineers, support engineers, security engineers, solution architects, and implementation partners.

Reference Content

This page records source-verified technical behavior and boundaries for the workforce-scheduling capability.

Summary

Four tenant-owned concepts form the shift-policy foundation:

ConceptPurposeLifecycle
ShiftNamed daily working window and calculation thresholdsCreate, update, activate, deactivate
Employee shift assignmentEffective-dated link from an employee record to a shiftCreate, end, deactivate
Weekly-off ruleTenant calendar day stateCreate, activate, deactivate
Attendance policyDefault calculation thresholds and ordered status rulesCreate, update, activate state

Aggregate boundaries

Assignments reference shifts and employees by identifiers without navigation properties. Policies own rule collections. Shifts calculate their scheduled duration, including windows that cross midnight. Soft activation state is the normal lifecycle for canonical configuration.

Domain events

These aggregates inherit domain-event support, but no scheduling-specific event mapping was verified in the persistence outbox translator. Attendance lifecycle events are mapped; shift-policy changes are represented through audit and timeline records instead.

Missing model

No schedule period, roster, team, rotation, availability, swap, demand forecast, or publication aggregate was found.

Source References

  • microservices/src/attendance-service/Domain/TimeOffice/Shift.cs
  • microservices/src/attendance-service/Domain/TimeOffice/EmployeeShiftAssignment.cs
  • microservices/src/attendance-service/Domain/TimeOffice/WeeklyOffRule.cs
  • microservices/src/attendance-service/Domain/TimeOffice/AttendancePolicy.cs

See Also

Keywords

  • Workforce scheduling
  • Shift policy
  • Attendance integration

Revision Information

  • Status: Draft
  • Last reviewed: 2026-07-20
  • Next review: 2026-10-20