package com.app.keyboard.colorful.dbbase

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.app.keyboard.colorful.MyApp
import com.app.keyboard.colorful.data.ChildBean


@Database(
    entities = [ChildBean::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()
        }
    }

}