Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 2,976–3,000 of 9,842

ticket, page 120 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
297630029764573741686
297730029774907981686
297830029788143961686
297930029794021461686
298030029804606971686
298130029813948311686
298230029821097771686
298330029834007811686
298430029840215601686
298530029851990911686
298630029862441691686
298730029875630341686
298830029882747711686
298930029896764051686
299030029907101691686
299130029913294081688
299230029928922811688
299330029931055711689
299430029947400851689
299530029957315431690
299630029966013271690
299730029979908191691
299830029987866491692
299930029998202671692
300030030005788431693
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;