Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,376–4,400 of 9,842

ticket, page 176 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
437630043764194932442
437730043770676832442
437830043784929062444
437930043792885202446
438030043804283392446
438130043817368082448
438230043827981432450
438330043831974442450
438430043841906712451
438530043854555292452
438630043865433042453
438730043875630552453
438830043883311552453
438930043897765792453
439030043904542332455
439130043911693842456
439230043928998242456
439330043930495692459
439430043942083152460
439530043959802362460
439630043960875542461
439730043979035362461
439830043985753692461
439930043998835982461
440030044001544922462
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;