GymEquipmentMaintenance table
The GymEquipmentMaintenance table in the FitStack - V2 schema has 12 columns, keyed by Id, with 2 foreign keys to GymEquipmentUnits and Employees.
Columns (12)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| UnitId | uuid | not null, references GymEquipmentUnits.Id | Was GymEquipmentId (80). |
| Date | date | not null | |
| PerformedByEmployeeId | uuid | references Employees.Id | The 80 note asked for a performer and notes before building. Here they are. |
| Vendor | character varying(200) | When an outside technician did it. | |
| Notes | character varying(2000) | ||
| CostCents | integer | ||
| Currency | character varying(3) | ||
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (1)
(UnitId, Date)(IX_GymEquipmentMaintenance_UnitId_Date)
Relationships
GymEquipmentMaintenance.UnitIdreferencesGymEquipmentUnits.IdGymEquipmentMaintenance.PerformedByEmployeeIdreferencesEmployees.Id