Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,101–6,125 of 9,842

ticket, page 245 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
610130061017768843377
610230061024210083377
610330061035235993377
610430061046527103378
610530061052068093378
610630061064646093380
610730061072508273380
610830061089175743381
610930061090373393381
611030061107069763382
611130061119359893382
611230061123049713383
611330061132105313383
611430061147695473384
611530061150131843384
611630061162326183385
611730061179581463385
611830061185960083385
611930061196466343385
612030061200835183386
612130061218162843386
612230061224107783386
612330061233294683386
612430061245494123386
612530061259969873386
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;