Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 6,051–6,075 of 9,842

ticket, page 243 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
605130060518923333341
605230060528854203342
605330060539376583342
605430060540519053343
605530060552818583343
605630060565463133344
605730060575053033344
605830060586647533344
605930060594948743344
606030060602875183346
606130060616519263346
606230060624433503348
606330060638279983348
606430060644252073349
606530060651989193349
606630060668155433350
606730060677442253350
606830060686087583351
606930060698607663351
607030060701559903352
607130060717937063353
607230060728544373354
607330060737236513357
607430060741220693357
607530060752641453358
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;