Muscles table

The Muscles table in the FitStack - V2 schema has 10 columns, keyed by Id, with 1 foreign key to Media. 8 columns in MuscleAliasMuscles, MuscleOrigins, MuscleInsertions, EquipmentMuscles and 4 more reference it.

Hand-rolls its audit columns and uses `UpdatedAt`, not `ModifiedAt` — the only table in the schema that does.

Columns (10)

Columns of the Muscles table
ColumnTypeConstraintsDescription
Idtextprimary key, not nullSTRING key.
Namecharacter varying(100)not null
Descriptiontextnot null
CommonNamecharacter varying(50)
MuscleGroupintegernot nullColumn name is `Group` in the live DB.
Synonymstext[]not null
ImageIduuidreferences Media.Id
IsDeletedbooleannot null
CreatedAttimestamp with time zonenot null
UpdatedAttimestamp with time zone

Indexes (1)

  • (ImageId) (IX_Muscles_ImageId)

Relationships