2020-08-21 11:43:51 +00:00
|
|
|
package code.name.monkey.retromusic.db
|
|
|
|
|
|
|
|
import androidx.room.Database
|
|
|
|
import androidx.room.RoomDatabase
|
|
|
|
|
|
|
|
@Database(
|
2020-08-23 08:01:42 +00:00
|
|
|
entities = [PlaylistEntity::class, SongEntity::class, HistoryEntity::class, PlayCountEntity::class, BlackListStoreEntity::class],
|
2020-08-30 16:53:09 +00:00
|
|
|
version = 20,
|
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-08-21 11:43:51 +00:00
|
|
|
}
|