Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,501–4,525 of 9,842

ticket, page 181 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
450130045010710562500
450230045021526732500
450330045036899282501
450430045044356702502
450530045057252762502
450630045064617262502
450730045073101592503
450830045081101132503
450930045094998922503
451030045100097042503
451130045116395552503
451230045122322562504
451330045133360212504
451430045147956262504
451530045153890342505
451630045164183012505
451730045171924752505
451830045180167352505
451930045197089062505
452030045208639992506
452130045216772252510
452230045227987372510
452330045231402782511
452430045242172592514
452530045253123092515
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;