Table
exhibition_booking
A ticket's place in a slot; a trigger stops overbooking.
Replaces in 2020: Exhibition Booking, Booking Ticket
Rows 2,001–2,015 of 2,015
| booking_idINTEGER | slot_id→ exhibition_slot.slot_id | ticket_id→ ticket.ticket_id | booked_atTEXT |
|---|---|---|---|
| 2001 | 437 | 9806 | 2020-02-15 14:36:36 |
| 2002 | 443 | 9807 | 2020-02-16 07:55:03 |
| 2003 | 443 | 9808 | 2020-02-16 07:55:03 |
| 2004 | 443 | 9809 | 2020-02-16 07:55:03 |
| 2005 | 443 | 9810 | 2020-02-16 07:55:03 |
| 2006 | 436 | 9811 | 2020-02-16 12:36:10 |
| 2007 | 438 | 9812 | 2020-02-16 14:42:43 |
| 2008 | 442 | 9824 | 2020-02-18 15:32:05 |
| 2009 | 442 | 9825 | 2020-02-18 15:32:05 |
| 2010 | 442 | 9826 | 2020-02-18 15:32:05 |
| 2011 | 442 | 9827 | 2020-02-18 15:32:05 |
| 2012 | 439 | 9828 | 2020-02-19 10:06:37 |
| 2013 | 439 | 9829 | 2020-02-19 10:06:37 |
| 2014 | 440 | 9831 | 2020-02-20 14:00:09 |
| 2015 | 440 | 9832 | 2020-02-20 14:00:09 |
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;