Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 2,101–2,125 of 9,842

ticket, page 85 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
210130021013314991167
210230021020652401167
210330021036914271167
210430021040281131167
210530021052168661168
210630021061909931168
210730021078345431168
210830021085876751169
210930021093345921169
211030021106272901169
211130021114378151170
211230021124305281170
211330021136638611171
211430021140388681171
211530021154640671171
211630021160868391171
211730021174421621172
211830021181777411172
211930021194174531173
212030021206908061174
212130021214790521174
212230021220201991178
212330021237332831178
212430021246490441179
212530021255729141179
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;