Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 9,076–9,100 of 9,842

ticket, page 364 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
907630090762717474888
907730090772319394888
907830090787936234888
907930090795428234888
908030090807453864888
908130090817004574888
908230090827250544888
908330090830848124888
908430090843316524889
908530090856163404890
908630090861566224890
908730090877912604893
908830090885996644895
908930090894257224896
909030090908688714897
909130090915805634897
909230090922720654897
909330090932313044897
909430090942021184898
909530090956663294898
909630090966462954899
909730090974191074900
909830090981778304900
909930090996020344900
910030091005174644901
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;