Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,326–3,350 of 9,842

ticket, page 134 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
332630033262343591822
332730033277135431822
332830033289407651822
332930033297177871822
333030033307019711823
333130033316225821823
333230033329243451824
333330033338116941825
333430033342250891825
333530033358572591827
333630033368760751830
333730033375606931831
333830033384408331831
333930033391254571832
334030033400279061833
334130033411321381835
334230033421196531836
334330033433680301836
334430033446647941836
334530033455981541836
334630033460209841836
334730033473480091836
334830033486853001836
334930033497540851836
335030033506383841836
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;