# booking_allocations

<!-- Generated from apps/irrigation/dbt_redshift/models/client_data/sources.yml. Do not edit by hand — run `make generate-client-data-dictionary`. -->

One row per period a booking is allocated to a unit. A booking starts with one allocation ('Initial allocation'); a room move ends it and adds a new one, whose allocated_from is the room move date. Scoped to client workspaces through the booking's unit.

| Column | Description |
| --- | --- |
| `id` | Unique identifier for the allocation |
| `booking_id` | Identifier of the booking; matches bookings.id |
| `property_id` | Identifier of the unit allocated for this period; matches properties.id |
| `allocated_from` | First night of this allocation; for a moved booking, the room move date |
| `allocated_to` | Last night of this allocation |
| `reason` | Why the allocation was made, e.g. Initial allocation or the reason given for a room move |
| `created_at` | Timestamp when the allocation was created |
| `updated_at` | Timestamp when the allocation was last updated |
| `timestamp` | Date when the table was last synchronized |
