Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,651–4,675 of 9,842

ticket, page 187 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
465130046516976272572
465230046527014692572
465330046539586662572
465430046546308312574
465530046552212852574
465630046561622712575
465730046577148412575
465830046588904242576
465930046590288172576
466030046600767152577
466130046610244282577
466230046628281172580
466330046630429102582
466430046642938652582
466530046655599892582
466630046668745002582
466730046671141142584
466830046682525632585
466930046695153792585
467030046702999272587
467130046712826412588
467230046728586182588
467330046731730042589
467430046749885582590
467530046756963742590
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;