Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,276–6,300 of 9,842

ticket, page 252 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
627630062762723193462
627730062772912943464
627830062787853923466
627930062793918493466
628030062802832543467
628130062810040003467
628230062820847113468
628330062831578113468
628430062846584803469
628530062851837133469
628630062865810833471
628730062877694313471
628830062886849993471
628930062890382183471
629030062902102703471
629130062910385453473
629230062921876143473
629330062931773813473
629430062943482813474
629530062955549383474
629630062962340493475
629730062975911843475
629830062982082543476
629930062996268393477
630030063009558083478
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;