PostLikes

final class PostLikes : Model, @unchecked Sendable

A Pivot holding a siblings relation between User and ForumPost.

Properties

  • id

    The ID of the pivot.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

Relationships

Initialization