RunSessions table

The RunSessions table in the FitStack - V2 schema has 17 columns, keyed by Id, with 2 foreign keys to Users and ScheduledItems. 3 columns in RunSessionLeaderboards, RunSessionParticipants and RunSessionInvitations reference it.

Columns (17)

Columns of the RunSessions table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
HostIdtextnot null, references Users.Id
ScheduledItemIduuidreferences ScheduledItems.Id
LeaderboardIduuidnot null
Nametext
Descriptiontext
ActivityTypeintegernot null`FitnessActivityType`.
RunTypeinteger`CardioRunType`.
SplitTypeintegernot null
Statusintegernot null`RunSessionStatus`.
IsPublicbooleannot null
StartedAttimestamp with time zone
CompletedAttimestamp with time zone
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Relationships