FezParticipant
final class FezParticipant : Model
A Pivot
holding a siblings relation between User
and FriendlyFez
.
-
Declaration
Swift
static let schema: String
-
The ID of the pivot.
Declaration
Swift
@ID var id: UUID?
-
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
@Field var readCount: Int
-
How many posts in this fez that this user cannot see, due to mutes and blocks.
Declaration
Swift
@Field var hiddenCount: Int
-
True if the user has muted this Fez and does not want any notifications. Otherwise this field should be NIL or FALSE.
Declaration
Swift
@Field var isMuted: Bool?
-
The associated
FriendlyFez
the user is a member of.Declaration
Swift
@Parent var fez: FriendlyFez
-
Declaration
Swift
init()
-
Initializes a new
FezParticipant
pivot.Declaration
Swift
init(_ userID: UUID, _ post: FriendlyFez) throws
Parameters
userID
The left hand
User
model.post
The right hand
FriendlyFez
model.