UserSettings table
The UserSettings table in the FitStack - V2 schema has 8 columns, keyed by Id, with 1 foreign key to Users. 1 column in NotificationSettings references it.
Principal of Users.SettingsId (the FK sits on Users). No audit columns.
Columns (8)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null, references Users.SettingsId | |
| NotificationSettingsId | uuid | not null | |
| PreferredUnitSystem | integer | not null | |
| WeightUnitSystem | integer | not null | |
| DistanceUnitSystem | integer | not null | |
| HeightUnitSystem | integer | not null | |
| ShowBodyComposition | integer | not null | `ProfileDisplayVisibility`, default Off. |
| ShowSchedule | integer | not null | `ProfileDisplayVisibility`, default Off. |
Relationships
UserSettings.IdreferencesUsers.SettingsIdNotificationSettings.IdreferencesUserSettings