Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 2,276–2,300 of 9,842

ticket, page 92 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
227630022761264501237
227730022777667381237
227830022788194401238
227930022790233221238
228030022806351691240
228130022816629021240
228230022822187671244
228330022835670851245
228430022840480351245
228530022852427641249
228630022865087991249
228730022876004021250
228830022881235081252
228930022891352961252
229030022902250541254
229130022911081861254
229230022925374741255
229330022936344151257
229430022940166081257
229530022952758621258
229630022967231561259
229730022971445821259
229830022987811941261
229930022994467461261
230030023006311471263
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;