Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 269 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
670130067017704803661
670230067027607433662
670330067036479353662
670430067045563113664
670530067056415563664
670630067065347163664
670730067074866653664
670830067088040263666
670930067096947483666
671030067109054633668
671130067110731513669
671230067129247843669
671330067133217423670
671430067149406403670
671530067152907803670
671630067168185303671
671730067176156553671
671830067187779233673
671930067199706673673
672030067208809573674
672130067217443493675
672230067222318693675
672330067234851513675
672430067242583563675
672530067256374463676
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;