Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,176–3,200 of 9,842

ticket, page 128 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
317630031765489201780
317730031775746361781
317830031781828231781
317930031792299651782
318030031809299771783
318130031815090381783
318230031827821551786
318330031831673391787
318430031849742131787
318530031859439941787
318630031866426631788
318730031879587221788
318830031881592851788
318930031890516501788
319030031905352661788
319130031913726481788
319230031922330271788
319330031934718111788
319430031945820541788
319530031955063291788
319630031969813941788
319730031978790141788
319830031986133781788
319930031993099581788
320030032005950971788
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;