Skip to content
Louvre Ops DB

Table

ticket

Each admission ticket and its unique barcode.

Replaces in 2020: Ticket

Rows 8,726–8,750 of 9,842

ticket, page 350 of 394
ticket_idINTEGERbarcodeTEXTorder_id→ purchase_order.order_id
872630087260475824745
872730087270889114746
872830087281493654746
872930087297024084747
873030087302274654747
873130087318163294748
873230087323974374748
873330087337012974749
873430087345686054749
873530087358340464749
873630087360701494750
873730087372274074754
873830087385980664754
873930087393983144755
874030087403190224755
874130087414871864758
874230087421789824758
874330087435423644758
874430087443199784758
874530087457218114761
874630087468266504761
874730087476260324763
874830087484360984763
874930087491242894763
875030087509294504763
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;