Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,751–8,775 of 9,842

ticket, page 351 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
875130087516256614763
875230087524640914764
875330087537037004764
875430087548146524765
875530087553978634765
875630087561104914765
875730087575711094766
875830087580297814767
875930087591654814768
876030087605526274769
876130087614629874771
876230087623233094772
876330087631722414772
876430087649932104772
876530087650804204772
876630087660825544772
876730087676970344773
876830087685045924773
876930087699692854774
877030087707269374775
877130087718199754775
877230087726189764775
877330087739393044775
877430087746621024776
877530087750494864776
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;