Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 826–850 of 9,842

ticket, page 34 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
8263000826494512432
8273000827611014433
8283000828157630434
8293000829695752434
8303000830761457436
8313000831063246436
8323000832987120437
8333000833258227438
8343000834720721440
8353000835337026441
8363000836501559443
8373000837626138443
8383000838563299443
8393000839138280443
8403000840302245444
8413000841656063444
8423000842873065444
8433000843426582444
8443000844822086444
8453000845868263445
8463000846562776445
8473000847857504446
8483000848577242448
8493000849500551448
8503000850994175450
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;