Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 2,901–2,925 of 9,842

ticket, page 117 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
290130029011831741646
290230029028899251647
290330029035066061647
290430029048349631647
290530029050180031647
290630029061584851648
290730029074580761648
290830029080334731648
290930029095951641650
291030029106211571650
291130029113081131652
291230029125037141652
291330029134729621653
291430029147607461653
291530029159088461654
291630029168852871654
291730029176929531655
291830029188014811655
291930029198928181659
292030029205182631663
292130029214864071663
292230029222404831664
292330029236695571664
292430029242387191664
292530029252171211664
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;