2020-02-06 13:27:54 -08:00
|
|
|
import 'package:built_value/built_value.dart';
|
|
|
|
import 'package:moor/moor.dart';
|
|
|
|
import 'package:moor_ffi/moor_ffi.dart';
|
|
|
|
|
|
|
|
part 'database.moor.dart';
|
|
|
|
part 'database.g.dart';
|
|
|
|
|
|
|
|
abstract class Foo implements Built<Foo, FooBuilder> {
|
2020-02-08 06:29:31 -08:00
|
|
|
User get moorField;
|
2020-02-06 13:27:54 -08:00
|
|
|
|
|
|
|
Foo._();
|
|
|
|
|
|
|
|
factory Foo([void Function(FooBuilder) updates]) = _$Foo;
|
|
|
|
}
|
|
|
|
|
2020-02-08 06:29:31 -08:00
|
|
|
@UseMoor(include: {'tables.moor'})
|
2020-02-06 13:27:54 -08:00
|
|
|
class Database extends _$Database {
|
|
|
|
Database() : super(VmDatabase.memory());
|
|
|
|
|
|
|
|
@override
|
|
|
|
int get schemaVersion => 1;
|
|
|
|
}
|