wip
This commit is contained in:
@ -9,16 +9,14 @@ final class WorkoutLog {
|
||||
var weight: Int = 0
|
||||
var status: WorkoutStatus? = WorkoutStatus.notStarted
|
||||
var order: Int = 0
|
||||
var exerciseName: String = ""
|
||||
|
||||
var completed: Bool = false
|
||||
|
||||
@Relationship(deleteRule: .nullify)
|
||||
var workout: Workout?
|
||||
|
||||
@Relationship(deleteRule: .nullify)
|
||||
var exercise: Exercise?
|
||||
|
||||
init(workout: Workout, exercise: Exercise, date: Date, order: Int = 0, sets: Int, reps: Int, weight: Int, status: WorkoutStatus = .notStarted, completed: Bool = false) {
|
||||
init(workout: Workout, exerciseName: String, date: Date, order: Int = 0, sets: Int, reps: Int, weight: Int, status: WorkoutStatus = .notStarted, completed: Bool = false) {
|
||||
self.date = date
|
||||
self.order = order
|
||||
self.sets = sets
|
||||
@ -26,7 +24,7 @@ final class WorkoutLog {
|
||||
self.weight = weight
|
||||
self.status = status
|
||||
self.workout = workout
|
||||
self.exercise = exercise
|
||||
self.exerciseName = exerciseName
|
||||
self.completed = completed
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user