Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,751–6,775 of 9,842

ticket, page 271 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
675130067518458203696
675230067523920283697
675330067531242863698
675430067549880603698
675530067552507353699
675630067560929443699
675730067575023103699
675830067583795533699
675930067594763253699
676030067602688153701
676130067610823123702
676230067624654863702
676330067639407803703
676430067644194993704
676530067654892813704
676630067668286513705
676730067671487523705
676830067682249753705
676930067694001883705
677030067700683043709
677130067710552623713
677230067724086953715
677330067733603673715
677430067749093913716
677530067751696753716
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;