Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,476–5,500 of 9,842

ticket, page 220 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
547630054769637723042
547730054776104653043
547830054785231523043
547930054790925183044
548030054807188113044
548130054813045633044
548230054822414833047
548330054835958403047
548430054849691443048
548530054851143693048
548630054863587453049
548730054872864173049
548830054883218143049
548930054899189563049
549030054906058393049
549130054917936153050
549230054920699523050
549330054934100283050
549430054947828703052
549530054959145403052
549630054963488573052
549730054979929563052
549830054984919783052
549930054990062363053
550030055000039023054
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;