Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,476–4,500 of 9,842

ticket, page 180 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
447630044763979892486
447730044777038792486
447830044783541932487
447930044794641102487
448030044801629732487
448130044815618592487
448230044827253052489
448330044837746462490
448430044849129312490
448530044851583152491
448630044865322402491
448730044874703322492
448830044886084812492
448930044891371892492
449030044909025142493
449130044916686382494
449230044926789682494
449330044935988182494
449430044941288772494
449530044953650132495
449630044963898142495
449730044974803482495
449830044984771012495
449930044996342212499
450030045007205522499
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;