Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 2,301–2,325 of 9,842

ticket, page 93 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
230130023011881761263
230230023022075851265
230330023030436581265
230430023044342191267
230530023058395111267
230630023063499701267
230730023070934081268
230830023086402191268
230930023093896971270
231030023108101391270
231130023118222321271
231230023125257261271
231330023136429661272
231430023147733721272
231530023150987991272
231630023164826791272
231730023177662041272
231830023186870941273
231930023193409661275
232030023204138931276
232130023212236901276
232230023229516171276
232330023239922151276
232430023248400081277
232530023254885881277
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;