Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,351–4,375 of 9,842

ticket, page 175 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
435130043512899902423
435230043526144502423
435330043539351672425
435430043541965132425
435530043555947832427
435630043560796132429
435730043575359152429
435830043583730212430
435930043591476402430
436030043608174162432
436130043612841452432
436230043621077772432
436330043635976872433
436430043648159622433
436530043655381762434
436630043665287702434
436730043675739282435
436830043680274512435
436930043694899802439
437030043704595292439
437130043710131022439
437230043723895732439
437330043739304342439
437430043741846992440
437530043753250742441
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;