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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| HostId | text | not null, references Users.Id | |
| ScheduledItemId | uuid | references ScheduledItems.Id | |
| LeaderboardId | uuid | not null | |
| Name | text | ||
| Description | text | ||
| ActivityType | integer | not null | `FitnessActivityType`. |
| RunType | integer | `CardioRunType`. | |
| SplitType | integer | not null | |
| Status | integer | not null | `RunSessionStatus`. |
| IsPublic | boolean | not null | |
| StartedAt | timestamp with time zone | ||
| CompletedAt | timestamp with time zone | ||
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Relationships
RunSessions.HostIdreferencesUsers.IdRunSessions.ScheduledItemIdreferencesScheduledItems.IdRunSessionLeaderboards.IdreferencesRunSessionsRunSessionParticipants.SessionIdreferencesRunSessionsRunSessionInvitations.RunSessionIdreferencesRunSessions