Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 9,551–9,575 of 9,842

ticket, page 383 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
955130095514018345175
955230095522180195177
955330095537255225177
955430095545949485179
955530095552844745179
955630095563319855180
955730095573875075180
955830095583225595181
955930095598598635183
956030095601121845186
956130095610520765186
956230095624577985186
956330095638307275186
956430095642866405188
956530095652128575189
956630095661206655189
956730095673197055190
956830095687209525191
956930095695971395192
957030095704883695192
957130095718913225193
957230095728435365195
957330095732444975195
957430095741348425196
957530095754716765196
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;