Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,976–4,000 of 9,842

ticket, page 160 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
397630039761933842193
397730039777322422194
397830039781677782199
397930039795776242199
398030039801925902200
398130039813508922201
398230039824147792201
398330039833390202202
398430039842340822202
398530039854258412204
398630039865764972206
398730039878087402206
398830039883934462209
398930039898457092209
399030039901893922209
399130039911570462210
399230039923978492212
399330039936028152212
399430039941551882215
399530039959852342215
399630039962591572215
399730039978689152215
399830039984893322215
399930039999812762216
400030040008840982218
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;