package com.app.wave.keyboard.database

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.app.wave.keyboard.App
import com.app.wave.keyboard.bean.DetailsBean


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

    abstract fun ThemesDao(): DBDao



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

}