Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 9,651–9,675 of 9,842

ticket, page 387 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
965130096518793585264
965230096529934865265
965330096538712195266
965430096548437485267
965530096553471665267
965630096563181675268
965730096574740355268
965830096586152365269
965930096590491015273
966030096602724035273
966130096616315445273
966230096629152425274
966330096630082575274
966430096646578755275
966530096654441845275
966630096662563165276
966730096679527675276
966830096686050785276
966930096693198555278
967030096708834315278
967130096716620945278
967230096728716605278
967330096734398905279
967430096743260935279
967530096750131675280
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;