Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,376–6,400 of 9,842

ticket, page 256 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
637630063760413563514
637730063776998563514
637830063781494973514
637930063799723093514
638030063802677043514
638130063812051233514
638230063822443813514
638330063837549693514
638430063849469613514
638530063851689793514
638630063860290393514
638730063876425773514
638830063886134633514
638930063892342703514
639030063903808113515
639130063918365863515
639230063923777763515
639330063937428563515
639430063948561853518
639530063955712793518
639630063965445983521
639730063977545623522
639830063984711593522
639930063995392943522
640030064002116823522
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;