Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,026–4,050 of 9,842

ticket, page 162 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
402630040268664082236
402730040278198302236
402830040286629882236
402930040299993832239
403030040308566202239
403130040318054722241
403230040325565902241
403330040330490242242
403430040344242692242
403530040350771772243
403630040361024202243
403730040373791732243
403830040383878272243
403930040399242952243
404030040407759932247
404130040413088692248
404230040428751442249
404330040433057442249
404430040440286112250
404530040451852412250
404630040469745892250
404730040470067222251
404830040483080042252
404930040493385412255
405030040509975832255
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;