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-08-21 11:43:51 +00:00
|
|
|
}
|