Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,951–4,975 of 9,842

ticket, page 199 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
495130049511646802766
495230049526897202767
495330049532850642767
495430049546016572767
495530049550702912767
495630049568190172768
495730049579784082768
495830049588438912768
495930049594316452768
496030049603242982768
496130049611812232769
496230049629519312769
496330049632331292771
496430049644312732771
496530049655290162771
496630049663091852771
496730049676425832773
496830049682538282773
496930049696109712773
497030049707023682774
497130049713903162775
497230049721550432776
497330049735900422776
497430049742296492778
497530049752881862778
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;