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(); /// 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(); } }