Skip to content

app.change_orders

TableRow level security on

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).

Primary key: id

Columns of app.change_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 the change order belongs to.References app.projects.id
budget_iduuidNoBudget of the same project the change order amends.References app.budgets.id
change_order_numberbigintNoNumber from the project's display key sequence, issued on insert.
titletextNoChange order title.
order_type_enum_idtextYesOrder type: a row of the canon Order Type enumeration.References xpms.std_enumeration.record_id
reasontextYesWhy the change is needed.
requested_byuuidYesPerson who requested the change, set from the session.References app.people.id
priced_byuuidYesPerson who priced the change.References app.people.id
change_order_stateapp.change_order_stateNoChange order state. Changes only through the change order RPCs.
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
schedule_impact_daysintegerYesDays the change moves the schedule; negative when it pulls it in, zero for none.
client_impacttextYesEffect of the change on the client, as stated.