Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,401–5,425 of 9,842

ticket, page 217 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
540130054017298053000
540230054023774253000
540330054038123653000
540430054044805983000
540530054052835003000
540630054060559623000
540730054074245733000
540830054087339873000
540930054093873343000
541030054105343093000
541130054116223833000
541230054120030503000
541330054135421373000
541430054147920323000
541530054152397963000
541630054160353683000
541730054177689573000
541830054184341413000
541930054195454423000
542030054206233773000
542130054211598683000
542230054227779273000
542330054238677203000
542430054247258503000
542530054259577143000
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;