Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 9,301–9,325 of 9,842

ticket, page 373 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
930130093015835804985
930230093028860824987
930330093032735194988
930430093045767604990
930530093055857944990
930630093061266834993
930730093073153004994
930830093083532604994
930930093099828384999
931030093103496464999
931130093111033365000
931230093123969275000
931330093132700805001
931430093146299045001
931530093157991655001
931630093167748645001
931730093178003755001
931830093186151125002
931930093192568335002
932030093207539785003
932130093211128075003
932230093221360305004
932330093235108685005
932430093248253125005
932530093253656255006
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;