Line data Source code
1 : import 'package:hive/hive.dart'; 2 : 3 : import 'helper_group_entity.dart'; 4 : 5 : part 'schema_entity.g.dart'; 6 : 7 : @HiveType(typeId: 0) 8 : class SchemaEntity { 9 : 10 : @HiveField(0) 11 : String projectId; 12 : 13 : @HiveField(1) 14 : List<HelperGroupEntity> groups; 15 : 16 : @HiveField(2) 17 : int schemaVersion; 18 : 19 2 : SchemaEntity({this.projectId, this.groups, this.schemaVersion}); 20 : }