Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,176–6,200 of 9,842

ticket, page 248 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
617630061760879303398
617730061777451293399
617830061789981283399
617930061796878773399
618030061800950913400
618130061814462613400
618230061823412013401
618330061830586943406
618430061845044563406
618530061850962793406
618630061860482383407
618730061870815013407
618830061887006183407
618930061891028523407
619030061908321293409
619130061912809443409
619230061922364813410
619330061939947393412
619430061940895663413
619530061957141893413
619630061964591663415
619730061975150083416
619830061985400153416
619930061990780783417
620030062006282373417
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;