package com.rich.keyboard.skin.db

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.rich.keyboard.skin.MyApp
import com.rich.keyboard.skin.localdata.Child
@Database(
    entities = [Child::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()
        }
    }

}