Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 2,126–2,150 of 9,842

ticket, page 86 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
212630021264206631181
212730021274121821181
212830021285624901183
212930021297492961183
213030021307085221183
213130021311557421184
213230021321141491184
213330021339012321185
213430021341622051185
213530021353549771186
213630021368661161187
213730021374355121188
213830021384254551188
213930021395382461189
214030021405107721194
214130021413523691194
214230021422472141194
214330021437692791197
214430021444444691198
214530021457088801200
214630021469810421202
214730021474341101202
214830021488704061202
214930021497584151202
215030021507212621202
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;