Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 9,676–9,700 of 9,842

ticket, page 388 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
967630096767573835281
967730096771550305282
967830096782988735282
967930096797874725282
968030096803609705282
968130096818544925282
968230096821623785283
968330096834989345283
968430096844747085284
968530096853325325284
968630096866995785285
968730096870889465285
968830096883958025285
968930096899185375285
969030096907204035286
969130096913263125286
969230096925662355286
969330096935884965288
969430096948721075288
969530096954290065290
969630096965757205290
969730096972780975291
969830096984232885293
969930096991671835297
970030097007110075297
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;