mirror of https://github.com/AMT-Cheif/drift.git
23 lines
486 B
Dart
23 lines
486 B
Dart
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> {
|
|
User get moorField;
|
|
|
|
Foo._();
|
|
|
|
factory Foo([void Function(FooBuilder) updates]) = _$Foo;
|
|
}
|
|
|
|
@UseMoor(include: {'tables.moor'})
|
|
class Database extends _$Database {
|
|
Database() : super(VmDatabase.memory());
|
|
|
|
@override
|
|
int get schemaVersion => 1;
|
|
}
|