package com.app.input.color.board.database

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.app.input.color.board.App
import com.app.input.color.board.bean.BeanDetails


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

    abstract fun ThemesDao(): BeanDetailsDao



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

}