Skip to content

app.journal_entries

TableRow level security on

Journal entries. Prepared, then posted by someone other than the preparer (Section 8.2); posting into a Closed, Audited or Archived period is refused (invariant 13). Entries generated by approved documents are prepared by the platform.

Primary key: id

Columns of app.journal_entries
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.accounting_periods on insert; never accepted from the caller and never changed.References app.organizations.id
accounting_period_iduuidNoPeriod the entry posts to; its dates cover entry_date.References app.accounting_periods.id
project_iduuidYesProject the entry belongs to, when it does.References app.projects.id
entry_datedateNoDate the cost or revenue is recognized.
memotextNoWhat the entry records.
journal_stateapp.journal_stateNoProposed, Posted or Canceled. Changes only through app.post_journal_entry and app.cancel_journal_entry.
prepared_byuuidYesPerson who prepared the entry, set from the session; NULL when the platform generated it from an approved document.References app.people.id
posted_byuuidYesPerson who posted the entry; never the preparer.References app.people.id
posted_attimestamp with time zoneYesWhen the entry was posted.
source_tabletextYesTable of the document that generated the entry, such as expenses.
source_iduuidYesId of the document that generated the entry.
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.