Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,226–3,250 of 9,842

ticket, page 130 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
322630032261121971788
322730032276010471788
322830032282293091788
322930032293611591788
323030032300978861788
323130032310200651788
323230032328664891788
323330032331689111788
323430032344169781788
323530032354675451788
323630032361770721788
323730032375784431788
323830032381891531788
323930032390064641789
324030032408028791791
324130032419604301791
324230032427779831792
324330032434740531792
324430032440919181793
324530032458656771793
324630032460440401793
324730032475030011793
324830032485037801794
324930032499093361794
325030032505067331794
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;