ForumPostReaction
final class ForumPostReaction : Model, @unchecked Sendable
-
Declaration
Swift
static let schema: String -
Declaration
Swift
@ForumPostReaction .ID var id: UUID? { get set } -
Declaration
Swift
@ForumPostReaction .Field var emoji: String { get set } -
Declaration
Swift
@ForumPostReaction .Field var createdAt: Date { get set } -
Declaration
Swift
@ForumPostReaction .Field var groupOrder: UUID { get set } -
Declaration
Swift
@ForumPostReaction .Parent var user: User { get set } -
Declaration
Swift
@ForumPostReaction .Parent var post: ForumPost { get set } -
Declaration
Swift
init() -
Declaration
Swift
init(_ userID: UUID, _ post: ForumPost, emoji: String) throws -
adoptChipPosition(on:Asynchronous) Takes the date and group identifier of the post’s existing chip for this emoji, if there is one. Every contributor shares them, so the chip keeps its position even after its first user leaves.
Declaration
Swift
func adoptChipPosition(on db: Database) async throws
View on GitHub