WorkoutLogs table
The WorkoutLogs table in the FitStack - V2 schema has 22 columns, keyed by Id, with 3 foreign keys to Users, Workouts and WorkoutSessions. 3 columns in ExerciseLogs, CardioLogs and ScheduledItems reference it.
One completed workout. In v1 every insert here was broadcast to all active coaches over SignalR with no consent — see 62.
Columns (22)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| UserId | text | not null, references Users.Id | |
| WorkoutTemplateId | uuid | references Workouts.Id | |
| WorkoutSessionId | uuid | references WorkoutSessions.Id | |
| WorkoutName | text | ||
| WorkoutType | integer | not null | |
| Date | date | not null | |
| StartTime | timestamp with time zone | not null | |
| EndTime | timestamp with time zone | ||
| DurationMinutes | numeric | ||
| CaloriesBurned | numeric | ||
| AverageHeartRate | integer | ||
| MaxHeartRate | integer | ||
| Rating | integer | ||
| Notes | text | ||
| IsCompleted | boolean | not null | |
| IsSynced | boolean | not null | |
| ExternalUuid | text | ||
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Relationships
WorkoutLogs.UserIdreferencesUsers.IdWorkoutLogs.WorkoutTemplateIdreferencesWorkouts.IdWorkoutLogs.WorkoutSessionIdreferencesWorkoutSessions.IdExerciseLogs.WorkoutLogIdreferencesWorkoutLogsCardioLogs.WorkoutLogIdreferencesWorkoutLogsScheduledItems.WorkoutLogIdreferencesWorkoutLogs