This commit is contained in:
Trey t
2023-06-15 23:44:34 -05:00
parent c2ea70305c
commit 544332c422
9 changed files with 2389 additions and 2170 deletions

View File

@@ -6,7 +6,6 @@
//
import Foundation
struct Equipment: Codable {
let id: Int
let createdAt, updatedAt: String
@@ -19,3 +18,16 @@ struct Equipment: Codable {
case category, name
}
}
struct ExerciseEquipment: Codable, Hashable {
let id: Int
let createdAt, updatedAt: String
let exercise, equipment: Int
enum CodingKeys: String, CodingKey {
case id
case createdAt = "created_at"
case updatedAt = "updated_at"
case equipment, exercise
}
}