import 'package:hadi_hoda_flutter/features/question/domain/entity/answer_entity.dart'; import 'package:hadi_hoda_flutter/features/question/domain/entity/file_entity.dart'; import 'package:hive/hive.dart'; part 'question_entity.g.dart'; @HiveType(typeId: 1) class QuestionEntity extends HiveObject { @HiveField(0) int? id; @HiveField(1) String? title; @HiveField(2) String? audioId; @HiveField(3) FileEntity? audioInfo; @HiveField(4) int? order; @HiveField(5) int? correctAnswer; @HiveField(6) bool? isActive; @HiveField(7) List? answers; QuestionEntity({ this.id, this.title, this.audioId, this.audioInfo, this.order, this.correctAnswer, this.isActive, this.answers, }); }