Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,551–8,575 of 9,842

ticket, page 343 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
855130085516261724634
855230085521775944637
855330085538292964637
855430085549670474638
855530085551542734638
855630085564370214640
855730085577547404640
855830085583683654643
855930085597839124644
856030085600032214648
856130085613324824650
856230085628232414650
856330085638138194650
856430085644272834650
856530085658102944651
856630085666069394651
856730085673797384653
856830085681051284653
856930085695178014653
857030085701668824654
857130085712578434654
857230085727832664654
857330085730882544655
857430085741214724657
857530085752635664657
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;