2026-09-02 23:47:00 +03:00
|
|
|
package agzam.vyatsu.data.local
|
|
|
|
|
|
|
|
|
|
import androidx.room.Database
|
|
|
|
|
import androidx.room.RoomDatabase
|
2026-09-03 19:41:26 +03:00
|
|
|
import androidx.room.TypeConverters
|
2026-09-02 23:47:00 +03:00
|
|
|
|
|
|
|
|
@Database(
|
|
|
|
|
entities = [
|
|
|
|
|
GroupEntity::class,
|
2026-09-11 01:55:52 +03:00
|
|
|
GroupPeriodEntity::class,
|
2026-09-02 23:47:00 +03:00
|
|
|
ScheduleEntity::class,
|
2026-09-03 19:41:26 +03:00
|
|
|
DayEntity::class,
|
|
|
|
|
LessonEntity::class,
|
2026-09-02 23:47:00 +03:00
|
|
|
PreferenceEntity::class
|
|
|
|
|
],
|
2026-09-11 01:55:52 +03:00
|
|
|
version = 3,
|
2026-09-03 19:41:26 +03:00
|
|
|
exportSchema = true
|
2026-09-02 23:47:00 +03:00
|
|
|
)
|
2026-09-03 19:41:26 +03:00
|
|
|
@TypeConverters(Converters::class)
|
2026-09-02 23:47:00 +03:00
|
|
|
abstract class AppDatabase : RoomDatabase() {
|
|
|
|
|
abstract fun groupDao(): GroupDao
|
|
|
|
|
abstract fun scheduleDao(): ScheduleDao
|
|
|
|
|
abstract fun preferencesDao(): PreferencesDao
|
|
|
|
|
}
|