Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 1,976–2,000 of 9,842

ticket, page 80 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
197630019769465031075
197730019778320651075
197830019789605131076
197930019791263531077
198030019802243021077
198130019810419781083
198230019825406201084
198330019837081281086
198430019847076891087
198530019853170081087
198630019866125421087
198730019873742691087
198830019880994831087
198930019898363461088
199030019902328211088
199130019916116831090
199230019928797541090
199330019932701471090
199430019940249571090
199530019958677991090
199630019963127561091
199730019973005961092
199830019982545251092
199930019991416521093
200030020001581661093
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;