Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,776–4,800 of 9,842

ticket, page 192 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
477630047764225552624
477730047773155312624
477830047786447972624
477930047796865212624
478030047801020422625
478130047816335202626
478230047827308692627
478330047831007102627
478430047840870002627
478530047853054922628
478630047861012012628
478730047875125122630
478830047884895352630
478930047891037562630
479030047909930542631
479130047917011972631
479230047928658852631
479330047938131352631
479430047943533152632
479530047953526622633
479630047960491522633
479730047970283712634
479830047985018132634
479930047997536142635
480030048004254432636
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;