package com.keypalette.theme.dataabout.database

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.keypalette.theme.KeyApp
import com.keypalette.theme.dataabout.resource.Data

@Database(
    entities = [Data::class],
    version = KeyApp.Companion.DB_VERSION,
    exportSchema = false
)
abstract class RoomBase : RoomDatabase() {
    abstract fun ThemesDao(): DatabaseDao
    companion object {
        val myroom: RoomBase by lazy {
            Room.databaseBuilder(
                KeyApp.Companion.keyAppInstance, RoomBase::class.java,
                KeyApp.Companion.DB_NAME
            ).build()
        }
    }

}