Scheduling Domain
Technical architecture of the management scheduling system
Overview
The scheduling domain manages the planning and assignment of staff to restaurant shifts. It integrates with the compliance and shift task systems to ensure operational standards are met.
Database Schema
Scheduling data is organized around weekly schedules and individual shift assignments.
Management Schedules (management_schedules)
Represents a full week of shift planning for a team.
| Column | Type | Description |
|---|---|---|
teamId | text | References teams.id |
weekOf | date | The start date of the week (typically Sunday) |
status | text | draft, published |
publishedAt | timestamp | When the schedule was made public |
Management Shifts (management_shifts)
Individual shift assignments within a schedule.
| Column | Type | Description |
|---|---|---|
scheduleId | text | References management_schedules.id |
userId | text | References users.clerkId |
dayOfWeek | integer | 0-6 (Sunday-Saturday) |
shiftType | text | morning, afternoon, evening |
locationId | text | References locations.id |