Skip to content

app.settlements

TableRow level security on

Settlements of engagements (Section 4.5.8). Lines are edited only while Proposed; the total is derived and NULL while any line is unpriced.

Primary key: id

Columns of app.settlements
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.engagements on insert; never accepted from the caller and never changed.References app.organizations.id
engagement_iduuidNoEngagement settled.References app.engagements.id
project_iduuidNoProject of the engagement; always the engagement's project.References app.projects.id
settlement_numberbigintNoNumber from the project's display key sequence, issued on insert.
titletextNoSettlement title, for example the show it settles.
currency_codecharacter(3)NoISO 4217 currency of every line.References private.currencies.currency_code
settled_ondateYesDate of the show or period settled.
settlement_stateapp.settlement_stateNoSettlement state. Changes only through the settlement 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