2020-08-19 18:43:06 +00:00
|
|
|
package code.name.monkey.retromusic.db
|
|
|
|
|
|
|
|
import androidx.room.Embedded
|
|
|
|
import androidx.room.Relation
|
|
|
|
|
|
|
|
data class PlaylistWithSongs(
|
|
|
|
@Embedded val playlistEntity: PlaylistEntity,
|
|
|
|
@Relation(
|
2020-08-20 06:49:08 +00:00
|
|
|
parentColumn = "playlist_id",
|
|
|
|
entityColumn = "playlist_creator_id"
|
2020-08-19 18:43:06 +00:00
|
|
|
) val songs: List<SongEntity>
|
|
|
|
)
|