Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,501–6,525 of 9,842

ticket, page 261 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
650130065018186893596
650230065028449213596
650330065037769053597
650430065047148263597
650530065053084313599
650630065061092453599
650730065074683413601
650830065088025163601
650930065093773883602
651030065105232023602
651130065118996553602
651230065124240323602
651330065134107653604
651430065146150253605
651530065156338493605
651630065163749713605
651730065179107083606
651830065180761223608
651930065199541883608
652030065208672703608
652130065213507893608
652230065225445323608
652330065230190033608
652430065242197123608
652530065252781873608
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;