TwarrtLikes

final class TwarrtLikes : Model

A Pivot holding a sibllings relation between User and Twarrt.

Properties

  • id

    The ID of the pivot.

    Declaration

    Swift

    @ID
    var id: UUID?
  • The type of like reaction. Needs to be optional to conform to ModifiablePivot‘s required init(_:_:).

    Declaration

    Swift

    @Field
    var likeType: LikeType?
  • TRUE if this twarrt is favorited by this user.

    Declaration

    Swift

    @Field
    var isFavorite: Bool

Relations

Initialization