Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,976–6,000 of 9,842

ticket, page 240 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
597630059765676053312
597730059771051993312
597830059788526103312
597930059793446543312
598030059806183793312
598130059814231243312
598230059821707013312
598330059831640953312
598430059848302953312
598530059851735403312
598630059867139083312
598730059873993533312
598830059881393563312
598930059898937503312
599030059905238363312
599130059911585133312
599230059920774133312
599330059939487733312
599430059941758853312
599530059951248183312
599630059964901493312
599730059972516443312
599830059980362813312
599930059998280943312
600030060002059623312
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;