Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,376–8,400 of 9,842

ticket, page 336 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
837630083764148054526
837730083779495334527
837830083783664544527
837930083799592764528
838030083807765354528
838130083813839354528
838230083827425784528
838330083836919054528
838430083843802854529
838530083858579884531
838630083864632274531
838730083873223274532
838830083880526324534
838930083890104034534
839030083908953624534
839130083916588684535
839230083924034984535
839330083934481034535
839430083949999434535
839530083950840434535
839630083962161324536
839730083975064034537
839830083986487844538
839930083997646344540
840030084005063314541
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;