Skip to content

app.catalog_bindings

TableRow level security on

Tenant catalog items bound to canon elements (Section 7.4). Each item gets an item ID {URID}-{ORG}-{SEQ} issued by next_sequence on insert.

Primary key: id

Columns of app.catalog_bindings
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.References app.organizations.id
item_idtextNoItem ID {URID}-{ORG}-{SEQ}: the element's URID, the org code and a sequence per org and URID. Issued by the database, never changed.
element_idtextNoCanon element the item is an instance of.References xpms.elements.element_id
nametextNoName the org uses for the item.
unit_basistextYesUnit the item is bought in.References xpms.dim_unit_alias.alias
default_unit_price_minorbigintYesDefault price in minor units; NULL is unpriced.
currency_codecharacter(3)YesISO 4217 currency of the default price.References private.currencies.currency_code
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