Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,876–8,900 of 9,842

ticket, page 356 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
887630088768943204845
887730088774835734846
887830088783855544846
887930088793831124848
888030088803533784848
888130088818663864848
888230088825155284848
888330088835927394850
888430088840900534850
888530088850476824851
888630088869639274851
888730088872887734851
888830088884730644852
888930088898785744852
889030088902436594854
889130088918386864856
889230088929953294856
889330088936757754856
889430088947282864856
889530088954225854859
889630088961111374859
889730088975293814859
889830088986168134859
889930088999283514859
890030089003756614861
Table definition
CREATE TABLE ticket (
  ticket_id INTEGER PRIMARY KEY,
  barcode   TEXT NOT NULL UNIQUE CHECK (length(barcode) = 13 AND barcode NOT GLOB '*[^0-9]*'),
  order_id  INTEGER NOT NULL REFERENCES purchase_order (order_id)
) STRICT;