ExerciseKinds table
The ExerciseKinds table in the FitStack - V2 schema has 5 columns, keyed by Id, with 2 foreign keys to Exercises and EquipmentKinds.
What an exercise needs. Complements ExerciseEquipments (21), which links to concrete Entries and stays for imported data; the resolver prefers Kinds. The "available here / use instead" answer for a Gym is: Units whose Entry has the Kind (and Setting) -> KindSubstitutes by Closeness.
Columns (5)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| ExerciseId | uuid | not null, references Exercises.Id | CASCADE. |
| KindId | uuid | not null, references EquipmentKinds.Id | |
| Setting | text | `EquipmentSettingKind`, when the exercise needs a position, e.g. BenchAngle. | |
| SettingValue | character varying(50) | e.g. Incline30. A Unit satisfies the exercise when its Entry has the Kind AND an option with this Setting/Value. |
Indexes (1)
(ExerciseId, KindId)unique (IX_ExerciseKinds_ExerciseId_KindId)
Relationships
ExerciseKinds.ExerciseIdreferencesExercises.IdExerciseKinds.KindIdreferencesEquipmentKinds.Id