package com.keyborad.theme.trendyborad.database

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.keyborad.theme.trendyborad.TrendyApp
import com.keyborad.theme.trendyborad.bean.BeanDetails


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

    abstract fun ThemesDao(): BeanDetailsDao



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

}