Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,451–8,475 of 9,842

ticket, page 339 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
845130084513588524580
845230084529476364580
845330084534230784581
845430084542012304584
845530084557104494584
845630084560191934586
845730084572988864586
845830084580358104586
845930084597157694586
846030084607726634587
846130084615054814587
846230084627568104590
846330084638812414591
846430084644373344591
846530084651802164591
846630084668536524591
846730084672053904591
846830084689825054591
846930084696506964591
847030084700273354591
847130084716752584591
847230084721207474591
847330084730897844591
847430084740053494591
847530084753153264591
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;