app.punch_items
TableRow level security on
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.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| 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.References app.organizations.id |
| record_id | uuid | No | The Task record (subtype Execute) that carries the correction. One punch item per record; never changes.References app.records.id |
| source_record_id | uuid | Yes | Record the item was raised from, usually an Inspection record of the same project.References app.records.id |
| inspection_result_id | uuid | Yes | Failed inspection result the item corrects. At most one punch item per result.References app.inspection_results.id |
| zone_id | uuid | Yes | Zone of the project's venue where the item is.References app.zones.id |
| site_plan_pin_id | uuid | Yes | Pin on a site plan of the project marking the item.References app.site_plan_pins.id |
| location_text | text | Yes | Where the item is, in words, when no zone or pin says it. |
| deleted_at | timestamp with time zone | Yes | 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 | 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 |