ForumEdit

final class ForumEdit : Model

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

    @ID
    var id: UUID?
  • The previous title of the forum.

    Declaration

    Swift

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

    Declaration

    Swift

    @Timestamp
    var createdAt: Date?

Relations

Initialization