Skip to content

app.accommodation_blocks

TableRow level security on

Hotel room blocks contracted for a project: rooms held each night between check-in and check-out, released back to the hotel on the cutoff date. A NULL rate is unpriced.

Primary key: id

Columns of app.accommodation_blocks
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.projects on insert; never accepted from the caller and never changed.References app.organizations.id
project_iduuidNoProject.References app.projects.id
counterparty_iduuidYesHotel or lodging supplier.References app.counterparties.id
titletextNoBlock name, such as the hotel and purpose.
check_in_ondateNoFirst night held (hotel local date).
check_out_ondateNoDeparture date; the last night held is the day before.
rooms_heldintegerNoRooms held on each night of the block.
release_ondateYesCutoff date when unassigned rooms return to the hotel.
nightly_rate_minorbigintYesContracted nightly rate in minor units; NULL is unpriced.
currency_codecharacter(3)YesISO 4217 currency of the rate.References private.currencies.currency_code
block_numberbigintNoNumber within the project from the record sequence. The display key is {project_key}-{block_number}, read through app.accommodation_block_display_key.
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