Function: blocksCapacity()
function blocksCapacity(status:
| "draft"
| "held"
| "pending"
| "waitlisted"
| "offered"
| "confirmed"
| "completed"
| "no_show"
| "cancelled"
| "rejected"
| "expired"): boolean;Defined in: server/bookings/capacity.ts:51
The §6.6 is_blocking truth table: a schedule/seat row blocks capacity iff
its booking is in an occupancy-holding state. Maintained in the SAME
transaction as every status transition.
heldadditionally requires a live hold — that part is the QUERY-side hold-expiry predicate above, not this flag (an expired-but-unswept hold keepsis_blocking = trueuntil the sweeper flips it).draft/waitlistednever block (a blocking draft would leak a slot forever — nothing TTL-sweeps it).- terminals
completed/no_showstill block: the slot WAS consumed.
Parameters
| Parameter | Type |
|---|---|
status | | "draft" | "held" | "pending" | "waitlisted" | "offered" | "confirmed" | "completed" | "no_show" | "cancelled" | "rejected" | "expired" |
Returns
boolean