Spaces:
Running
Running
| import 'package:isar/isar.dart'; | |
| import 'package:uuid/uuid.dart'; | |
| part 'set_entry.g.dart'; | |
| class SetEntry { | |
| Id id = Isar.autoIncrement; | |
| (unique: true) | |
| late String uuid; | |
| final workoutExercise = IsarLink<WorkoutExercise>(); | |
| /// Weight in kg (always stored as kg) | |
| double weight = 0; | |
| int reps = 0; | |
| /// RPE 1-10 | |
| double? rpe; | |
| /// Tempo like 3-1-2-0 | |
| String? tempo; | |
| /// Rest in seconds | |
| int? restSeconds; | |
| /// For timed exercises | |
| double? distance; | |
| int? durationSeconds; | |
| int order = 0; | |
| SetEntry() { | |
| uuid = const Uuid().v4(); | |
| } | |
| } |