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 { 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; }