Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,126–4,150 of 9,842

ticket, page 166 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
412630041267525212302
412730041275878802302
412830041285921652302
412930041291296662302
413030041303641722302
413130041319106892302
413230041326980712302
413330041336146122302
413430041347706182302
413530041355221272302
413630041360072222302
413730041378042532302
413830041383958502302
413930041391430142302
414030041401518112303
414130041419789982303
414230041428757792304
414330041430645422304
414430041446743072305
414530041458278712305
414630041460357052305
414730041471665942305
414830041487070112306
414930041493626672306
415030041508844672307
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;