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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| GymId | uuid | not null, references Gyms.Id | |
| EquipmentId | uuid | not null, references Equipment.Id | |
| Status | integer | not null | `GymEquipmentStatus`. |
| LastMaintenanceDate | date | ||
| NextMaintenanceDate | date | ||
| MaintenanceFrequency | integer | `MaintenanceFrequency`. | |
| CustomFrequency | integer | Days between maintenance cycles when Frequency = Custom. UI offers days/weeks/months and converts to days. |
Relationships
GymEquipment.GymIdreferencesGyms.IdGymEquipment.EquipmentIdreferencesEquipment.Id