Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,576–6,600 of 9,842

ticket, page 264 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
657630065765202913627
657730065772773913627
657830065784431833627
657930065791707113627
658030065801162173628
658130065816559713628
658230065827798723628
658330065830499763629
658430065847345923629
658530065850653383630
658630065860707903630
658730065871253623631
658830065889191653632
658930065893591273632
659030065907720713632
659130065910664933632
659230065927845103632
659330065937476833633
659430065945197323633
659530065956740073633
659630065963171733633
659730065973602233633
659830065985040893635
659930065992696083635
660030066005360773635
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;