UserAchievementProgress table
The UserAchievementProgress table in the FitStack - V2 schema has 9 columns, keyed by Id, with 1 foreign key to Users.
NOT IN THE LIVE DATABASE. SINGULAR table name (`UserAchievementProgress`).
Columns (9)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| UserId | character varying(450) | not null, references Users.Id | |
| MetricType | character varying(100) | not null | `AchievementMetricType` stored as TEXT. |
| CurrentValue | double precision | not null | |
| LastUpdatedAt | timestamp with time zone | not null | |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (1)
(UserId, MetricType)unique (IX_UserAchievementProgress_UserId_MetricType)
Relationships
UserAchievementProgress.UserIdreferencesUsers.Id