Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,701–8,725 of 9,842

ticket, page 349 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
870130087016513614721
870230087028836584722
870330087039885584722
870430087047266414724
870530087054027454726
870630087060548744726
870730087078207374726
870830087088548704726
870930087094861874728
871030087102074664729
871130087116355964731
871230087121344924733
871330087135453634733
871430087146402234736
871530087155747414736
871630087167511704736
871730087172204364741
871830087187265864741
871930087197021344742
872030087206782064742
872130087216010074742
872230087224233774743
872330087230879364745
872430087244528394745
872530087251410184745
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;