package com.color.keyboard.black.database

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.color.keyboard.black.ColorApp
import com.color.keyboard.black.bean.ChildData
import com.color.keyboard.black.myapi.DataDao


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

    abstract fun ThemesDao(): DataDao



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

}