Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 2,201–2,225 of 9,842

ticket, page 89 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
220130022019341801206
220230022022192291208
220330022039703111208
220430022041503361208
220530022051444001210
220630022069552021210
220730022076808661210
220830022081829761211
220930022093042301212
221030022104604771212
221130022116704091212
221230022124676901212
221330022135070311212
221430022140063261212
221530022152180281212
221630022161961801212
221730022176201701212
221830022187711211212
221930022194723671212
222030022200574411212
222130022211660571212
222230022224262791212
222330022230170781212
222430022240438271212
222530022250497541212
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;