Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,201–3,225 of 9,842

ticket, page 129 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
320130032017356841788
320230032021820751788
320330032030159791788
320430032040873781788
320530032057268041788
320630032064141491788
320730032073515101788
320830032083198361788
320930032090157171788
321030032101357371788
321130032117068731788
321230032129931621788
321330032137112321788
321430032147877391788
321530032153079071788
321630032162250281788
321730032173311451788
321830032186386471788
321930032193453771788
322030032205531731788
322130032212712971788
322230032223944981788
322330032235842591788
322430032249831521788
322530032251070881788
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;