Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 9,826–9,842 of 9,842

ticket, page 394 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
982630098268355695397
982730098274824335397
982830098281862165398
982930098298296095398
983030098302103795399
983130098313208555400
983230098322002615400
983330098339989195401
983430098347674475401
983530098353658985401
983630098361929385403
983730098372117355408
983830098386978705409
983930098396172875409
984030098402306865410
984130098414405205410
984230098422655635410
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;