Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 9,501–9,525 of 9,842

ticket, page 381 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
950130095015998655131
950230095028272305132
950330095030205785132
950430095045730645132
950530095052750755132
950630095063128585133
950730095073068735133
950830095089368165137
950930095091267085137
951030095106252885138
951130095110494725138
951230095126528175139
951330095139668585139
951430095148644775139
951530095159446475140
951630095166218585140
951730095172551285142
951830095184441135142
951930095197418475145
952030095208403275145
952130095212401785146
952230095221850465146
952330095236345815146
952430095249651795148
952530095259356325148
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;