Add SongAlbumMap

This commit is contained in:
vfsfitvnm
2022-06-30 13:49:05 +02:00
parent 58f821534e
commit d07d3f23b2
8 changed files with 810 additions and 49 deletions

View File

@@ -3,20 +3,10 @@ package it.vfsfitvnm.vimusic.models
import androidx.room.*
@Entity(
foreignKeys = [
ForeignKey(
entity = Album::class,
parentColumns = ["id"],
childColumns = ["albumId"],
onDelete = ForeignKey.SET_NULL
),
]
)
@Entity
data class Song(
@PrimaryKey val id: String,
val title: String,
val albumId: String?,
val artistsText: String? = null,
val durationText: String,
val thumbnailUrl: String?,