Skip to main content

Database Overview

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

The canonical scheduling foundation is persisted by Attendance Service. It stores shifts, employee assignments, tenant weekday rules, policies and rules, plus configuration audit/timeline evidence. Holiday persistence is outside that canonical slice.

Ownership

BoundaryVerified roleMaturity
Attendance runtime contextCanonical shifts, assignments, weekly-off rules, attendance policiesFoundation/Partial
Leave runtime contextLeave-owned holidays and weekly-off calendarTransitional adjacent owner
Monolith runtime contextLegacy shifts, holidays, weekly offs, and employee shift referenceTransitional fallback/source
Backfill contextWrites canonical entities while preserving compatibility identityTransitional migration tool

System of record

The code supports gateway-controlled ownership, so production authority cannot be inferred from source alone. Canonical model ownership is Attendance Service; runtime cutover state requires confirmation.

Exclusions

Attendance records, punches, payroll snapshots, leave requests, and unrelated context entities are outside the schema total except where they explain an integration boundary.

Source References

  • microservices/src/attendance-service/Infrastructure/AttendanceDbContext.cs
  • microservices/src/leave-service/Infrastructure/LeaveDbContext.cs
  • Data/AppDbContext.cs
  • microservices/src/attendance-service/Backfill/ShiftPolicyBackfillTypes.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