package com.app.input.breeze.board.database

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.app.input.breeze.board.App
import com.app.input.breeze.board.bean.KeyboardTheme


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

    abstract fun favoriteThemeDao(): FavoriteThemeDao



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

}