import 'package:hive/hive.dart'; part 'tilawah_log.g.dart'; @HiveType(typeId: 8) class TilawahLog { @HiveField(0) int targetValue; @HiveField(1) String targetUnit; // 'Juz', 'Halaman', 'Ayat' @HiveField(2) int currentProgress; @HiveField(3) bool autoSync; @HiveField(4) int rawAyatRead; @HiveField(5) bool targetCompleted; TilawahLog({ this.targetValue = 1, this.targetUnit = 'Juz', this.currentProgress = 0, this.autoSync = false, this.rawAyatRead = 0, this.targetCompleted = false, }); bool get isCompleted => targetCompleted; }