Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 2,051–2,075 of 9,842

ticket, page 83 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
205130020513986581131
205230020520322321131
205330020530101131132
205430020544945371132
205530020555993421132
205630020561634611132
205730020570647541134
205830020589053291134
205930020597607801135
206030020600941381135
206130020614578951135
206230020627178941135
206330020633128371137
206430020647484261137
206530020651274601139
206630020666807491140
206730020676221901140
206830020685601141141
206930020693380271141
207030020702169331144
207130020719796101145
207230020727228441146
207330020733529681146
207430020740806101146
207530020759485761146
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;