Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,426–6,450 of 9,842

ticket, page 258 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
642630064264802643544
642730064274033683544
642830064281209353544
642930064299193443544
643030064307546843545
643130064310026363545
643230064320955323545
643330064333750123545
643430064343082993547
643530064355769603548
643630064367983463548
643730064374200503549
643830064384033973549
643930064394082863549
644030064404929833549
644130064410093133550
644230064423447663551
644330064435919933552
644430064446044563552
644530064453127803552
644630064463590353552
644730064472334223553
644830064483301723554
644930064497971213556
645030064505506093556
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;