Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 126–150 of 9,842

ticket, page 6 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
126300012640000651
127300012767867651
128300012867784051
129300012903093051
130300013071105851
131300013160871851
132300013200658051
133300013304691851
134300013471394751
135300013515393351
136300013664918351
137300013738357951
138300013826591151
139300013968302251
140300014071488951
141300014161156451
142300014200517551
143300014371715251
144300014448820951
145300014526833851
146300014653201251
147300014713038551
148300014866613251
149300014947064551
150300015055839851
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;