Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,626–4,650 of 9,842

ticket, page 186 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
462630046263876752557
462730046272626872557
462830046288323342557
462930046297221162557
463030046307027432557
463130046317057342557
463230046328907372557
463330046338402152557
463430046342767362557
463530046354481092557
463630046365181432559
463730046375350192565
463830046384140662565
463930046390760002567
464030046403174742567
464130046417580712567
464230046429330452567
464330046438954882567
464430046441100232568
464530046450891172568
464630046467585402568
464730046476200502569
464830046488327002570
464930046495851372571
465030046502967002571
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;