Jisho-Study-Tool/lib/models/history/word_result.dart

22 lines
324 B
Dart
Raw Normal View History

2021-07-19 01:49:18 +02:00
import 'package:objectbox/objectbox.dart';
2021-12-01 23:09:53 +01:00
import 'word_query.dart';
2021-07-19 01:49:18 +02:00
@Entity()
class WordResult {
2021-08-03 22:02:42 +02:00
int id;
2021-07-19 01:49:18 +02:00
@Property(type: PropertyType.date)
DateTime timestamp;
String word;
2021-08-03 22:02:42 +02:00
final searchString = ToOne<WordQuery>();
2021-07-19 01:49:18 +02:00
WordResult({
2021-08-03 22:02:42 +02:00
this.id = 0,
2021-07-26 21:39:17 +02:00
required this.timestamp,
required this.word,
2021-07-19 01:49:18 +02:00
});
2021-12-01 23:09:53 +01:00
}