Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,026–3,050 of 9,842

ticket, page 122 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
302630030266564411711
302730030271333461711
302830030285196201713
302930030293616151713
303030030304325281713
303130030315838271714
303230030321585011714
303330030331407271714
303430030346100661714
303530030358272671715
303630030369401761715
303730030374246941717
303830030384875261717
303930030390003571718
304030030403581801719
304130030412549501719
304230030427924601720
304330030433068341722
304430030447060361722
304530030456544361722
304630030463029271722
304730030478893721725
304830030487898911728
304930030497789721729
305030030509295411729
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;