create ER diagram, refactor to conform to diagram, simplify session management

This commit is contained in:
Felix Förtsch
2024-10-17 14:41:14 +02:00
parent b7f5caf9dd
commit 97ecbcc6f4
23 changed files with 394 additions and 226 deletions
+3 -2
View File
@@ -22,8 +22,9 @@ public class Defaults: ObservableObject {
@AppStorage("sets") public var sets = 8
@AppStorage("reps") public var reps = 8
@AppStorage("activeWorkoutSessionId") public var activeWorkoutSessionId: String = ""
@AppStorage("activeWorkoutId") public var activeWorkoutId: String = ""
// TODO: Maybe store session and workout ids to recover from app close
// @AppStorage("activeWorkoutSessionId") public var activeWorkoutSessionId: String = ""
// @AppStorage("activeWorkoutId") public var activeWorkoutId: String = ""
public static let shared = Defaults()
}