Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 9,701–9,725 of 9,842

ticket, page 389 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
970130097012475115298
970230097027206775298
970330097034680845299
970430097042616405300
970530097050008185300
970630097067842795300
970730097075504035301
970830097083535615301
970930097090449635302
971030097105855775302
971130097118861645303
971230097125725855304
971330097134827305304
971430097149909185307
971530097153610945307
971630097160334295309
971730097173846535310
971830097184920175310
971930097198216105310
972030097208184305310
972130097211780405313
972230097229394715313
972330097235558415315
972430097249466325315
972530097259987665315
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;