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)

Columns of the TrainerAbsences table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
TrainerIduuidnot null, references Trainers.IdCASCADE.
StartsAttimestamp with time zonenot null
EndsAttimestamp with time zonenot null
Reasoncharacter varying(500)
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (1)

  • (TrainerId, StartsAt) (IX_TrainerAbsences_TrainerId_StartsAt)

Relationships