Skip to content

app.spend_approvals

TableRow level security on

Append-only ledger of approvals given under spend authority, written only by approval RPCs. A document above its dual threshold is approved once two distinct approvers have rows here.

Primary key: id

Columns of app.spend_approvals
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.References app.organizations.id
document_typeapp.spend_document_typeNoType of the approved document.
document_iduuidNoId of the approved document.
approver_person_iduuidNoPerson who approved.References app.people.id
amount_minorbigintNoAmount approved, in minor units.
currency_codecharacter(3)NoISO 4217 currency of the amount.References private.currencies.currency_code
spend_authority_iduuidNoLimit row that authorized the approval.References app.spend_authorities.id
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
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.