KaraokePlayedSong
final class KaraokePlayedSong : Model
This is the object a Karaoke Manager makes when they log a karaoke performance in the Karaoke Lounge.
The played song is related to a song in the Karaoke Library, and the Manager records the name(s) of the karaoke singer(s). A timestamp is added automatically.
-
Declaration
Swift
static let schema: String
-
The song’s ID, provisioned automatically.
Declaration
Swift
@ID var id: UUID?
-
Who sung the song. Freeform; if multiple people sang the song onstage together, multiple names may be entered. @username tags may be used if the singers have Twit-arr accounts.
Declaration
Swift
@Field var performers: String
-
Timestamp of the model’s creation, set automatically.
Declaration
Swift
@Timestamp var createdAt: Date?
-
The song that was sung.
Declaration
Swift
@Parent var song: KaraokeSong
-
The Karaoke Manager that created the entry.
Declaration
Swift
@Parent var manager: User
-
Declaration
Swift
init()
-
Declaration
Swift
init(singer: String, song: KaraokeSong, managerID: UUID) throws