26 lines
463 B
Swift
26 lines
463 B
Swift
//
|
|
// WorkoutSessionItem.swift
|
|
// WorkoutsPlus
|
|
//
|
|
// Created by Felix Förtsch on 15.10.24.
|
|
//
|
|
|
|
import Foundation
|
|
import SwiftData
|
|
|
|
@Model
|
|
final class WorkoutSessionItem {
|
|
var id = UUID()
|
|
|
|
var workoutSession: WorkoutSession
|
|
|
|
var exerciseData: WorkoutItem
|
|
var actualReps: Int?
|
|
var actualValue: Double?
|
|
|
|
init(workoutSession: WorkoutSession, planned: WorkoutItem) {
|
|
self.workoutSession = workoutSession
|
|
self.exerciseData = planned
|
|
}
|
|
}
|