Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 170 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
422630042260935512343
422730042272774882343
422830042287064812343
422930042298542372343
423030042309507822343
423130042313673922343
423230042329891112343
423330042338754332343
423430042344741172343
423530042357338482343
423630042361929692343
423730042378341892343
423830042384474702343
423930042394841022344
424030042404774532344
424130042412498252345
424230042429592552345
424330042436472422346
424430042448142332346
424530042450646612347
424630042466631472347
424730042474598332347
424830042483624042349
424930042496058842350
425030042503046272354
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;