package com.app.input.personalised.board.basedata

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.app.input.personalised.board.BoartApp
import com.app.input.personalised.board.databean.KeyboardTheme


@Database(
    entities = [KeyboardTheme::class],
    version = BoartApp.Companion.DB_VERSION,
    exportSchema = false
)
abstract class AppDatabase : RoomDatabase() {

    abstract fun ThemesDao(): ThemeDao



    companion object {
        val boartAppDatabase: AppDatabase by lazy {
            Room.databaseBuilder(
                BoartApp.Companion.boartAppInstance, AppDatabase::class.java,
                BoartApp.Companion.DB_NAME
            ).build()
        }
    }

}