Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 1,326–1,350 of 9,842

ticket, page 54 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
13263001326557405725
13273001327152975725
13283001328895738728
13293001329990134728
13303001330559979728
13313001331977741730
13323001332744050731
13333001333869365731
13343001334403756731
13353001335473080731
13363001336453226732
13373001337946698732
13383001338705145732
13393001339822617734
13403001340862882734
13413001341062632736
13423001342052237736
13433001343343559736
13443001344333136737
13453001345717814739
13463001346791830741
13473001347504836741
13483001348191167741
13493001349703284741
13503001350323156742
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;