2020-08-19 18:43:06 +00:00
|
|
|
package code.name.monkey.retromusic.db
|
|
|
|
|
|
|
|
import androidx.room.ColumnInfo
|
|
|
|
import androidx.room.Entity
|
|
|
|
import androidx.room.PrimaryKey
|
|
|
|
|
|
|
|
@Entity
|
|
|
|
class SongEntity(
|
|
|
|
@ColumnInfo(name = "song_id")
|
|
|
|
val songId: Int,
|
2020-08-20 06:49:08 +00:00
|
|
|
@ColumnInfo(name = "playlist_creator_id")
|
|
|
|
val playlistCreatorId: Int
|
2020-08-19 18:43:06 +00:00
|
|
|
) {
|
|
|
|
@PrimaryKey(autoGenerate = true)
|
|
|
|
@ColumnInfo(name = "song_key")
|
|
|
|
var songPrimaryKey: Long = 0
|
|
|
|
}
|