deleteEverything method
Drops and recreates all tables, fully resetting the database.
Implementation
Future<void> deleteEverything() async {
await transaction(() async {
final m = Migrator(this);
final reversed = allSchemaEntities.toList().reversed;
for (final entity in reversed) {
await m.drop(entity);
}
await m.createAll();
});
}