Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 332 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
827630082769698464453
827730082772578114454
827830082780534014455
827930082795442974455
828030082807659034457
828130082817699174457
828230082825485564458
828330082835463924459
828430082844641754461
828530082856045524461
828630082866237774462
828730082873644384462
828830082883525424462
828930082897124394464
829030082905585084464
829130082918964154464
829230082921178534465
829330082938831334465
829430082947319544465
829530082956268044466
829630082968914344466
829730082971598174470
829830082987333244471
829930082997003514472
830030083003955174473
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;