Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,001–4,025 of 9,842

ticket, page 161 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
400130040016162422218
400230040024578482221
400330040034364182222
400430040048358572225
400530040059145102226
400630040061590762226
400730040070532472227
400830040081499762227
400930040095568712228
401030040100189912228
401130040118786092230
401230040126821782230
401330040131651932230
401430040140582542230
401530040157982732230
401630040165640822232
401730040179930512233
401830040183784262234
401930040196694582234
402030040203476492234
402130040219104692234
402230040223360582234
402330040234711432235
402430040243122672235
402530040252780062236
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;