Table
exhibition_booking
A ticket's place in a slot; a trigger stops overbooking.
Replaces in 2020: Exhibition Booking, Booking Ticket
Rows 551–575 of 2,015
| booking_idINTEGER | slot_id→ exhibition_slot.slot_id | ticket_id→ ticket.ticket_id | booked_atTEXT |
|---|---|---|---|
| 551 | 122 | 3884 | 2017-05-03 19:29:18 |
| 552 | 125 | 3892 | 2017-05-06 17:07:37 |
| 553 | 125 | 3893 | 2017-05-06 17:07:37 |
| 554 | 125 | 3894 | 2017-05-06 17:07:37 |
| 555 | 127 | 3915 | 2017-05-10 12:44:44 |
| 556 | 127 | 3916 | 2017-05-10 12:44:44 |
| 557 | 129 | 3920 | 2017-05-11 11:40:01 |
| 558 | 129 | 3921 | 2017-05-11 11:40:01 |
| 559 | 126 | 3931 | 2017-05-12 09:57:03 |
| 560 | 126 | 3932 | 2017-05-12 09:57:03 |
| 561 | 126 | 3933 | 2017-05-12 09:57:03 |
| 562 | 126 | 3934 | 2017-05-12 09:57:03 |
| 563 | 128 | 3942 | 2017-05-15 12:36:18 |
| 564 | 138 | 4422 | 2017-08-20 12:49:00 |
| 565 | 138 | 4423 | 2017-08-20 12:49:00 |
| 566 | 138 | 4424 | 2017-08-20 12:49:00 |
| 567 | 138 | 4425 | 2017-08-20 12:49:00 |
| 568 | 138 | 4426 | 2017-08-20 12:49:00 |
| 569 | 138 | 4427 | 2017-08-20 12:49:00 |
| 570 | 138 | 4428 | 2017-08-20 12:49:00 |
| 571 | 138 | 4429 | 2017-08-20 12:49:00 |
| 572 | 138 | 4430 | 2017-08-20 12:49:00 |
| 573 | 138 | 4431 | 2017-08-20 12:49:00 |
| 574 | 138 | 4432 | 2017-08-20 12:49:00 |
| 575 | 138 | 4433 | 2017-08-20 12:49:00 |
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;