package ru.fincode.core.database.impl

import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import ru.fincode.tsudesk.core.database.api.schedule.LessonCacheEntity
import ru.fincode.tsudesk.core.database.api.schedule.ScheduleCacheEntity
import ru.fincode.tsudesk.core.database.api.schedule.ScheduleDao

@Database(
    entities = [
        ScheduleCacheEntity::class,
        LessonCacheEntity::class
    ],
    version = 2,
)
@TypeConverters(StringListConverter::class)
abstract class AppDatabase : RoomDatabase() {

    abstract fun scheduleCacheDao(): ScheduleDao
}