FezPost
final class FezPost : Model, Searchableextension FezPost: ContentFilterableextension FezPost: ReportableAn individual post within a FriendlyFez discussion. A FezPost must contain
text content and may also contain image content, unless the Fez is of type FezType.closed,
in which case the post may not contain images.
See
See Also: FezPostData the DTO for returning info on FezPosts. FezPostData is also a member ofFezData.
See
See Also: CreateFezPostSchema the Migration for creating the FezPost table in the database.- 
                  
                  DeclarationSwift static let schema: String
- 
                  
                  The post’s ID. DeclarationSwift @ID var id: Int?
- 
                  
                  The text content of the post. DeclarationSwift @Field var text: String
- 
                  
                  The filename of any image content of the post. FezPosts are limited to one image, and “closed” Fez types cannot have any. DeclarationSwift @OptionalField var image: String?
- 
                  
                  Moderators can set several statuses on fezPosts that modify editability and visibility. DeclarationSwift @Enum var moderationStatus: ContentModerationStatus
- 
                  
                  Timestamp of the model’s creation, set automatically. DeclarationSwift @Timestamp var createdAt: Date?
- 
                  
                  Timestamp of the model’s last update, set automatically. DeclarationSwift @Timestamp var updatedAt: Date?
- 
                  
                  Timestamp of the model’s soft-deletion, set automatically. DeclarationSwift @Timestamp var deletedAt: Date?
- 
                  
                  The FriendlyFezto which the post belongs.DeclarationSwift @Parent var fez: FriendlyFez
- 
                  
                  The post’s author. DeclarationSwift @Parent var author: User
- 
                  
                  Used by Fluent DeclarationSwift init()
- 
                  
                  Initializes a new FezPost. DeclarationSwift init( fez: FriendlyFez, authorID: UUID, text: String, image: String? ) throwsParametersfezIDThe ID of the post’s FriendlyFez. authorIDThe ID of the author of the post. textThe text content of the post. imageThe filename of any image content of the post. 
- 
                  
                  DeclarationSwift func contentTextStrings() -> [String]
- 
                  
                  The report type for FezPostreports.DeclarationSwift var reportType: ReportType { get }
- 
                  
                  Standardizes how to get the author ID of a Reportable object. DeclarationSwift var authorUUID: UUID { get }
- 
                  
                  No auto quarantine for fez posts. DeclarationSwift var autoQuarantineThreshold: Int { get }
 View on GitHub
            View on GitHub
           FezPost Class Reference
      FezPost Class Reference