Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,851–4,875 of 9,842

ticket, page 195 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
485130048511900242684
485230048523777842684
485330048536435402686
485430048540060862686
485530048555124112686
485630048560865362686
485730048570664942687
485830048588703792687
485930048592858102690
486030048608317072691
486130048618357792692
486230048628454072692
486330048635983812694
486430048649920922694
486530048653271612694
486630048668934502695
486730048679073242696
486830048680184392696
486930048692974852698
487030048705622562698
487130048712972842700
487230048724463372700
487330048733703022700
487430048746267602700
487530048750291392701
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;