Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 2,826–2,850 of 9,842

ticket, page 114 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
282630028267893501600
282730028275052971601
282830028280523971603
282930028292342851603
283030028300580341604
283130028314598101605
283230028323369351605
283330028334332861606
283430028341202261606
283530028354576211606
283630028363401551608
283730028373330741608
283830028387533911608
283930028392686781608
284030028400970711610
284130028414637511611
284230028426045451611
284330028438003121611
284430028446490091611
284530028453568571611
284630028464922501614
284730028479633421614
284830028481848001615
284930028494877691615
285030028507791311615
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;