Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,526–3,550 of 9,842

ticket, page 142 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
352630035267088661924
352730035276064171924
352830035281233161924
352930035293073341925
353030035303913951925
353130035317408021928
353230035326332291930
353330035339469661931
353430035343619241931
353530035353484361933
353630035360557741934
353730035375698301936
353830035386816791936
353930035396332361938
354030035407932801938
354130035416047441938
354230035422277091938
354330035435100131941
354430035446099691941
354530035456256481942
354630035461597131942
354730035474440581945
354830035487089741945
354930035494173501945
355030035507621251945
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;