Table
exhibition_booking
A ticket's place in a slot; a trigger stops overbooking.
Replaces in 2020: Exhibition Booking, Booking Ticket
Rows 1,701–1,725 of 2,015
| booking_idINTEGER | slot_id→ exhibition_slot.slot_id | ticket_id→ ticket.ticket_id | booked_atTEXT |
|---|---|---|---|
| 1701 | 375 | 9241 | 2019-10-19 17:07:10 |
| 1702 | 375 | 9242 | 2019-10-19 17:07:10 |
| 1703 | 375 | 9243 | 2019-10-19 17:07:10 |
| 1704 | 375 | 9244 | 2019-10-19 17:07:10 |
| 1705 | 375 | 9245 | 2019-10-19 17:07:10 |
| 1706 | 375 | 9246 | 2019-10-19 17:07:10 |
| 1707 | 375 | 9247 | 2019-10-19 17:07:10 |
| 1708 | 375 | 9248 | 2019-10-19 17:07:10 |
| 1709 | 375 | 9249 | 2019-10-19 17:07:10 |
| 1710 | 375 | 9250 | 2019-10-19 17:07:10 |
| 1711 | 375 | 9251 | 2019-10-19 17:07:10 |
| 1712 | 375 | 9252 | 2019-10-19 17:07:10 |
| 1713 | 375 | 9253 | 2019-10-19 17:07:10 |
| 1714 | 375 | 9254 | 2019-10-19 17:07:10 |
| 1715 | 375 | 9255 | 2019-10-19 17:07:10 |
| 1716 | 375 | 9256 | 2019-10-19 17:07:10 |
| 1717 | 375 | 9257 | 2019-10-19 17:07:10 |
| 1718 | 375 | 9258 | 2019-10-19 17:07:10 |
| 1719 | 375 | 9259 | 2019-10-19 17:07:10 |
| 1720 | 375 | 9260 | 2019-10-19 17:07:10 |
| 1721 | 375 | 9261 | 2019-10-19 17:07:10 |
| 1722 | 375 | 9262 | 2019-10-19 17:07:10 |
| 1723 | 375 | 9263 | 2019-10-19 17:07:10 |
| 1724 | 375 | 9264 | 2019-10-19 17:07:10 |
| 1725 | 375 | 9265 | 2019-10-19 17:07:10 |
Table definition
CREATE TABLE exhibition_booking (
booking_id INTEGER PRIMARY KEY,
slot_id INTEGER NOT NULL REFERENCES exhibition_slot (slot_id),
ticket_id INTEGER NOT NULL REFERENCES ticket (ticket_id),
booked_at TEXT NOT NULL,
UNIQUE (slot_id, ticket_id)
) STRICT;