Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,376–3,400 of 9,842

ticket, page 136 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
337630033763470111836
337730033775426531836
337830033781136551836
337930033799789481836
338030033802049041836
338130033814982531836
338230033820522361837
338330033832894171837
338430033848885701837
338530033857070771841
338630033861537351841
338730033875016921841
338830033886550581842
338930033895159991843
339030033904124121843
339130033919698641848
339230033921730001848
339330033939834921849
339430033940394241851
339530033953741471852
339630033963357431852
339730033971607151852
339830033988332441854
339930033995991691854
340030034006565751854
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;