Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 254 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
632630063260987793493
632730063271544683494
632830063280478233495
632930063295079813497
633030063308349183497
633130063317725653497
633230063323977273498
633330063332692863498
633430063345704123498
633530063350542393498
633630063363837673498
633730063374012543500
633830063383270933501
633930063392665933502
634030063407592173503
634130063419223883503
634230063425620973504
634330063430028283505
634430063449938173505
634530063457433083507
634630063467955133508
634730063472604343508
634830063483281163508
634930063490478753508
635030063504156543510
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;