Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 310 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
772630077269451994152
772730077279613214152
772830077287284464153
772930077294804544155
773030077301796794155
773130077311986994156
773230077321003834156
773330077332965364156
773430077345102874156
773530077359996744156
773630077364086444157
773730077378136914157
773830077381865564157
773930077399628854158
774030077401395774160
774130077411729254161
774230077425112154161
774330077438469194161
774430077443735024161
774530077451838544161
774630077465330014165
774730077479193504165
774830077483516114165
774930077492258364165
775030077500905754165
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;