Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 7,176–7,200 of 9,842

ticket, page 288 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
717630071761084873899
717730071770737083899
717830071789796753900
717930071795117453900
718030071803900493901
718130071813220703901
718230071829141493903
718330071836777583903
718430071840110733903
718530071854253223904
718630071860888223904
718730071877769563904
718830071886409643904
718930071898862873904
719030071903212423907
719130071918180123907
719230071921608883909
719330071932832913909
719430071942108493909
719530071950464943909
719630071964669333911
719730071977675593911
719830071986775713912
719930071993437953913
720030072002355233913
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;