import 'package:hive/hive.dart';

part 'visit_record.g.dart';

@HiveType(typeId: 2)
class VisitRecord extends HiveObject {
  @HiveField(0)
  final String id;

  @HiveField(1)
  final String restaurantId;

  @HiveField(2)
  final DateTime visitDate;

  @HiveField(3)
  final bool isConfirmed;

  @HiveField(4)
  final DateTime createdAt;

  VisitRecord({
    required this.id,
    required this.restaurantId,
    required this.visitDate,
    required this.isConfirmed,
    required this.createdAt,
  });
}
