Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,626–8,650 of 9,842

ticket, page 346 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
862630086269076514676
862730086271803094676
862830086287899734676
862930086292720214676
863030086303373514676
863130086318036814678
863230086326679594679
863330086335181424680
863430086342543074680
863530086357622864681
863630086367143474683
863730086375824764684
863830086384204234684
863930086399391244684
864030086404923124687
864130086413428774688
864230086425294104688
864330086430525164688
864430086442566124688
864530086450438464691
864630086464192714691
864730086471545944691
864830086489634474692
864930086495111474692
865030086507084954693
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;