Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 2,776–2,800 of 9,842

ticket, page 112 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
277630027765934121558
277730027770898431559
277830027786871231559
277930027795520671560
278030027802879341561
278130027815514641561
278230027828616291564
278330027836216561565
278430027849103471565
278530027854908621566
278630027869661661567
278730027870637091568
278830027885091951568
278930027899074101569
279030027908538911570
279130027914417481570
279230027927312571570
279330027938726641571
279430027946029601571
279530027957838831572
279630027964277381572
279730027974157541572
279830027985361411573
279930027992041821573
280030028004368521573
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;