Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,976–9,000 of 9,842

ticket, page 360 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
897630089765109784873
897730089778088574873
897830089785152734873
897930089792842064873
898030089802439244873
898130089815818374873
898230089822755814873
898330089834037284873
898430089844595644873
898530089854227494873
898630089863015364873
898730089876542764873
898830089888536494873
898930089890426394873
899030089908261374873
899130089914607254873
899230089928462364873
899330089937336994873
899430089942550424873
899530089952182914873
899630089965898954873
899730089975263014873
899830089988771544873
899930089995595324873
900030090006767824873
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;