Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,726–6,750 of 9,842

ticket, page 270 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
672630067263315343676
672730067274270593679
672830067280252533679
672930067292140503681
673030067305952363682
673130067313980623682
673230067323447913682
673330067335509533682
673430067341419543684
673530067354873893684
673630067366955513684
673730067371082783688
673830067386094053688
673930067399952113689
674030067403553833690
674130067418283093690
674230067422047973691
674330067438597233691
674430067445386383692
674530067459862983692
674630067467438623693
674730067471423783693
674830067488178003693
674930067493179283696
675030067508239883696
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;