Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 293 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
730130073012100943993
730230073025630023993
730330073033798913993
730430073043216373993
730530073054971943993
730630073065796993993
730730073075361323993
730830073087803893993
730930073091877313993
731030073106408433993
731130073116889123993
731230073126104593993
731330073130926903993
731430073146794423993
731530073153956163993
731630073164339893993
731730073177015833993
731830073183208643993
731930073193625893993
732030073207287623993
732130073210468273993
732230073229384733993
732330073232426943993
732430073248432993993
732530073255551553993
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;