package com.app.intelligent.board.uidb

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.app.intelligent.board.AppContextHelper
import com.app.intelligent.board.uimodel.KeyboardItemInfo


@Database(
    entities = [KeyboardItemInfo::class],
    version = AppContextHelper.Companion.DB_VERSION,
    exportSchema = false
)
abstract class MyAppDatabase : RoomDatabase() {

    abstract fun ThemesDao(): ListItemDao



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

}