Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,726–3,750 of 9,842

ticket, page 150 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
372630037266440692043
372730037271315662044
372830037283599232045
372930037298756132045
373030037305393672046
373130037318206562048
373230037329044712048
373330037333537532049
373430037348852782049
373530037355013722051
373630037360499532051
373730037378212162053
373830037389999402053
373930037391406842053
374030037409359562053
374130037418278112054
374230037428289522056
374330037438494972056
374430037444451312056
374530037457062532056
374630037463245382056
374730037472216042057
374830037487610642058
374930037499792202058
375030037501022012058
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;