Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,826–6,850 of 9,842

ticket, page 274 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
682630068268961593730
682730068278974913730
682830068282685823730
682930068297233823731
683030068306654483731
683130068311783633732
683230068323777733733
683330068338146803733
683430068346925133734
683530068359665373734
683630068367961143735
683730068375256633735
683830068385422893735
683930068393206293736
684030068405187723738
684130068418790083738
684230068424667473738
684330068435616863738
684430068441231883739
684530068450893793739
684630068465360623739
684730068475713923739
684830068488523163739
684930068498877813740
685030068505816933745
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;