Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,951–6,975 of 9,842

ticket, page 279 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
695130069511532193828
695230069524460513828
695330069531610483828
695430069545358693828
695530069553996713828
695630069561047793828
695730069574301153828
695830069588338713828
695930069598336863828
696030069607690083828
696130069611588333828
696230069623236153828
696330069637359973828
696430069642390553828
696530069658086973828
696630069668740013828
696730069673086293828
696830069682006273828
696930069691938703828
697030069709771233828
697130069711617893828
697230069724554833828
697330069735300623828
697430069748336833828
697530069753688933828
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;