UserEquipment table

The UserEquipment table in the FitStack - V2 schema has 4 columns, keyed by Id, with 2 foreign keys to Users and Equipment.

What kit a user owns — drives "can I do this workout at home". No audit columns.

Columns (4)

Columns of the UserEquipment table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
UserIdtextnot null, references Users.Id
EquipmentIduuidnot null, references Equipment.Id
CreatedAttimestamp with time zonenot null

Indexes (1)

  • (UserId, EquipmentId) unique (IX_UserEquipment_UserId_EquipmentId)

Relationships