Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 9,776–9,800 of 9,842

ticket, page 392 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
977630097767330715361
977730097771097775362
977830097784416355362
977930097794414105364
978030097807227805364
978130097815957375367
978230097822917975368
978330097834485065368
978430097848082285369
978530097855886455369
978630097867672845370
978730097873581105371
978830097883864735372
978930097891133955372
979030097902295905373
979130097918527235373
979230097929263655375
979330097930178135375
979430097942823045375
979530097958373115378
979630097960665915378
979730097976431035382
979830097985168035382
979930097997316335382
980030098006437005382
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;