KindSubstitutes table
The KindSubstitutes table in the FitStack - V2 schema has 5 columns, keyed by Id, with 2 foreign keys to EquipmentKinds.
Curated by FitStack admins. No audit columns.
Columns (5)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| KindId | uuid | not null, references EquipmentKinds.Id | The Kind an exercise asked for. |
| SubstituteKindId | uuid | not null, references EquipmentKinds.Id | What can stand in for it. DIRECTIONAL: add the reverse row if it holds both ways. |
| Closeness | integer | not null | 1 = near-identical (Smith machine for barbell bench), 2 = same movement different load, 3 = last resort. |
| Notes | character varying(500) |
Indexes (1)
(KindId, SubstituteKindId)unique (IX_KindSubstitutes_KindId_SubstituteKindId)
Relationships
KindSubstitutes.KindIdreferencesEquipmentKinds.IdKindSubstitutes.SubstituteKindIdreferencesEquipmentKinds.Id