Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,851–6,875 of 9,842

ticket, page 275 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
685130068519277393745
685230068528991793747
685330068531593423748
685430068541510153751
685530068555879883751
685630068560611123752
685730068575443283752
685830068585817173753
685930068596355673753
686030068608675303753
686130068618409373755
686230068626278623755
686330068638360323759
686430068640989183759
686530068652018113760
686630068669201093761
686730068672556063761
686830068689972423761
686930068694254583766
687030068704816153767
687130068717372173767
687230068724586983768
687330068732473903769
687430068743456143769
687530068756599323769
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;