Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,451–4,475 of 9,842

ticket, page 179 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
445130044518321802478
445230044520004782478
445330044531478642478
445430044540398452478
445530044559192402478
445630044567862052478
445730044573596352478
445830044589736212478
445930044594328892478
446030044602402702478
446130044615378052478
446230044627221872478
446330044633751952478
446430044645824092478
446530044651490802480
446630044660418312480
446730044678372062481
446830044684079522481
446930044694303842482
447030044705995472483
447130044714890742484
447230044727502722484
447330044730996142484
447430044746404342484
447530044759866922484
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;