Table
exhibition_booking
A ticket's place in a slot; a trigger stops overbooking.
Replaces in 2020: Exhibition Booking, Booking Ticket
Rows 776–800 of 2,015
| booking_idINTEGER | slot_id→ exhibition_slot.slot_id | ticket_id→ ticket.ticket_id | booked_atTEXT |
|---|---|---|---|
| 776 | 176 | 5095 | 2018-01-07 14:35:08 |
| 777 | 176 | 5096 | 2018-01-07 14:35:08 |
| 778 | 176 | 5097 | 2018-01-07 14:35:08 |
| 779 | 176 | 5098 | 2018-01-07 14:35:08 |
| 780 | 176 | 5099 | 2018-01-07 14:35:08 |
| 781 | 176 | 5100 | 2018-01-07 14:35:08 |
| 782 | 176 | 5101 | 2018-01-07 14:35:08 |
| 783 | 176 | 5102 | 2018-01-07 14:35:08 |
| 784 | 176 | 5103 | 2018-01-07 14:35:08 |
| 785 | 176 | 5104 | 2018-01-07 14:35:08 |
| 786 | 176 | 5105 | 2018-01-07 14:35:08 |
| 787 | 176 | 5106 | 2018-01-07 14:35:08 |
| 788 | 176 | 5107 | 2018-01-07 14:35:08 |
| 789 | 176 | 5108 | 2018-01-07 14:35:08 |
| 790 | 176 | 5109 | 2018-01-07 14:35:08 |
| 791 | 176 | 5110 | 2018-01-07 14:35:08 |
| 792 | 176 | 5111 | 2018-01-07 14:35:08 |
| 793 | 177 | 5112 | 2018-01-07 14:35:08 |
| 794 | 177 | 5113 | 2018-01-07 14:35:08 |
| 795 | 177 | 5114 | 2018-01-07 14:35:08 |
| 796 | 177 | 5115 | 2018-01-07 14:35:08 |
| 797 | 177 | 5116 | 2018-01-07 14:35:08 |
| 798 | 177 | 5117 | 2018-01-07 14:35:08 |
| 799 | 177 | 5118 | 2018-01-07 14:35:08 |
| 800 | 177 | 5119 | 2018-01-07 14:35:08 |
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;