FezParticipant

final class FezParticipant : Model, @unchecked Sendable

A Pivot holding a siblings relation between User and FriendlyFez.

Properties

  • id

    The ID of the pivot.

    Declaration

    Swift

    @FezParticipant
    .ID var id: UUID? { get set }
  • How many posts in this fez that this user has read. Used by the notification lifecycle and to scroll the post view to show the first unread message.

    Declaration

    Swift

    @FezParticipant
    .Field var readCount: Int { get set }
  • How many posts in this fez that this user cannot see, due to mutes and blocks.

    Declaration

    Swift

    @FezParticipant
    .Field var hiddenCount: Int { get set }
  • True if the user has muted this Fez and does not want any notifications. Otherwise this field should be NIL or FALSE.

    Declaration

    Swift

    @FezParticipant
    .Field var isMuted: Bool? { get set }
  • Timestamp of the model’s soft-deletion, set automatically.

    Declaration

    Swift

    @FezParticipant
    .Timestamp var deletedAt: Date? { get set }

Relationships

Initialization