package ru.fincode.tsudesk.core.database

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

@TypeConverters(StringListConverter::class)
@Database(
    entities = [
        // schedule feature
        ScheduleCacheEntity::class,
        LessonCacheEntity::class,

        // future:
        // NewsEntity::class,
        // GradeEntity::class,
    ],
    version = 2,
    exportSchema = false
)
abstract class AppDatabase : RoomDatabase() {
    abstract fun scheduleCacheDao(): ScheduleDao
}
