package com.keyboard.themes.key.db

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.keyboard.themes.key.AppThemes
import com.keyboard.themes.key.data.MyData


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

    abstract fun ThemesDao(): DbDao



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

}