Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 377 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
940130094010396715064
940230094026626215064
940330094035982095067
940430094047176305069
940530094054369985069
940630094068707725069
940730094075466135069
940830094089931255070
940930094099210095070
941030094104578275071
941130094112598355071
941230094122635145072
941330094131530295073
941430094140862615074
941530094159499215079
941630094162979535079
941730094177581935080
941830094185660935080
941930094199499415081
942030094207985995081
942130094215811855084
942230094228178275084
942330094239221175085
942430094245972695088
942530094254980775088
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;