Skip to content

app.offer_versions

TableRow level security on

Append-only terms of an offer, one row per proposal or counter, numbered by the database. Both sides read every version; nothing internal is stored here.

Primary key: id

Columns of app.offer_versions
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.offers on insert; never accepted from the caller and never changed.References app.organizations.id
offer_iduuidNoOffer.References app.offers.id
version_numberintegerNoVersion within the offer, issued by the database; the highest is in force.
proposed_sideapp.offer_sideNoOrganization or Party.
proposed_byuuidYesPerson who proposed it, set from the session.References app.people.id
rate_typeapp.rate_typeYesHourly, Day, Flat or Milestone.
amount_minorbigintYesOffered amount per rate unit in minor units; NULL when the version leaves the amount open.
currency_codecharacter(3)YesISO 4217 currency of the amount.References private.currencies.currency_code
starts_ondateYesFirst day of the work offered.
ends_ondateYesLast day of the work offered.
messagetextYesMessage to the other side with the terms. Visible to both sides.
expires_attimestamp with time zoneYesWhen the version lapses unanswered.
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.