KaraokeSong
final class KaraokeSong : Model, Searchable
A song in the Karaoke Jukebox. The Jukebox has ~25000 songs; rather too many to let users browse without searching. For Heroku deploys there’s an alternate import file that only import ~1000 songs. This is due to Heroku’s free tier limiting us to 10000 database rows.
-
Declaration
Swift
static let schema: String
-
The song’s ID, provisioned automatically.
Declaration
Swift
@ID var id: UUID?
-
The name of the person or group.
Declaration
Swift
@Field var artist: String
-
The title of the song
Declaration
Swift
@Field var title: String
-
If TRUE, this is the regular (non-karaoke) version of the song that’s been processed through voice-remover software.
Declaration
Swift
@Field var voiceRemoved: Bool
-
If TRUE, this song is a MIDI track.
Declaration
Swift
@Field var midi: Bool
-
A list of who, if anyone, has already performed this song on the boat this trip.
Declaration
Swift
@Children var sungBy: [KaraokePlayedSong]
-
Declaration
Swift
init()
-
Declaration
Swift
init(artist: String, title: String, isVoiceRemoved: Bool = false, isMidi: Bool = false)