import 'package:hive/hive.dart';

part 'recommendation_record.g.dart';

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

  @HiveField(1)
  final String restaurantId;

  @HiveField(2)
  final DateTime recommendationDate;

  @HiveField(3)
  final bool visited;

  @HiveField(4)
  final DateTime createdAt;

  RecommendationRecord({
    required this.id,
    required this.restaurantId,
    required this.recommendationDate,
    required this.visited,
    required this.createdAt,
  });
}
