Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 3,301–3,325 of 9,842

ticket, page 133 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
330130033013271201797
330230033028370581798
330330033038425381799
330430033045400401799
330530033052988471799
330630033064312911799
330730033074415391799
330830033086560811804
330930033090616001804
331030033105659511804
331130033114096051805
331230033123153261806
331330033134638821806
331430033147348941810
331530033150754081811
331630033162725691811
331730033174898781812
331830033183860171812
331930033195563841813
332030033207567611815
332130033218874511815
332230033221923971818
332330033233965111820
332430033249807611820
332530033251695661822
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;