Saltar al contenido

app.incidents

TablaSeguridad a nivel de fila activa

Incidents of a project (Incident CAD log). A critical incident cannot be relabeled and closed in one statement, and closing requires sign-off (invariant 22).

Clave primaria: id

Columnas de app.incidents
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.projects on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id
project_iduuidNoProject.Hace referencia a app.projects.id
incident_numberbigintNoNumber from the project's display key sequence.
titletextNoWhat happened.
severity_enum_idtextNoSeverity: a row of the canon Incident Severity enumeration; Level 1 - Critical is critical.Hace referencia a xpms.std_enumeration.record_id
zone_iduuidSíZone where it happened.Hace referencia a app.zones.id
occurred_attimestamp with time zoneNoWhen it happened.
reported_byuuidSíReporter, from the session.Hace referencia a app.people.id
incident_stateapp.incident_stateNoIncident state. Changes only through the incident RPCs.
closed_signed_off_byuuidSíPerson who signed off the closure.Hace referencia a app.people.id
deleted_attimestamp with time zoneSíSoft delete time. A row with deleted_at set is ignored by every access helper.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidSíPerson who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidSíPerson who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
latitudenumeric(9,6)SíLatitude where the incident was reported (WGS 84), when the reporter's device gave one.
longitudenumeric(9,6)SíLongitude where the incident was reported (WGS 84), when the reporter's device gave one.
accuracy_mnumeric(8,1)SíHorizontal accuracy of the location in meters, as the device reported it.
device_reported_attimestamp with time zoneSíWhen the reporter filed the report on the device; differs from created_at when the report was queued offline.