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)

Columns of the RunSessionParticipants table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
SessionIduuidnot null, references RunSessions.Id
UserIdtextnot null, references Users.Id
CardioLogIduuidreferences CardioLogs.Id
Roleintegernot null`RunSessionRole`.
Statusintegernot null`RunParticipantStatus`.
JoinedAttimestamp with time zone
LeftAttimestamp with time zone
StartTimetimestamp with time zone
LastUpdateTimetimestamp with time zone
EndTimetimestamp with time zone
CurrentDistanceMetersnumericnot null
CurrentDurationSecondsintegernot null
CurrentPaceSecondsPerKmnumeric
AveragePaceSecondsPerKmnumeric
CurrentSpeedKmhnumeric
MaxSpeedKmhnumeric
CurrentElevationGainMetersnumeric
CurrentElevationLossMetersnumeric
CurrentAltitudeMetersnumeric
CurrentHeartRateinteger
AverageHeartRateinteger
MaxHeartRateinteger
CurrentCadenceinteger
CurrentSplitNumberintegernot null
CurrentSplitDistanceMetersnumericnot null
CurrentSplitStartTimetimestamp with time zone
SplitStartElevationGainMetersnumeric
SplitStartElevationLossMetersnumeric
GpsPointstextRAW JSON STRING, not jsonb and not a value object — unlike CardioLog.GpsRoute. Inconsistent; worth unifying.
CompletedSplitstextRaw JSON string.
PauseHistorytextRaw JSON string.
TotalPausedSecondsintegernot null
CurrentPauseStartTimetimestamp with time zone
LastLatitudenumericLIVE LOCATION. Broadcast to other participants during a session.
LastLongitudenumericLIVE LOCATION.
IsIndoorbooleannot null
CarriedWeightKgnumeric
ConnectionIdtextSignalR connection id. Transient state in a durable table.

Indexes (1)

  • (SessionId, UserId) unique (IX_RunSessionParticipants_SessionId_UserId)

Relationships