import 'package:guru_utils/property/storage/db/property_database.dart';
import 'package:guru_utils/property/storage/property_storage.dart';
import 'package:guru_utils/database/database.dart';

/// Created by Haoyi on 2023/6/5

final List<TableCreator> _creatorV1 = [PropertyEntity.createTable];

abstract class _UiDB extends AppDatabase with PropertyStorage {}

class UiDB extends _UiDB with PropertyDatabase {
  static final UiDB instance = UiDB._();

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

  @override
  String get dbName => "uiux";

  @override
  List<Migration> get migrations => [];

  @override
  List<TableCreator> get tableCreators => _creatorV1;

  @override
  int get version => 1;
}
