Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,076–3,100 of 9,842

ticket, page 124 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
307630030764753361751
307730030774481591751
307830030781176451752
307930030796967911752
308030030805647831752
308130030812010651754
308230030827885981754
308330030832586811754
308430030843394551754
308530030857926901754
308630030869052461754
308730030875469091754
308830030883772661754
308930030898195641754
309030030905833971754
309130030913042741754
309230030925611341754
309330030937299491754
309430030945260711754
309530030952449941754
309630030965809411754
309730030977833951754
309830030986793261754
309930030998589681754
310030031002067181754
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;