Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 7,801–7,825 of 9,842

ticket, page 313 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
780130078017191744193
780230078026758394193
780330078034753994196
780430078047447144198
780530078054930644199
780630078060070214199
780730078079149584201
780830078084060944201
780930078094525684203
781030078107700804203
781130078118054084207
781230078125749754209
781330078133388184209
781430078148103954211
781530078159627294212
781630078167971174212
781730078171804224212
781830078189846594212
781930078199898564214
782030078209338184215
782130078214974864217
782230078222830154217
782330078239203674217
782430078243827044217
782530078257015464219
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;