app.inspection_results
TablaSeguridad a nivel de fila activa
One result per template item of an inspection, from the canon Inspection Result enumeration. Results freeze at sign-off.
Clave primaria: id
| Columna | Tipo | Admite nulos | Descripción |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org, derived from app.inspections on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id |
| inspection_id | uuid | No | Inspection.Hace referencia a app.inspections.id |
| inspection_item_id | uuid | No | Item of the inspection's template.Hace referencia a app.inspection_items.id |
| result_enum_id | text | No | Result: a row of the canon Inspection Result enumeration.Hace referencia a xpms.std_enumeration.record_id |
| note | text | Sí | Finding. |
| deleted_at | timestamp with time zone | Sí | Soft delete time. A row with deleted_at set is ignored by every access helper. |
| created_at | timestamp with time zone | No | When the row was inserted. Set by the database. |
| created_by | uuid | Sí | Person who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Sí | Person who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |
| photo_uri | text | Sí | Object name of the finding's photo in the field-media bucket: <org_id>/inspections/<inspection_id>/<file name>. |
| project_id | uuid | No | Project of the inspection, maintained by the database from the inspection so Compass sync can scope results by project. Never accepted from the caller.Hace referencia a app.projects.id |