app.change_orders
TablaSeguridad a nivel de fila activa
Change orders against a budget. The requester cannot approve (Section 8.2); only a fully priced change order can be approved, and its total is derived, NULL while any line is unpriced (invariant 11).
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.projects on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id |
| project_id | uuid | No | Project the change order belongs to.Hace referencia a app.projects.id |
| budget_id | uuid | No | Budget of the same project the change order amends.Hace referencia a app.budgets.id |
| change_order_number | bigint | No | Number from the project's display key sequence, issued on insert. |
| title | text | No | Change order title. |
| order_type_enum_id | text | Sí | Order type: a row of the canon Order Type enumeration.Hace referencia a xpms.std_enumeration.record_id |
| reason | text | Sí | Why the change is needed. |
| requested_by | uuid | Sí | Person who requested the change, set from the session.Hace referencia a app.people.id |
| priced_by | uuid | Sí | Person who priced the change.Hace referencia a app.people.id |
| change_order_state | app.change_order_state | No | Change order state. Changes only through the change order RPCs. |
| 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 |
| schedule_impact_days | integer | Sí | Days the change moves the schedule; negative when it pulls it in, zero for none. |
| client_impact | text | Sí | Effect of the change on the client, as stated. |