ForumEdit

final class ForumEdit : Model, @unchecked Sendable

When a Forum is edited, a ForumEdit is created to save the previous title text.

This is done for accountability purposes and the data collected is intended to be viewable only by users with an access level of .moderator or above.

See

See Also: ForumModerationData the DTO for returning data moderators need to moderate forums.

See

See Also: CreateForumEditSchema the Migration for creating the ForumEdit table in the database.

Properties

  • id

    The edit’s ID.

    Declaration

    Swift

    @ForumEdit
    .ID var id: UUID? { get set }
  • The previous title of the forum.

    Declaration

    Swift

    @ForumEdit
    .Field var title: String { get set }
  • Timestamp of the model’s creation, set automatically.

    Declaration

    Swift

    @ForumEdit
    .Timestamp var createdAt: Date? { get set }

Relations

Initialization