package ru.fincode.tsudesk.core.database.api.schedule

import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import ru.fincode.tsudesk.core.database.api.schedule.Constants.COL_SCHEDULE_KEY
import ru.fincode.tsudesk.core.database.api.schedule.Constants.LESSON_TABLE

@Entity(
    tableName = LESSON_TABLE,
    indices = [Index(value = [COL_SCHEDULE_KEY])]
)
data class LessonCacheEntity(
    @PrimaryKey(autoGenerate = true) val id: Long = 0,

    val scheduleKey: String,
    val date: String,
    val time: String,
    val name: String,
    val typeName: String,
    val room: String,
    val teacher: String,
    val groupIds: List<String>,
    val type: String
)