Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 1,376–1,400 of 9,842

ticket, page 56 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
13763001376374439768
13773001377862378768
13783001378635970768
13793001379837207768
13803001380099405768
13813001381164167768
13823001382888935768
13833001383423101768
13843001384455104768
13853001385136192768
13863001386563111768
13873001387416967768
13883001388013582768
13893001389050801768
13903001390700931768
13913001391052315768
13923001392078626768
13933001393554438768
13943001394453364768
13953001395136724768
13963001396197551768
13973001397881150768
13983001398321244768
13993001399742740768
14003001400716433768
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;