Spaces:
Running
Running
File size: 609 Bytes
afe1e75 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | import 'package:isar/isar.dart';
import 'package:uuid/uuid.dart';
part 'set_entry.g.dart';
@collection
class SetEntry {
Id id = Isar.autoIncrement;
@Index(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();
}
} |