Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 5,151–5,175 of 9,842

ticket, page 207 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
515130051510744292843
515230051526084772843
515330051537766132843
515430051549169402843
515530051552335572843
515630051561415362843
515730051575097082843
515830051581251352843
515930051596568332843
516030051607992032843
516130051610004052843
516230051623604252843
516330051634464582843
516430051649473152843
516530051655234282843
516630051668064042843
516730051672993082843
516830051680325982843
516930051694608182843
517030051708212812843
517130051716222092843
517230051722842972843
517330051733685742843
517430051749923712843
517530051758743172843
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;