EventFavorite
final class EventFavorite : Model, @unchecked Sendable
-
Declaration
Swift
static let schema: String
-
The ID of the pivot.
Declaration
Swift
@EventFavorite .ID var id: UUID? { get set } -
TRUE if the user has favorited the event. Favorited events appear on the user’s DayPlanner, and the user gets notified when the events are about to start.
Declaration
Swift
@EventFavorite .Field var favorite: Bool { get set } -
TRUE if the user has signed up to photograph the event. Only settable by members of the Shutternaut group. Works similarly to the
favoriteflag, but is independently settable, and other Shutternauts can see events a user has signed up to photograph.Declaration
Swift
@EventFavorite .Field var photographer: Bool { get set }
-
Declaration
Swift
init() -
Initializes a new EventFavorite pivot.
-
Declaration
Swift
init(_ userID: UUID, _ event: Event) throws
View on GitHub