package com.keyboard.keyboardtheme.skin.datamanager.db

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.keyboard.keyboardtheme.skin.MyApp
import com.keyboard.keyboardtheme.skin.datamanager.localdata.Child
@Database(
    entities = [Child::class],
    version = MyApp.DB_VERSION,
    exportSchema = false
)
abstract class RoomBase : RoomDatabase() {
    abstract fun ThemesDao(): interfaceDao
    companion object {
        val myroom: RoomBase by lazy {
            Room.databaseBuilder(
                MyApp.myAppInstance, RoomBase::class.java,
                MyApp.DB_NAME
            ).build()
        }
    }

}