Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,801–6,825 of 9,842

ticket, page 273 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
680130068012323783730
680230068029430363730
680330068036163313730
680430068049054183730
680530068058558053730
680630068061183683730
680730068074730303730
680830068089080283730
680930068098550463730
681030068104749593730
681130068111130463730
681230068128864863730
681330068132863953730
681430068146279283730
681530068156350343730
681630068160838953730
681730068173874863730
681830068181097513730
681930068191229453730
682030068201593553730
682130068211154773730
682230068220263443730
682330068235089763730
682430068240820023730
682530068252949053730
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;