Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 7,351–7,375 of 9,842

ticket, page 295 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
735130073518508474009
735230073523093814010
735330073531682044010
735430073543440124010
735530073551072764010
735630073561644864011
735730073570215254011
735830073586724504011
735930073596917374011
736030073602813164012
736130073619154264013
736230073626103034016
736330073632590514016
736430073646821914017
736530073654505494017
736630073664429624020
736730073675598734020
736830073689175264026
736930073692699484027
737030073703705714027
737130073712983324028
737230073727752854028
737330073734726544029
737430073749904234029
737530073753323094029
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;