Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,451–3,475 of 9,842

ticket, page 139 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
345130034515191201876
345230034523673531876
345330034532107121876
345430034546050231876
345530034550183391876
345630034562541631876
345730034577760971876
345830034585089141876
345930034594016791876
346030034601752431876
346130034611551571876
346230034626763671876
346330034631775941876
346430034645133281876
346530034651134781876
346630034668003111876
346730034672568481876
346830034681315381876
346930034696976921876
347030034705563281876
347130034717422091877
347230034721543081877
347330034738391991878
347430034748925211879
347530034753869441879
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;