Skip to content

app.journal_lines

TableRow level security on

Lines of a journal entry: one account, dimension 1 and 2, and either a debit or a credit. Immutable once the entry is posted. Posted lines are the Universal Posting Line (app.posting_lines).

Primary key: id

Columns of app.journal_lines
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.journal_entries on insert; never accepted from the caller and never changed.References app.organizations.id
journal_entry_iduuidNoEntry the line belongs to.References app.journal_entries.id
line_numberintegerNoOrder of the line within the entry.
account_codetextNoGL account from the fixed chart (Bible tab 29).References xpms.dim_gl_account.account_code
cost_center_iduuidYesDimension 1 cost center.References app.cost_centers.id
uridtextYesDimension 2: canon discipline or category.
counterparty_iduuidYesVendor or client the line concerns; NULL for revenue without one.References app.counterparties.id
element_idtextYesCatalog element, when one applies.References xpms.elements.element_id
descriptiontextNoSentence-case line description.
quantitynumericYesQuantity, when the line counts something.
unit_basistextYesUnit of the quantity from the controlled unit list.References xpms.dim_unit_alias.alias
debit_minorbigintNoDebit amount in minor units; zero on a credit line.
credit_minorbigintNoCredit amount in minor units; zero on a debit line.
currency_codecharacter(3)NoISO 4217 currency of the line.References private.currencies.currency_code
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.