Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,226–8,250 of 9,842

ticket, page 330 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
822630082261375844420
822730082272981344420
822830082284438154421
822930082295297544421
823030082300445224421
823130082313266974422
823230082326499414422
823330082332037714424
823430082349804414424
823530082352253234424
823630082365361234425
823730082379403084425
823830082384616794426
823930082395107364426
824030082401807134427
824130082413064504427
824230082424248224428
824330082439419774428
824430082447813804429
824530082453485604430
824630082468341294430
824730082476444894430
824830082484018784430
824930082491157084431
825030082506309784431
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;