Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 7,076–7,100 of 9,842

ticket, page 284 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
707630070766934353879
707730070779722813879
707830070781852683879
707930070790332323879
708030070808822813883
708130070810038773884
708230070826025433884
708330070838586703885
708430070847460123886
708530070855902013887
708630070868617763887
708730070877353143887
708830070881801283887
708930070895689693887
709030070904935883887
709130070914375083887
709230070926597073887
709330070936918433887
709430070949549683887
709530070957831783887
709630070965089673887
709730070974440143887
709830070980068633887
709930070992990243887
710030071000463183887
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;