Skip to content

app.work_orders

TableRow level security on

Work orders: scoped work put out for bids, awarded to one bid and carried out (Section 4.2 Work). Canceled work orders are retained.

Primary key: id

Columns of app.work_orders
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.projects on insert; never accepted from the caller and never changed.References app.organizations.id
project_iduuidNoProject. Never changes.References app.projects.id
scope_node_iduuidYesScope node of the same project the work sits under.References app.scope_nodes.id
record_iduuidYesRecord of the same project the work order delivers, for example a Build or Task record.References app.records.id
work_order_numberbigintNoSequence number within the project, issued on insert. The display key is {project_key}-WO-{number}, read through app.work_order_display_key.
titletextNoWhat the work is.
scope_of_worktextYesThe scope bidders price, in sentence case.
uridtextYesURID category of the work (dimension 2).References xpms.dim_category.cat_urid
zone_iduuidYesZone where the work happens.References app.zones.id
location_texttextYesWhere the work happens, in words, when no zone says it.
scheduled_starts_attimestamp with time zoneYesPlanned start.
scheduled_ends_attimestamp with time zoneYesPlanned finish; not before the start.
estimated_hoursnumericYesEstimated labor hours; NULL when unestimated.
bid_due_attimestamp with time zoneYesWhen bids are due.
awarded_bid_iduuidYesBid the work order was awarded to. Set only by app.award_work_order.References app.work_order_bids.id
work_order_stateapp.work_order_stateNoLifecycle state. Changes only through app.transition_work_order and app.award_work_order.
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id
budget_minorbigintYesBudget for the work in minor units of currency_code; NULL is unbudgeted, never zero.
currency_codecharacter(3)NoISO 4217 currency of the budget; the project's currency when the caller gives none.References private.currencies.currency_code