17 lines
408 B
Kotlin
17 lines
408 B
Kotlin
|
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,
|
||
|
@ColumnInfo(name = "playlist_creator_name")
|
||
|
val playlistCreatorName: String
|
||
|
) {
|
||
|
@PrimaryKey(autoGenerate = true)
|
||
|
@ColumnInfo(name = "song_key")
|
||
|
var songPrimaryKey: Long = 0
|
||
|
}
|