Equipment table
The Equipment table in the FitStack - V2 schema has 15 columns, keyed by Id, with 2 foreign keys to Media. 9 columns in EquipmentKindLinks, EquipmentSettingOptions, GymEquipmentUnits, GymEquipmentReports and 5 more reference it.
Columns (15)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| Name | character varying(100) | not null | |
| Description | text | not null | |
| EquipmentType | integer | not null | |
| ImageId | uuid | references Media.Id | |
| VideoId | uuid | references Media.Id | |
| RefferalUrl | text | Affiliate link. Misspelling is in the live schema. | |
| RefferalDescription | text | ||
| RefferalImageUrl | text | ||
| IsVerified | boolean | not null | |
| ExternalId | character varying(64) | Id in the imported exercise dataset. | |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (3)
(ExternalId)unique (IX_Equipment_ExternalId)(ImageId)(IX_Equipment_ImageId)(VideoId)(IX_Equipment_VideoId)
Relationships
Equipment.ImageIdreferencesMedia.IdEquipment.VideoIdreferencesMedia.IdEquipmentKindLinks.EquipmentIdreferencesEquipmentEquipmentSettingOptions.EquipmentIdreferencesEquipmentGymEquipmentUnits.EquipmentIdreferencesEquipmentGymEquipmentReports.EquipmentIdreferencesEquipmentEquipmentMuscles.EquipmentIdreferencesEquipmentUserEquipment.EquipmentIdreferencesEquipmentExerciseEquipments.EquipmentIdreferencesEquipmentEquipmentEquipmentTypes.EquipmentIdreferencesEquipmentGymEquipment.EquipmentIdreferencesEquipment