Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,826–4,850 of 9,842

ticket, page 194 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
482630048268303182659
482730048275948512660
482830048282543742661
482930048296951542661
483030048304869562661
483130048310529712661
483230048326817062662
483330048333933042662
483430048346873742662
483530048358927112663
483630048368567802663
483730048374246912671
483830048385752102671
483930048392530092672
484030048408712072672
484130048418430172675
484230048429971202676
484330048436992902676
484430048441471112677
484530048454597662677
484630048460630812679
484730048477997122680
484830048489664772681
484930048493228392682
485030048504915502682
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;