Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,101–3,125 of 9,842

ticket, page 125 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
310130031014907711754
310230031024116661754
310330031034433061754
310430031047485501754
310530031053583931754
310630031063740091754
310730031071859211754
310830031080456091754
310930031098136341754
311030031107594681754
311130031118822441754
311230031125844341754
311330031139795861754
311430031142066381754
311530031159998501754
311630031165436281754
311730031175259381754
311830031185812111754
311930031199388171754
312030031206762931754
312130031213201471754
312230031226713121754
312330031237573461754
312430031245870861754
312530031258797551754
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;