TrainerAbsences table
The TrainerAbsences table in the FitStack - V2 schema has 9 columns, keyed by Id, with 1 foreign key to Trainers.
Sessions inside an absence are flagged for re-staffing; GymTrainerCapability.ManageAbsences gates it.
Columns (9)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| TrainerId | uuid | not null, references Trainers.Id | CASCADE. |
| StartsAt | timestamp with time zone | not null | |
| EndsAt | timestamp with time zone | not null | |
| Reason | character varying(500) | ||
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (1)
(TrainerId, StartsAt)(IX_TrainerAbsences_TrainerId_StartsAt)
Relationships
TrainerAbsences.TrainerIdreferencesTrainers.Id