   KEY `user` (`user`,`vote`),
   KEY `user_2` (`user`,`vote`,`logo`),
   KEY `logo` (`logo`),
-  CONSTRAINT `logos_votes_ibfk_2` FOREIGN KEY (`logo`) REFERENCES `logos` (`id`),
-  CONSTRAINT `logos_votes_ibfk_1` FOREIGN KEY (`user`) REFERENCES `users` (`id`)
+  CONSTRAINT `logos_votes_ibfk_1` FOREIGN KEY (`user`) REFERENCES `users` (`id`),
+  CONSTRAINT `logos_votes_ibfk_2` FOREIGN KEY (`logo`) REFERENCES `logos` (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='logos ratings given by users';
 /*!40101 SET character_set_client = @saved_cs_client */;
 

  `closed` date DEFAULT NULL,
  `phonenumber` varchar(255) NOT NULL,
  `telnetip` varchar(255) NOT NULL,
  `added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `adder` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `adder` (`adder`),
  CONSTRAINT `boards_ibfk_1` FOREIGN KEY (`adder`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 PACK_KEYS=1;
/*!40101 SET character_set_client = @saved_cs_client */;


  PRIMARY KEY (`id`),
  KEY `prod` (`prod`),
  KEY `partyyear` (`party`,`party_year`),
  CONSTRAINT `prodotherparty_ibfk_1` FOREIGN KEY (`prod`) REFERENCES `prods` (`id`),
  CONSTRAINT `prodotherparty_ibfk_2` FOREIGN KEY (`party`) REFERENCES `parties` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 PACK_KEYS=1;
/*!40101 SET character_set_client = @saved_cs_client */;

