package com.themes.keyboard.black.databasemanager

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.themes.keyboard.black.MyApp
import com.themes.keyboard.black.localdata.ChildData


@Database(
    entities = [ChildData::class],
    version = MyApp.DB_VERSION,
    exportSchema = false
)
abstract class BaseDataBase : RoomDatabase() {

    abstract fun ThemesDao(): MyDao



    companion object {
        val baseDataBase: BaseDataBase by lazy {
            Room.databaseBuilder(
                MyApp.myAppInstance, BaseDataBase::class.java,
                MyApp.DB_NAME
            ).build()
        }
    }

}