-
Declaration
Swift
static let schema: String
-
The ID of the pivot.
Declaration
Swift
@ForumReaders .ID var id: UUID? { get set }
-
The highest postID that the user has read in the forum..
Declaration
Swift
@ForumReaders .Field var lastPostReadID: Int? { get set }
-
TRUE if this forum is favorited by this user.
Declaration
Swift
@ForumReaders .Field var isFavorite: Bool { get set }
-
True if the user has muted this forum and does not want any notifications. Otherwise this field should be NIL, never FALSE. This rule makes searches for forums with no reader pivot (because the user has never read the forum) appear equal to forums the user has read (and created a pivot) but not muted.
Declaration
Swift
@ForumReaders .Field var isMuted: Bool? { get set }
-
Timestamp of the model’s creation, set automatically.
Declaration
Swift
@ForumReaders .Timestamp var createdAt: Date? { get set }
-
Timestamp of the model’s last update, set automatically.
Declaration
Swift
@ForumReaders .Timestamp var updatedAt: Date? { get set }
-
Declaration
Swift
init()
-
Initializes a new
ForumReaders
pivot. The pivot’s readCount gets initialized to 0.Declaration
Swift
init(_ userID: UUID, _ forum: Forum) throws