Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 9,251–9,275 of 9,842

ticket, page 371 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
925130092519748414974
925230092529551364974
925330092532821664974
925430092546110224974
925530092555616744974
925630092567565404974
925730092575288344974
925830092581397024974
925930092596282954974
926030092607699204974
926130092617197014974
926230092627567264974
926330092630025614974
926430092640610384974
926530092659681664974
926630092660997794974
926730092676643204974
926830092680821754974
926930092694610354974
927030092708221484974
927130092713921634974
927230092727031874974
927330092739455644974
927430092743765074974
927530092755954834974
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;