Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

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

ticket, page 367 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
915130091516918294932
915230091523443804935
915330091536585654935
915430091540584704936
915530091557102614936
915630091565150144937
915730091570304024937
915830091583969974937
915930091599873414937
916030091608219104938
916130091619019744938
916230091628488464940
916330091639914304941
916430091647183274942
916530091658331584942
916630091668621304943
916730091671429584943
916830091683147564946
916930091699931714946
917030091706923384948
917130091719913584950
917230091723275404951
917330091730448154952
917430091740231314953
917530091759208994955
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;