Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 1,801–1,825 of 9,842

ticket, page 73 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
180130018012045401002
180230018026772441004
180330018034643061004
180430018046659191004
180530018059518571004
180630018060906891004
180730018073754611005
180830018083692331006
180930018095732971007
181030018109360221007
181130018112495581007
181230018126603761008
181330018130320201008
181430018140734281008
181530018154504571008
181630018164751021011
181730018172743001011
181830018180732621011
181930018193702031011
182030018202945321012
182130018214582361012
182230018220666741012
182330018238417651013
182430018242044851013
182530018252289631014
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;