FezParticipant
final class FezParticipant : Model, @unchecked Sendable
A Pivot holding a siblings relation between User and FriendlyFez.
-
Declaration
Swift
static let schema: String
-
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 } -
True if the user was recently added to this Fez by another user. Set to true when an .addedToChat notification is generated, cleared when the user views the fez. Otherwise this field should be FALSE.
Declaration
Swift
@FezParticipant .Field var addedTo: Bool { get set } -
Timestamp of the model’s soft-deletion, set automatically.
Declaration
Swift
@FezParticipant .Timestamp var deletedAt: Date? { get set }
-
The associated
FriendlyFezthe user is a member of.Declaration
Swift
@FezParticipant .Parent var fez: FriendlyFez { get set }
-
Declaration
Swift
init() -
Initializes a new
FezParticipantpivot.Declaration
Swift
init(_ userID: UUID, _ post: FriendlyFez) throwsParameters
userIDThe left hand
Usermodel.postThe right hand
FriendlyFezmodel.
View on GitHub