Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,751–5,775 of 9,842

ticket, page 231 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
575130057513556273198
575230057527602243198
575330057533352833198
575430057541952083199
575530057553931353199
575630057565877743200
575730057573462953200
575830057581673803203
575930057593113033203
576030057607007333206
576130057615812153206
576230057622924433209
576330057631841143210
576430057645537123211
576530057651985803211
576630057665761503211
576730057672282433211
576830057689007863211
576930057699508743212
577030057704987383212
577130057718354683212
577230057726117623212
577330057730499643213
577430057744382163213
577530057752903023215
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;