Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 7,276–7,300 of 9,842

ticket, page 292 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
727630072768166143974
727730072776696283975
727830072787981703975
727930072795075653977
728030072801063443978
728130072810029713978
728230072829735383981
728330072834993473983
728430072842265783984
728530072853805303987
728630072863508853987
728730072874731753988
728830072886526043988
728930072895952333990
729030072907090973992
729130072912593973992
729230072921795593993
729330072935580403993
729430072941984973993
729530072952642873993
729630072964472693993
729730072972681243993
729830072988409953993
729930072992909853993
730030073004007843993
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;