Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,901–5,925 of 9,842

ticket, page 237 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
590130059018311393296
590230059029715383296
590330059030471003296
590430059046171913296
590530059052157343296
590630059060090203296
590730059077186743296
590830059081910403296
590930059096690903296
591030059108578473296
591130059110321213296
591230059126780793296
591330059133616523296
591430059148613093296
591530059152301123296
591630059160814353296
591730059178222193296
591830059184593413296
591930059197229933296
592030059208750453296
592130059216390343296
592230059229540653296
592330059234661723296
592430059248277703296
592530059259728823296
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;