Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,726–5,750 of 9,842

ticket, page 230 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
572630057267597653191
572730057275363363191
572830057285521513191
572930057293039043191
573030057300764363191
573130057317601693191
573230057327679613191
573330057336696633191
573430057341315363191
573530057350178403191
573630057363222223191
573730057375297423191
573830057384126303192
573930057392991243192
574030057401872713193
574130057412473203194
574230057427604533194
574330057436540963194
574430057442331113194
574530057452533203196
574630057462843143196
574730057475005263196
574830057486993993197
574930057493331563197
575030057500322743198
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;