CommunitySupportAction
final class CommunitySupportAction : Model, @unchecked Sendable
One entry in the Community Support log. The log is append-only–there are no update or delete routes–and serves as both each report’s timeline (filter by report) and the team-wide audit log (unfiltered). Only changes are logged, never views.
-
Declaration
Swift
static let schema: String
-
Declaration
Swift
@CommunitySupportAction .ID var id: UUID? { get set } -
What happened. Stored as a string.
Declaration
Swift
@CommunitySupportAction .Field var actionType: CommunitySupportActionType { get set } -
For
.statusChanged, the status before and after.Declaration
Swift
@CommunitySupportAction .OptionalField var oldStatus: CommunitySupportReportStatus? { get set } -
Declaration
Swift
@CommunitySupportAction .OptionalField var newStatus: CommunitySupportReportStatus? { get set } -
The text of a note, or empty for actions that aren’t notes.
Declaration
Swift
@CommunitySupportAction .Field var note: String { get set } -
Declaration
Swift
@CommunitySupportAction .Timestamp var createdAt: Date? { get set }
-
The team member who did it.
Declaration
Swift
@CommunitySupportAction .Parent var actor: User { get set } -
The report it was done to. Nil for team-wide entries, like a CSV export.
Declaration
Swift
@CommunitySupportAction .OptionalParent var report: CommunitySupportReport? { get set }
-
Declaration
Swift
init() -
Declaration
Swift
init( actor: UUID, report: UUID?, type: CommunitySupportActionType, oldStatus: CommunitySupportReportStatus? = nil, newStatus: CommunitySupportReportStatus? = nil, note: String = "" )
View on GitHub