ExerciseLogs table
The ExerciseLogs table in the FitStack - V2 schema has 26 columns, keyed by Id, with 2 foreign keys to WorkoutLogs and Exercises.
Columns (26)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| WorkoutLogId | uuid | not null, references WorkoutLogs.Id | |
| ExerciseId | uuid | references Exercises.Id | |
| ExerciseName | text | not null | Snapshot — survives the exercise being renamed or deleted. |
| OrderIndex | integer | not null | |
| Sets | integer | ||
| Reps | integer | ||
| Weight | numeric | ||
| WeightUnit | text | ||
| DurationSeconds | integer | ||
| Distance | numeric | ||
| DistanceUnit | text | ||
| CaloriesBurned | numeric | ||
| RestTimeSeconds | integer | ||
| PerceivedExertion | integer | RPE 1-10. | |
| Tempo | text | ||
| AverageHeartRate | integer | ||
| MaxHeartRate | integer | ||
| IsCompleted | boolean | not null | |
| IsPersonalRecord | boolean | not null | |
| SetData | text | JSON, per-set detail. | |
| Notes | text | ||
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Relationships
ExerciseLogs.WorkoutLogIdreferencesWorkoutLogs.IdExerciseLogs.ExerciseIdreferencesExercises.Id