Table
exhibition_booking
A ticket's place in a slot; a trigger stops overbooking.
Replaces in 2020: Exhibition Booking, Booking Ticket
Rows 1,776–1,800 of 2,015
| booking_idINTEGER | slot_id→ exhibition_slot.slot_id | ticket_id→ ticket.ticket_id | booked_atTEXT |
|---|---|---|---|
| 1776 | 342 | 9343 | 2019-11-02 21:21:45 |
| 1777 | 342 | 9344 | 2019-11-02 21:21:45 |
| 1778 | 324 | 9346 | 2019-11-03 18:50:22 |
| 1779 | 324 | 9347 | 2019-11-03 18:50:22 |
| 1780 | 327 | 9348 | 2019-11-03 19:11:05 |
| 1781 | 327 | 9349 | 2019-11-03 19:11:05 |
| 1782 | 323 | 9357 | 2019-11-04 22:46:36 |
| 1783 | 323 | 9358 | 2019-11-04 22:46:36 |
| 1784 | 330 | 9359 | 2019-11-05 10:03:15 |
| 1785 | 330 | 9360 | 2019-11-05 10:03:15 |
| 1786 | 330 | 9361 | 2019-11-05 10:03:15 |
| 1787 | 334 | 9362 | 2019-11-05 17:52:48 |
| 1788 | 337 | 9363 | 2019-11-05 22:33:26 |
| 1789 | 337 | 9364 | 2019-11-05 22:33:26 |
| 1790 | 337 | 9365 | 2019-11-05 22:33:26 |
| 1791 | 325 | 9370 | 2019-11-07 10:25:58 |
| 1792 | 326 | 9371 | 2019-11-07 19:26:54 |
| 1793 | 326 | 9372 | 2019-11-07 19:26:54 |
| 1794 | 351 | 9375 | 2019-11-08 11:00:14 |
| 1795 | 351 | 9376 | 2019-11-08 11:00:14 |
| 1796 | 336 | 9379 | 2019-11-08 12:39:22 |
| 1797 | 336 | 9380 | 2019-11-08 12:39:22 |
| 1798 | 350 | 9381 | 2019-11-08 17:48:42 |
| 1799 | 335 | 9382 | 2019-11-09 17:24:44 |
| 1800 | 331 | 9383 | 2019-11-10 10:12:16 |
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;