EventFavorite

final class EventFavorite : Model, @unchecked Sendable

A Pivot holding a sibling relation between User and Event.

Properties

  • id

    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 favorite flag, 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 }

Relations

Initialization