import 'package:hive_flutter/hive_flutter.dart';

part 'quran_bookmark.g.dart';

/// A bookmarked Quran verse.
@HiveType(typeId: 4)
class QuranBookmark extends HiveObject {
  @HiveField(0)
  int surahId;

  @HiveField(1)
  int verseId;

  @HiveField(2)
  String surahName;

  @HiveField(3)
  String verseText; // Arabic snippet

  @HiveField(4)
  DateTime savedAt;

  @HiveField(5)
  bool isLastRead;

  @HiveField(6)
  String? verseLatin;

  @HiveField(7)
  String? verseTranslation;

  QuranBookmark({
    required this.surahId,
    required this.verseId,
    required this.surahName,
    required this.verseText,
    required this.savedAt,
    this.isLastRead = false,
    this.verseLatin,
    this.verseTranslation,
  });
}
