Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,276–4,300 of 9,842

ticket, page 172 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
427630042762750622367
427730042770679902368
427830042784769482369
427930042797970472369
428030042806550702370
428130042816998012370
428230042828925482370
428330042835974112373
428430042842186412373
428530042858059992373
428630042863330042374
428730042871009272374
428830042880478212374
428930042895690362375
429030042903998112375
429130042916436032375
429230042929828912375
429330042939899052375
429430042946032752376
429530042957300682378
429630042966779062381
429730042977505942381
429830042984088902381
429930042992361212382
430030043005219942384
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;