package com.keyboard.bubble.skin.keyboard.db

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.keyboard.bubble.skin.keyboard.App
import com.keyboard.bubble.skin.keyboard.bean.ChildBean


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

    abstract fun ThemesDao(): MyDao



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

}