RunLeaderboardEntries table
The RunLeaderboardEntries table in the FitStack - V2 schema has 16 columns, keyed by Id, with 2 foreign keys to RunSessionLeaderboards and RunSessionParticipants.
Columns (16)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| LeaderboardId | uuid | not null, references RunSessionLeaderboards.Id | |
| ParticipantId | uuid | not null, references RunSessionParticipants.Id | |
| Metric | integer | not null | |
| DistanceMeters | numeric | not null | |
| DurationSeconds | integer | not null | |
| AveragePaceSecondsPerKm | numeric | ||
| ElevationGainMeters | numeric | ||
| SplitsCompleted | integer | not null | |
| Rank | integer | not null | |
| Score | double precision | 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 |
Indexes (1)
(LeaderboardId, ParticipantId)unique (IX_RunLeaderboardEntries_LeaderboardId_ParticipantId)
Relationships
RunLeaderboardEntries.LeaderboardIdreferencesRunSessionLeaderboards.IdRunLeaderboardEntries.ParticipantIdreferencesRunSessionParticipants.Id