Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 375 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
935130093518588755026
935230093526487235026
935330093538243085028
935430093541785865028
935530093559588735028
935630093567247625028
935730093573289135029
935830093580021375029
935930093598232475030
936030093603363995030
936130093611999765030
936230093628053855033
936330093635026895034
936430093644345825034
936530093651401425034
936630093666601225036
936730093676073865036
936830093680484075037
936930093698294115037
937030093706039315038
937130093715239945040
937230093722642935040
937330093735557095041
937430093748142865041
937530093756824535042
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;