Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,401–3,425 of 9,842

ticket, page 137 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
340130034018871031855
340230034023539431855
340330034038805811856
340430034049914511861
340530034057191221861
340630034062983451862
340730034072587851862
340830034085508621864
340930034096064951864
341030034107466711865
341130034116485141865
341230034120151461866
341330034136380011867
341430034141651701867
341530034155757421869
341630034167888441869
341730034179025121869
341830034186583531869
341930034196871591869
342030034201626141871
342130034214755111871
342230034224392011871
342330034239114461874
342430034244238491875
342530034258612231876
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;