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)

Columns of the ExerciseKinds table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
ExerciseIduuidnot null, references Exercises.IdCASCADE.
KindIduuidnot null, references EquipmentKinds.Id
Settingtext`EquipmentSettingKind`, when the exercise needs a position, e.g. BenchAngle.
SettingValuecharacter 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