Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,776–8,800 of 9,842

ticket, page 352 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
877630087766303144777
877730087773829774778
877830087780782614778
877930087797341044781
878030087809803714783
878130087812496934784
878230087825535004784
878330087832816214785
878430087840927644786
878530087855943434786
878630087864245094788
878730087871668464788
878830087881210994790
878930087894405494790
879030087903275054793
879130087911852504793
879230087923612684794
879330087936496574795
879430087947418694795
879530087954985474796
879630087964269894796
879730087974836224797
879830087985419744798
879930087990506234799
880030088003100274799
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;