This commit is contained in:
Trey t
2023-06-25 10:59:20 -05:00
parent 01915752b6
commit 24ee992f93
14 changed files with 448 additions and 727 deletions

View File

@@ -9,18 +9,21 @@ import Foundation
struct CompletedWorkout: Codable {
let id: Int
let workout: Workout
let createdAt, updatedAt: String
let difficulty, totalTime: Int
let difficulty, totalTime: Int?
let workoutStartTime: String
let workout: Int
let notes: String?
let totalCalories: Int?
enum CodingKeys: String, CodingKey {
case id
case id, workout
case createdAt = "created_at"
case updatedAt = "updated_at"
case difficulty
case totalTime = "total_time"
case workoutStartTime = "workout_start_time"
case workout
case notes
case totalCalories = "total_calories"
}
}