package com.key.board.journey.inputmethod.mydata

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.key.board.journey.inputmethod.MyKeyboard
import com.key.board.journey.inputmethod.data.ChildBean


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

    abstract fun ThemesDao(): MyDao



    companion object {
        val baseDataBase: BaseDataBase by lazy {
            Room.databaseBuilder(
                MyKeyboard.myKeyboardInstance, BaseDataBase::class.java,
                MyKeyboard.DB_NAME
            ).build()
        }
    }

}