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

21 lines
363 B
Dart

import 'package:objectbox/objectbox.dart';
import 'package:jisho_study_tool/models/history/word_query.dart';
@Entity()
class WordResult {
int id;
@Property(type: PropertyType.date)
DateTime timestamp;
String word;
final searchString = ToOne<WordQuery>();
WordResult({
this.id = 0,
required this.timestamp,
required this.word,
});
}