app.org_cancellations
TableRow level security on
An org's cancellation (Section 14.7): read-only for 30 days with the full export available, data deleted at day 90 with a deletion certificate to the Owner. Written only by app.cancel_organization and app.reactivate_organization.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org. A row never moves to another org.References app.organizations.id |
| reason | text | No | Why the org was canceled, in the Owner's words. |
| canceled_at | timestamp with time zone | No | When the Owner canceled. |
| read_only_until | timestamp with time zone | No | End of the 30-day read-only window with the full export. |
| purge_after | timestamp with time zone | No | Day 90: when the org's data is deleted. |
| reactivated_at | timestamp with time zone | Yes | When the Owner reactivated the org inside the 30 days. |
| reactivated_by | uuid | Yes | Owner who reactivated it.References app.people.id |
| created_at | timestamp with time zone | No | When the row was inserted. Set by the database. |
| created_by | uuid | Yes | Person who inserted the row, or null for a platform process. Set by the database.References app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Yes | Person who last changed the row, or null for a platform process. Set by the database.References app.people.id |
| deleted_at | timestamp with time zone | Yes | Soft delete time. A row with deleted_at set is ignored by every access helper. |