Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 287 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
715130071516100713890
715230071522061043890
715330071539286973890
715430071542698923891
715530071552647423891
715630071568829203891
715730071576582463891
715830071588231573892
715930071590121863892
716030071603706023892
716130071615996943892
716230071629364943892
716330071634979663893
716430071645110213893
716530071656908243893
716630071665746423893
716730071676986433894
716830071684821703894
716930071691427803895
717030071704388143895
717130071710556453896
717230071724581303897
717330071732667813897
717430071740106303897
717530071754843373897
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;