RunSessionParticipants table
The RunSessionParticipants table in the FitStack - V2 schema has 39 columns, keyed by Id, with 3 foreign keys to RunSessions, Users and CardioLogs. 2 columns in CardioProgresses and RunLeaderboardEntries reference it.
46 columns and no audit columns — a live-state row that outlives the session it describes.
Columns (39)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| SessionId | uuid | not null, references RunSessions.Id | |
| UserId | text | not null, references Users.Id | |
| CardioLogId | uuid | references CardioLogs.Id | |
| Role | integer | not null | `RunSessionRole`. |
| Status | integer | not null | `RunParticipantStatus`. |
| JoinedAt | timestamp with time zone | ||
| LeftAt | timestamp with time zone | ||
| StartTime | timestamp with time zone | ||
| LastUpdateTime | timestamp with time zone | ||
| EndTime | timestamp with time zone | ||
| CurrentDistanceMeters | numeric | not null | |
| CurrentDurationSeconds | integer | not null | |
| CurrentPaceSecondsPerKm | numeric | ||
| AveragePaceSecondsPerKm | numeric | ||
| CurrentSpeedKmh | numeric | ||
| MaxSpeedKmh | numeric | ||
| CurrentElevationGainMeters | numeric | ||
| CurrentElevationLossMeters | numeric | ||
| CurrentAltitudeMeters | numeric | ||
| CurrentHeartRate | integer | ||
| AverageHeartRate | integer | ||
| MaxHeartRate | integer | ||
| CurrentCadence | integer | ||
| CurrentSplitNumber | integer | not null | |
| CurrentSplitDistanceMeters | numeric | not null | |
| CurrentSplitStartTime | timestamp with time zone | ||
| SplitStartElevationGainMeters | numeric | ||
| SplitStartElevationLossMeters | numeric | ||
| GpsPoints | text | RAW JSON STRING, not jsonb and not a value object — unlike CardioLog.GpsRoute. Inconsistent; worth unifying. | |
| CompletedSplits | text | Raw JSON string. | |
| PauseHistory | text | Raw JSON string. | |
| TotalPausedSeconds | integer | not null | |
| CurrentPauseStartTime | timestamp with time zone | ||
| LastLatitude | numeric | LIVE LOCATION. Broadcast to other participants during a session. | |
| LastLongitude | numeric | LIVE LOCATION. | |
| IsIndoor | boolean | not null | |
| CarriedWeightKg | numeric | ||
| ConnectionId | text | SignalR connection id. Transient state in a durable table. |
Indexes (1)
(SessionId, UserId)unique (IX_RunSessionParticipants_SessionId_UserId)
Relationships
RunSessionParticipants.SessionIdreferencesRunSessions.IdRunSessionParticipants.UserIdreferencesUsers.IdRunSessionParticipants.CardioLogIdreferencesCardioLogs.IdCardioProgresses.RunSessionParticipantIdreferencesRunSessionParticipantsRunLeaderboardEntries.ParticipantIdreferencesRunSessionParticipants