Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,926–3,950 of 9,842

ticket, page 158 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
392630039265584382155
392730039270685142155
392830039286132212155
392930039291146452156
393030039300070502156
393130039312945112158
393230039326822872158
393330039335860962158
393430039345855852158
393530039358577632159
393630039367684242161
393730039370962862162
393830039387339312162
393930039394401582162
394030039409677892164
394130039419892072166
394230039427508762167
394330039438062972169
394430039443217312169
394530039453821432169
394630039467066942169
394730039478735872169
394830039487788772170
394930039493320912170
395030039502291482171
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;