Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 4,926–4,950 of 9,842

ticket, page 198 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
492630049268548242747
492730049271361682747
492830049280758952749
492930049294655812750
493030049302136802750
493130049319359502750
493230049322819402750
493330049331212172755
493430049347878192755
493530049353389472756
493630049368435452757
493730049377593732757
493830049381198782757
493930049399092262757
494030049403050412760
494130049417014442760
494230049429840862761
494330049431748872761
494430049444838362762
494530049453114612762
494630049469859812762
494730049477659222764
494830049483493902765
494930049497830002766
495030049509151952766
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;