Skip to main content

Logical Schema Reference

Audience

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

Reference Content

This page records source-verified Workforce Scheduling persistence behavior and boundaries.

Summary

This is the authoritative logical schema inventory. Physical database and schema names are intentionally excluded. Each relevant entity appears exactly once.

#Logical entityOwner/contextStored purposeTenant modelLifecycle/relationship
1Canonical ShiftAttendanceWorking window and calculation thresholdsRequired tenantActive/inactive; scalar assignments reference it
2Canonical EmployeeShiftAssignmentAttendanceEffective-dated employee-to-shift linkRequired tenantActive state and inclusive optional end
3Canonical WeeklyOffRuleAttendanceWeekday configurationRequired tenantActive/inactive; unique weekday per tenant
4Canonical AttendancePolicyAttendanceDefault attendance thresholdsRequired tenantActive/default; owns rules
5Canonical AttendancePolicyRuleAttendanceOrdered status calculation ruleRequired tenantCascades with parent policy
6AttendanceAuditLogAttendanceConfiguration change evidenceRequired tenantAppend-oriented; text reference
7AttendanceTimelineAttendanceHuman-oriented configuration activityRequired tenantAppend-oriented; text reference
8Leave HolidayLeaveHoliday calendar date and typeRequired tenantIndependent calendar row
9Leave WeeklyOffLeaveLeave-owned weekday textRequired tenantIndependent calendar row
10Legacy ShiftMonolithLegacy working-window contractOptional tenantReferenced by legacy employees
11Legacy WeeklyOffMonolithLegacy active weekday rowOptional tenantIndependent calendar row
12Legacy HolidayMonolithLegacy holiday date and typeOptional tenantIndependent calendar row
13Legacy LaborMonolithEmployee record carrying optional shift referenceOptional tenantReference clears on legacy shift deletion

Exclusions

Attendance operational records, employee read models, snapshots, Leave requests, balances, outbox records, and unrelated monolith entities are outside this Workforce schema inventory. The outbox is omitted because no scheduling-specific event mapping was verified.

Count

Total logical entities: 13.

Source References

  • microservices/src/attendance-service/Infrastructure/AttendanceDbContext.cs
  • microservices/src/leave-service/Infrastructure/LeaveDbContext.cs
  • Data/AppDbContext.cs
  • microservices/src/attendance-service/Domain/TimeOffice/Shift.cs

See Also

Keywords

  • Workforce Scheduling database
  • Shift persistence
  • Attendance policy storage

Revision Information

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