Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 9,726–9,750 of 9,842

ticket, page 390 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
972630097263901545316
972730097275674855316
972830097282580055316
972930097297070845316
973030097304163505316
973130097313079945317
973230097328710135318
973330097334328885318
973430097349007995319
973530097354171835319
973630097364696835320
973730097378448155322
973830097387933955322
973930097394728185322
974030097405763945325
974130097414036235326
974230097423947905327
974330097435871265327
974430097446300075327
974530097453718565328
974630097465547645332
974730097474855335332
974830097484754345332
974930097490896565332
975030097503641605333
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;