Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,001–5,025 of 9,842

ticket, page 201 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
500130050018848432786
500230050022771062786
500330050039911752786
500430050046257952786
500530050053640892786
500630050064476402786
500730050078527352786
500830050089975172786
500930050095666102786
501030050107861602786
501130050110466912786
501230050128295502786
501330050138523462786
501430050145894722786
501530050151553782786
501630050160670522786
501730050177318002786
501830050180141562786
501930050195732032786
502030050205746912786
502130050215909342786
502230050229133692786
502330050239983882786
502430050240789012786
502530050255980952786
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;