import 'package:guru_app/database/creators/creators.dart';
import 'package:guru_utils/database/database.dart';
import 'package:guru_utils/property/storage/property_storage.dart';
import 'package:guru_utils/property/storage/db/property_database.dart';
import "migrations/migrations.dart";

/// Created by Haoyi on 2022/9/7

abstract class _GuruDB extends AppDatabase with PropertyStorage {}

class GuruDB extends _GuruDB with PropertyDatabase {
  static final GuruDB instance = GuruDB._();

  GuruDB._() {
    setDatabase(this);
  }

  @override
  String get dbName => "guru";

  @override
  List<Migration> get migrations => Migrations.migrations;

  @override
  List<TableCreator> get tableCreators => Creators.creators;

  @override
  int get version => 4;
}
