Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,351–3,375 of 9,842

ticket, page 135 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
335130033517150091836
335230033521820311836
335330033531541571836
335430033547353481836
335530033553163961836
335630033564077751836
335730033570495681836
335830033580918111836
335930033599057231836
336030033602954731836
336130033615074721836
336230033626499511836
336330033631129571836
336430033646036871836
336530033656571731836
336630033668042141836
336730033677994711836
336830033682324201836
336930033690954311836
337030033701035161836
337130033717823111836
337230033726220791836
337330033733522131836
337430033745597741836
337530033756222781836
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;