Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,001–6,025 of 9,842

ticket, page 241 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
600130060013336353312
600230060027682893312
600330060038683283312
600430060040654533312
600530060051613463312
600630060062230193312
600730060071160733312
600830060082076663312
600930060094953533312
601030060106214873312
601130060115120443312
601230060120282373312
601330060131286473312
601430060149275203312
601530060158571213316
601630060168867333317
601730060178800093317
601830060181779573318
601930060195832253318
602030060209268793318
602130060213152293319
602230060223091763321
602330060232599153322
602430060240244533322
602530060259043533323
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;