app.work_orders
TablaSeguridad a nivel de fila activa
Work orders: scoped work put out for bids, awarded to one bid and carried out (Section 4.2 Work). Canceled work orders are retained.
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. Never changes.Hace referencia a app.projects.id |
| scope_node_id | uuid | Sí | Scope node of the same project the work sits under.Hace referencia a app.scope_nodes.id |
| record_id | uuid | Sí | Record of the same project the work order delivers, for example a Build or Task record.Hace referencia a app.records.id |
| work_order_number | bigint | No | Sequence number within the project, issued on insert. The display key is {project_key}-WO-{number}, read through app.work_order_display_key. |
| title | text | No | What the work is. |
| scope_of_work | text | Sí | The scope bidders price, in sentence case. |
| urid | text | Sí | URID category of the work (dimension 2).Hace referencia a xpms.dim_category.cat_urid |
| zone_id | uuid | Sí | Zone where the work happens.Hace referencia a app.zones.id |
| location_text | text | Sí | Where the work happens, in words, when no zone says it. |
| scheduled_starts_at | timestamp with time zone | Sí | Planned start. |
| scheduled_ends_at | timestamp with time zone | Sí | Planned finish; not before the start. |
| estimated_hours | numeric | Sí | Estimated labor hours; NULL when unestimated. |
| bid_due_at | timestamp with time zone | Sí | When bids are due. |
| awarded_bid_id | uuid | Sí | Bid the work order was awarded to. Set only by app.award_work_order.Hace referencia a app.work_order_bids.id |
| work_order_state | app.work_order_state | No | Lifecycle state. Changes only through app.transition_work_order and app.award_work_order. |
| 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 |
| budget_minor | bigint | Sí | Budget for the work in minor units of currency_code; NULL is unbudgeted, never zero. |
| currency_code | character(3) | No | ISO 4217 currency of the budget; the project's currency when the caller gives none.Hace referencia a private.currencies.currency_code |