Classes table

The Classes table in the FitStack - V2 schema has 8 columns, keyed by Id, with 2 foreign keys to ClassRooms and GymCoaches. 3 columns in ClassCodes, ClassAttendees and ClassPrices reference it.

Taught by a GymCoach, so a class always resolves to a real Coach (60).

Columns (8)

Columns of the Classes table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
ClassRoomIduuidnot null, references ClassRooms.Id
GymCoachIduuidnot null, references GymCoaches.Id
Nametextnot nullCORRECTED: the Gym board typed this column as `uuid`, which was a slip.
CapacityintegerOverrides ClassRooms.Capacity when set.
Starttimestamp with time zonenot null
Endtimestamp with time zonenot null
ExternalPricenumeric(8,2)Drop-in price for non-members.

Relationships