package com.keyboard.skinning.cool.db

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.keyboard.skinning.cool.App
import com.keyboard.skinning.cool.data.ChildData
import com.keyboard.skinning.cool.listener.DataDao


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

    abstract fun ThemesDao(): DataDao



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

}