Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 272 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
677630067768243953718
677730067776362423720
677830067787944243720
677930067792190713721
678030067800349953721
678130067819086833722
678230067827103483722
678330067831544483724
678430067848124183726
678530067859730173726
678630067867553163726
678730067876429533726
678830067888678773728
678930067892860153728
679030067906238953730
679130067919452073730
679230067921801843730
679330067931360213730
679430067943805173730
679530067957272763730
679630067969755013730
679730067974978493730
679830067984933613730
679930067995224553730
680030068007401253730
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;