Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,301–5,325 of 9,842

ticket, page 213 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
530130053015172992938
530230053021961572940
530330053033848442942
530430053042081302942
530530053058635892942
530630053067478472944
530730053072709242945
530830053088886492945
530930053091881412945
531030053100004072946
531130053117168352946
531230053120984682946
531330053131472382947
531430053149878142947
531530053154114682948
531630053165145652951
531730053179369932951
531830053186505642952
531930053195785132953
532030053203681492953
532130053213433672955
532230053223435952956
532330053235178242956
532430053249029092956
532530053251222632956
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;