ForumPostEdit
final class ForumPostEdit : ModelWhen a ForumPost is edited, a ForumPostEdit is created and associated with the post.
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: ForumPostModerationData the DTO for returning data moderators need to moderate ForumPosts. Specifically, see the PostEditLogData sub-struct.See
See Also: CreateForumPostEditSchema the Migration for creating the ForumPostEdit table in the database.- 
                  
                  DeclarationSwift static let schema: String
- 
                  
                  The edit’s ID. DeclarationSwift @ID var id: UUID?
- 
                  
                  The previous text of the post. DeclarationSwift @Field var postText: String
- 
                  
                  The previous images, if any. DeclarationSwift @OptionalField var images: [String]?
- 
                  
                  Timestamp of the model’s creation, set automatically. DeclarationSwift @Timestamp var createdAt: Date?
- 
                  
                  DeclarationSwift init()
- 
                  
                  Initializes a new ForumEdit with the current contents of a post.. Call on the post BEFORE editing it to save previous contents. DeclarationSwift init(post: ForumPost, editorID: UUID) throwsParameterspostThe ForumPost that will be edited. 
 View on GitHub
            View on GitHub
           ForumPostEdit Class Reference
      ForumPostEdit Class Reference