WorkoutSessionLeaderboards table
The WorkoutSessionLeaderboards table in the FitStack - V2 schema has 6 columns, keyed by Id, with 1 foreign key to WorkoutSessions. 1 column in LeaderboardEntries references it.
Columns (6)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null, references WorkoutSessions.LeaderboardId | |
| Metric | integer | not null | `LeaderboardMetric`. |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Relationships
WorkoutSessionLeaderboards.IdreferencesWorkoutSessions.LeaderboardIdLeaderboardEntries.LeaderboardIdreferencesWorkoutSessionLeaderboards