package com.blue.running.keyboard.run_db

import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.blue.running.keyboard.RunningApp
import com.blue.running.keyboard.run_api.DataDao


@Database(
    entities = [com.blue.running.keyboard.run_jsonbean.ChildData::class],
    version = RunningApp.DB_VERSION,
    exportSchema = false
)
abstract class BaseDataBase : RoomDatabase() {

    abstract fun ThemesDao(): DataDao



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

}