Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 171 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
425130042515458462354
425230042526501952356
425330042536414712356
425430042545100292358
425530042550244902359
425630042568531002359
425730042575532322359
425830042585126462359
425930042593502122362
426030042608414492362
426130042610483622362
426230042627391692362
426330042636021102362
426430042645107712363
426530042652836552363
426630042662144762363
426730042679013332363
426830042682253522364
426930042698437012364
427030042705126962366
427130042712602752366
427230042723274872367
427330042737337542367
427430042742491942367
427530042759988872367
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;