FriendlyFezEdit

final class FriendlyFezEdit : Model, @unchecked Sendable

When the TEXT FIELDS of a FriendlyFez are edited, a FriendlyFezEdit is created to save the previous values of its text fields. Edits that only modify other fields of a fez–start/end time, type of fez, min/max number of participants–do not cause a FriendlyFezEdit to be created.

This is done for accountability purposes and the data collected is intended to be viewable only by moderators.

See

See Also: FezModerationData the DTO for returning data moderators need to moderate fezzes. Specifically, the sub-struct FezEditLogData delivers values from the FriendlyFezEdit .

See

See Also: CreateFriendlyFezEditSchema the Migration for creating the FriendlyFezEdit table in the database.
  • Declaration

    Swift

    static let schema: String
  • id

    The edit’s ID.

    Declaration

    Swift

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

    Declaration

    Swift

    @FriendlyFezEdit
    .Field var title: String { get set }
  • The previous info string for the fez.

    Declaration

    Swift

    @FriendlyFezEdit
    .Field var info: String { get set }
  • The previous location string for the fez.

    Declaration

    Swift

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

    Declaration

    Swift

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

Relations

Initialization