import 'package:hive_flutter/hive_flutter.dart';

part 'dzikir_counter.g.dart';

/// Counter for a single dzikir item on a specific date.
@HiveType(typeId: 3)
class DzikirCounter extends HiveObject {
  @HiveField(0)
  String dzikirId;

  @HiveField(1)
  String date;

  @HiveField(2)
  int count;

  @HiveField(3)
  int target;

  DzikirCounter({
    required this.dzikirId,
    required this.date,
    this.count = 0,
    required this.target,
  });
}
