GymEquipment table

The GymEquipment table in the FitStack - V2 schema has 8 columns, keyed by Id, with 2 foreign keys to Gyms and Equipment.

A physical unit on a gym floor, versus the Equipment catalogue entry it instantiates.

Columns (8)

Columns of the GymEquipment table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
GymIduuidnot null, references Gyms.Id
EquipmentIduuidnot null, references Equipment.Id
Statusintegernot null`GymEquipmentStatus`.
LastMaintenanceDatedate
NextMaintenanceDatedate
MaintenanceFrequencyinteger`MaintenanceFrequency`.
CustomFrequencyintegerDays between maintenance cycles when Frequency = Custom. UI offers days/weeks/months and converts to days.

Relationships