Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 9,601–9,625 of 9,842

ticket, page 385 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
960130096013735985220
960230096024059835220
960330096031990145220
960430096048543315220
960530096058537245223
960630096060344305223
960730096075559285224
960830096082385665224
960930096099220445226
961030096104197425226
961130096116331885226
961230096126906395226
961330096136021805226
961430096148018755228
961530096153787395228
961630096165332085228
961730096176517835229
961830096183362855231
961930096198013775231
962030096202960505233
962130096211368615234
962230096229563435234
962330096239852275236
962430096242860255236
962530096255839055238
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;