Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,826–3,850 of 9,842

ticket, page 154 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
382630038265297772088
382730038276382702088
382830038289031932088
382930038297579672090
383030038302493832090
383130038316701022091
383230038325681052091
383330038338474942092
383430038342400812092
383530038358522252094
383630038366679712094
383730038375052102094
383830038382227012094
383930038398291602094
384030038407503992095
384130038419234552095
384230038423197302099
384330038433464252101
384430038448407402101
384530038451833072101
384630038462611782101
384730038470170312101
384830038483825372105
384930038492672132106
385030038502882322107
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;