Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,201–6,225 of 9,842

ticket, page 249 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
620130062012409353417
620230062023426893418
620330062032996803419
620430062041626843419
620530062059011743419
620630062062115413419
620730062076297703420
620830062082342353421
620930062092348063421
621030062103251613421
621130062112275753421
621230062128082493421
621330062136617473424
621430062144406613427
621530062157217853428
621630062167942273429
621730062171870153429
621830062189435103429
621930062198917633430
622030062203279993430
622130062219638353431
622230062228817813431
622330062238009733434
622430062241704453435
622530062257742493436
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;