Skip to content

app.spend_authorities

TableRow level security on

Spend authority limits (Section 8.1) by role or person, document type, GL account or cost center scope, and amount. An approval above every limit that applies is refused; above the dual approval threshold it needs two approvers. No applicable row is an absent claim and refuses (Section 3.7).

Primary key: id

Columns of app.spend_authorities
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.References app.organizations.id
role_iduuidYesRole whose holders the limit applies to; NULL when it applies to one person.References app.roles.id
membership_iduuidYesMembership of the one person the limit applies to; NULL when it applies to a role.References app.memberships.id
document_typeapp.spend_document_typeNoDocument type the limit applies to.
account_codetextYesGL account the limit is scoped to; NULL for every account.References xpms.dim_gl_account.account_code
cost_center_iduuidYesCost center the limit is scoped to; NULL for every cost center.References app.cost_centers.id
currency_codecharacter(3)NoISO 4217 currency of the amounts (the org currency).References private.currencies.currency_code
limit_minorbigintNoLargest amount the holder may approve, in minor units.
dual_approval_above_minorbigintYesAmount above which two distinct approvers are needed; NULL for never.
valid_fromtimestamp with time zoneNoWhen the limit starts.
valid_totimestamp with time zoneYesWhen the limit ends; NULL while open-ended.
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