Table
exhibition_booking
A ticket's place in a slot; a trigger stops overbooking.
Replaces in 2020: Exhibition Booking, Booking Ticket
Rows 1,376–1,400 of 2,015
| booking_idINTEGER | slot_id→ exhibition_slot.slot_id | ticket_id→ ticket.ticket_id | booked_atTEXT |
|---|---|---|---|
| 1376 | 260 | 7830 | 2019-03-19 08:52:54 |
| 1377 | 260 | 7831 | 2019-03-19 08:52:54 |
| 1378 | 260 | 7832 | 2019-03-19 08:52:54 |
| 1379 | 260 | 7833 | 2019-03-19 08:52:54 |
| 1380 | 260 | 7834 | 2019-03-19 08:52:54 |
| 1381 | 260 | 7835 | 2019-03-19 08:52:54 |
| 1382 | 260 | 7836 | 2019-03-19 08:52:54 |
| 1383 | 260 | 7837 | 2019-03-19 08:52:54 |
| 1384 | 260 | 7838 | 2019-03-19 08:52:54 |
| 1385 | 260 | 7839 | 2019-03-19 08:52:54 |
| 1386 | 260 | 7840 | 2019-03-19 08:52:54 |
| 1387 | 260 | 7841 | 2019-03-19 08:52:54 |
| 1388 | 260 | 7842 | 2019-03-19 08:52:54 |
| 1389 | 260 | 7843 | 2019-03-19 08:52:54 |
| 1390 | 260 | 7844 | 2019-03-19 08:52:54 |
| 1391 | 260 | 7845 | 2019-03-19 08:52:54 |
| 1392 | 260 | 7846 | 2019-03-19 08:52:54 |
| 1393 | 260 | 7847 | 2019-03-19 08:52:54 |
| 1394 | 260 | 7848 | 2019-03-19 08:52:54 |
| 1395 | 260 | 7849 | 2019-03-19 08:52:54 |
| 1396 | 260 | 7850 | 2019-03-19 08:52:54 |
| 1397 | 260 | 7851 | 2019-03-19 08:52:54 |
| 1398 | 260 | 7852 | 2019-03-19 08:52:54 |
| 1399 | 260 | 7853 | 2019-03-19 08:52:54 |
| 1400 | 260 | 7854 | 2019-03-19 08:52:54 |
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;