Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 9,376–9,400 of 9,842

ticket, page 376 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
937630093769673755042
937730093776834815043
937830093782627275044
937930093798603575045
938030093801230415045
938130093810372995048
938230093828597975049
938330093833115865050
938430093847936045051
938530093858874695053
938630093861536985053
938730093872082825053
938830093887105975054
938930093898869485054
939030093909372895054
939130093912577975054
939230093921522975054
939330093938132075058
939430093947584835058
939530093954698495059
939630093965047255060
939730093975913955061
939830093982287435061
939930093995536705062
940030094002224155062
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;