import 'package:hive_flutter/hive_flutter.dart';

part 'checklist_item.g.dart';

/// A single checklist item definition (template, not daily state).
@HiveType(typeId: 1)
class ChecklistItem extends HiveObject {
  @HiveField(0)
  String id;

  @HiveField(1)
  String title;

  @HiveField(2)
  String category;

  @HiveField(3)
  String? subtitle;

  @HiveField(4)
  int sortOrder;

  @HiveField(5)
  bool isCustom;

  ChecklistItem({
    required this.id,
    required this.title,
    required this.category,
    this.subtitle,
    required this.sortOrder,
    this.isCustom = false,
  });
}
