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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| UserId | text | not null, references Users.Id | |
| EquipmentId | uuid | not null, references Equipment.Id | |
| CreatedAt | timestamp with time zone | not null |
Indexes (1)
(UserId, EquipmentId)unique (IX_UserEquipment_UserId_EquipmentId)
Relationships
UserEquipment.UserIdreferencesUsers.IdUserEquipment.EquipmentIdreferencesEquipment.Id