Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 9,276–9,300 of 9,842

ticket, page 372 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
927630092760360584974
927730092773057654974
927830092788503304974
927930092793309934974
928030092806276104974
928130092817751854974
928230092828414684974
928330092832249854974
928430092845671324974
928530092856420264974
928630092861510634974
928730092879740314974
928830092882387294974
928930092890063454974
929030092908446404974
929130092916225544976
929230092924974114977
929330092930468764978
929430092948229204978
929530092956764994979
929630092963695604982
929730092972856214982
929830092984350204983
929930092995564054983
930030093006076064985
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;