app.punch_items
TablaSeguridad a nivel de fila activa
Punch list items: one Task record of subtype Execute each, with where the item came from and where it is. Title, owner, due date and state are the record's; a punch item closes when its record is Complete.
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.records on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id |
| record_id | uuid | No | The Task record (subtype Execute) that carries the correction. One punch item per record; never changes.Hace referencia a app.records.id |
| source_record_id | uuid | Sí | Record the item was raised from, usually an Inspection record of the same project.Hace referencia a app.records.id |
| inspection_result_id | uuid | Sí | Failed inspection result the item corrects. At most one punch item per result.Hace referencia a app.inspection_results.id |
| zone_id | uuid | Sí | Zone of the project's venue where the item is.Hace referencia a app.zones.id |
| site_plan_pin_id | uuid | Sí | Pin on a site plan of the project marking the item.Hace referencia a app.site_plan_pins.id |
| location_text | text | Sí | Where the item is, in words, when no zone or pin says it. |
| 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 |