Drop ViewModel
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
package it.vfsfitvnm.vimusic.models
|
||||
|
||||
import androidx.compose.runtime.Immutable
|
||||
import androidx.room.Embedded
|
||||
import androidx.room.Junction
|
||||
import androidx.room.Relation
|
||||
|
||||
@Immutable
|
||||
data class AlbumWithSongs(
|
||||
@Embedded val album: Album,
|
||||
@Relation(
|
||||
entity = Song::class,
|
||||
parentColumn = "id",
|
||||
entityColumn = "id",
|
||||
associateBy = Junction(
|
||||
value = SortedSongAlbumMap::class,
|
||||
parentColumn = "albumId",
|
||||
entityColumn = "songId"
|
||||
)
|
||||
)
|
||||
val songs: List<DetailedSong>
|
||||
)
|
||||
@@ -1,13 +0,0 @@
|
||||
package it.vfsfitvnm.vimusic.models
|
||||
|
||||
import androidx.compose.runtime.Immutable
|
||||
import androidx.room.ColumnInfo
|
||||
import androidx.room.DatabaseView
|
||||
|
||||
@Immutable
|
||||
@DatabaseView("SELECT * FROM SongAlbumMap ORDER BY position")
|
||||
data class SortedSongAlbumMap(
|
||||
@ColumnInfo(index = true) val songId: String,
|
||||
@ColumnInfo(index = true) val albumId: String,
|
||||
val position: Int
|
||||
)
|
||||
Reference in New Issue
Block a user