Saltar al contenido

app.accommodation_blocks

TablaSeguridad a nivel de fila activa

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.

Clave primaria: id

Columnas de app.accommodation_blocks
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.projects on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id
project_iduuidNoProject.Hace referencia a app.projects.id
counterparty_iduuidSíHotel or lodging supplier.Hace referencia a 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_ondateSíCutoff date when unassigned rooms return to the hotel.
nightly_rate_minorbigintSíContracted nightly rate in minor units; NULL is unpriced.
currency_codecharacter(3)SíISO 4217 currency of the rate.Hace referencia a 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 zoneSíSoft 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_byuuidSíPerson who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidSíPerson who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id