Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 9,326–9,350 of 9,842

ticket, page 374 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
932630093260610775009
932730093276355605009
932830093287096265010
932930093298902595011
933030093304583235011
933130093311291075012
933230093326317435012
933330093334920085012
933430093340139835012
933530093356219635013
933630093367381535013
933730093374930615017
933830093389911745017
933930093397708175018
934030093405450175020
934130093411078925020
934230093424754895021
934330093439925355022
934430093445137145022
934530093456473715023
934630093467399665024
934730093478330835024
934830093482248395025
934930093491457065025
935030093500759225026
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;