KaraokeFavorite
final class KaraokeFavorite : Model
A Pivot
holding a sibling relation between User
and KaraokeSong
.
-
Declaration
Swift
static let schema: String
-
The ID of the pivot.
Declaration
Swift
@ID var id: UUID?
-
The associated
KaraokeSong
that was favorited.Declaration
Swift
@Parent var song: KaraokeSong
-
Declaration
Swift
init()
-
Initializes a new BoardgameFavorite pivot.
Declaration
Swift
init(_ userID: UUID, _ song: KaraokeSong) throws