KaraokePlayedSong
final class KaraokePlayedSong : Model, @unchecked Sendable
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
@KaraokePlayedSong .ID var id: UUID? { get set }
-
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
@KaraokePlayedSong .Field var performers: String { get set }
-
Timestamp of the model’s creation, set automatically.
Declaration
Swift
@KaraokePlayedSong .Timestamp var createdAt: Date? { get set }
-
The song that was sung.
Declaration
Swift
@KaraokePlayedSong .Parent var song: KaraokeSong { get set }
-
The Karaoke Manager that created the entry.
Declaration
Swift
@KaraokePlayedSong .Parent var manager: User { get set }
-
Declaration
Swift
init()
-
Declaration
Swift
init(singer: String, song: KaraokeSong, managerID: UUID) throws