LeaderboardEntries table
The LeaderboardEntries table in the FitStack - V2 schema has 13 columns, keyed by Id, with 2 foreign keys to WorkoutSessionLeaderboards and WorkoutSessionParticipants.
Columns (13)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| LeaderboardId | uuid | not null, references WorkoutSessionLeaderboards.Id | |
| ParticipantId | uuid | not null, references WorkoutSessionParticipants.Id | |
| Metric | integer | not null | |
| Value | numeric | not null | |
| Progress | numeric | not null | |
| Score | double precision | not null | |
| Rank | integer | not null | |
| UpdatedAt | 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 |
Relationships
LeaderboardEntries.LeaderboardIdreferencesWorkoutSessionLeaderboards.IdLeaderboardEntries.ParticipantIdreferencesWorkoutSessionParticipants.Id