Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,251–6,275 of 9,842

ticket, page 251 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
625130062510359573447
625230062521729653447
625330062532218533450
625430062542949943450
625530062554655783450
625630062568873213450
625730062575020873451
625830062584352243451
625930062590240363452
626030062604430463453
626130062613796763453
626230062624556763455
626330062633740793456
626430062640869123456
626530062656516623456
626630062665588893457
626730062677933603457
626830062684527373458
626930062695680353458
627030062705106163459
627130062711529763460
627230062721453963460
627330062734342823461
627430062743519903461
627530062753553543462
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;