Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,476–8,500 of 9,842

ticket, page 340 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
847630084763572054591
847730084777466484591
847830084789778484591
847930084791917184591
848030084807823564591
848130084816645694591
848230084821738224591
848330084834168304591
848430084848411184591
848530084852826254591
848630084866511004591
848730084879904804591
848830084888988714591
848930084895449344591
849030084902397224591
849130084918915354591
849230084922133384591
849330084939855854591
849430084942109904592
849530084951571534592
849630084966380834595
849730084979597604596
849830084989251844596
849930084999680614596
850030085000517874597
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;