Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 337 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
840130084013583264541
840230084027247524541
840330084032426514541
840430084044754974542
840530084051028064542
840630084067020674542
840730084073311844544
840830084084814494544
840930084091642014545
841030084103213584545
841130084111714864546
841230084129258354547
841330084133374404547
841430084147205844547
841530084154152864547
841630084161747114548
841730084171526054548
841830084187748104548
841930084190705164548
842030084206128734553
842130084216439234554
842230084225939134554
842330084238527534556
842430084243647914556
842530084259073844556
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;