TwarrtLikes

final class TwarrtLikes : Model, @unchecked Sendable

A Pivot holding a sibllings relation between User and Twarrt.

Properties

  • id

    The ID of the pivot.

    Declaration

    Swift

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

    Declaration

    Swift

    @TwarrtLikes
    .Field var likeType: LikeType? { get set }
  • TRUE if this twarrt is favorited by this user.

    Declaration

    Swift

    @TwarrtLikes
    .Field var isFavorite: Bool { get set }

Relations

Initialization