Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,301–8,325 of 9,842

ticket, page 333 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
830130083015534894474
830230083022715614475
830330083036309134475
830430083041658574476
830530083055928664476
830630083064996644477
830730083079942774477
830830083084267354478
830930083091655504478
831030083108551504480
831130083113202994480
831230083128976464481
831330083138619184482
831430083149630834482
831530083159018724483
831630083160026634483
831730083172262294484
831830083189254784484
831930083198723884485
832030083202114054488
832130083211171044488
832230083222265724489
832330083230899154489
832430083244948544492
832530083253032974493
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;