Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 311 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
775130077519123694167
775230077520187044167
775330077536610384167
775430077540576644168
775530077559337264168
775630077566954524168
775730077578648474169
775830077581486374169
775930077597038404169
776030077603092104169
776130077610453454169
776230077624339904170
776330077637541004170
776430077640113414170
776530077659841954170
776630077664579214171
776730077676042974171
776830077682945824172
776930077699923024172
777030077709832844172
777130077716581854173
777230077729654084173
777330077730503984175
777430077749648264176
777530077752835344178
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;