Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,926–5,950 of 9,842

ticket, page 238 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
592630059260836513296
592730059277237723296
592830059282435003296
592930059296758013296
593030059303810393296
593130059311268883296
593230059321590703296
593330059335300763296
593430059346180763296
593530059359163243296
593630059366083683296
593730059378818923297
593830059383063683297
593930059398348343299
594030059406143373301
594130059414449403301
594230059421583863302
594330059433985573302
594430059447908613302
594530059455101613302
594630059466390743304
594730059475893593304
594830059485632513304
594930059492693213304
595030059508923363305
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;