2020-10-06 08:46:04 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 Hemanth Savarla.
|
|
|
|
*
|
|
|
|
* Licensed under the GNU General Public License v3
|
|
|
|
*
|
|
|
|
* This is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
* See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
*/
|
2020-08-21 11:43:51 +00:00
|
|
|
package code.name.monkey.retromusic.db
|
|
|
|
|
|
|
|
import androidx.room.Database
|
|
|
|
import androidx.room.RoomDatabase
|
|
|
|
|
|
|
|
@Database(
|
2020-09-10 19:22:10 +00:00
|
|
|
entities = [PlaylistEntity::class, SongEntity::class, HistoryEntity::class, PlayCountEntity::class, BlackListStoreEntity::class, LyricsEntity::class],
|
2020-09-12 06:53:23 +00:00
|
|
|
version = 22,
|
2020-08-21 11:43:51 +00:00
|
|
|
exportSchema = false
|
|
|
|
)
|
|
|
|
abstract class RetroDatabase : RoomDatabase() {
|
|
|
|
abstract fun playlistDao(): PlaylistDao
|
2020-08-31 12:30:07 +00:00
|
|
|
abstract fun blackListStore(): BlackListStoreDao
|
|
|
|
abstract fun playCountDao(): PlayCountDao
|
2020-09-06 10:47:06 +00:00
|
|
|
abstract fun historyDao(): HistoryDao
|
2020-09-10 19:22:10 +00:00
|
|
|
abstract fun lyricsDao(): LyricsDao
|
2020-10-06 08:46:04 +00:00
|
|
|
}
|