package com.develop.food.base.repo.db

import androidx.room.AutoMigration
import androidx.room.Database
import androidx.room.RoomDatabase
import com.develop.food.base.repo.db.dao.DevConfigDao
import com.develop.food.base.repo.db.dao.UserInfoDao
import com.develop.food.base.repo.entity.DevVersion
import com.develop.food.base.repo.entity.UserFavoriteRecipes
import com.develop.food.base.repo.entity.UserHistoryRecipes
import com.develop.food.base.repo.entity.UserInfo
import com.develop.food.base.repo.entity.UserOnLineRecipes
import com.develop.food.base.repo.entity.UserRecipeStepRemark
import com.develop.food.base.repo.entity.UserTag

@Database(
    entities = [DevVersion::class, UserInfo::class, UserFavoriteRecipes::class, UserHistoryRecipes::class, UserTag::class, UserOnLineRecipes::class,UserRecipeStepRemark::class],
    version = 2,
    autoMigrations = [AutoMigration(from = 1, to = 2)],
    exportSchema = true,
)
abstract class UserDatabase : RoomDatabase() {

    abstract fun userInfoDao(): UserInfoDao

    abstract fun devConfigDao(): DevConfigDao

}