Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 1,876–1,900 of 9,842

ticket, page 76 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
187630018768444321044
187730018777361101044
187830018780213761045
187930018791654201045
188030018806458531046
188130018813881511046
188230018828349611049
188330018833526281049
188430018842279091049
188530018853734851049
188630018863710991051
188730018873258571052
188830018886652821053
188930018897825791053
189030018901210681053
189130018917360291053
189230018923219961055
189330018938147071055
189430018944453521055
189530018956537101055
189630018969530261055
189730018972871511055
189830018988301671055
189930018992779941055
190030019003761781055
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;