Table
exhibition_booking
A ticket's place in a slot; a trigger stops overbooking.
Replaces in 2020: Exhibition Booking, Booking Ticket
Rows 826–850 of 2,015
| booking_idINTEGER | slot_id→ exhibition_slot.slot_id | ticket_id→ ticket.ticket_id | booked_atTEXT |
|---|---|---|---|
| 826 | 166 | 5540 | 2018-04-10 23:18:48 |
| 827 | 166 | 5541 | 2018-04-10 23:18:48 |
| 828 | 166 | 5542 | 2018-04-10 23:18:48 |
| 829 | 166 | 5543 | 2018-04-10 23:18:48 |
| 830 | 169 | 5562 | 2018-04-14 08:18:03 |
| 831 | 169 | 5563 | 2018-04-14 08:18:03 |
| 832 | 175 | 5569 | 2018-04-14 21:57:02 |
| 833 | 171 | 5570 | 2018-04-15 07:06:32 |
| 834 | 171 | 5571 | 2018-04-15 07:06:32 |
| 835 | 172 | 5636 | 2018-04-22 08:53:12 |
| 836 | 172 | 5637 | 2018-04-22 08:53:12 |
| 837 | 178 | 5655 | 2018-04-26 14:49:14 |
| 838 | 178 | 5656 | 2018-04-26 14:49:14 |
| 839 | 173 | 5657 | 2018-04-26 15:04:29 |
| 840 | 173 | 5658 | 2018-04-26 15:04:29 |
| 841 | 174 | 5663 | 2018-04-28 07:57:25 |
| 842 | 180 | 5674 | 2018-05-01 19:12:28 |
| 843 | 180 | 5675 | 2018-05-01 19:12:28 |
| 844 | 182 | 5678 | 2018-05-02 19:38:49 |
| 845 | 182 | 5679 | 2018-05-02 19:38:49 |
| 846 | 182 | 5680 | 2018-05-02 19:38:49 |
| 847 | 182 | 5681 | 2018-05-02 19:38:49 |
| 848 | 182 | 5682 | 2018-05-02 19:38:49 |
| 849 | 179 | 5683 | 2018-05-04 07:18:00 |
| 850 | 179 | 5684 | 2018-05-04 07:18: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;