-- MySQL dump 10.13 Distrib 5.5.38, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: psychovis -- ------------------------------------------------------ -- Server version 5.5.38-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `admins` -- DROP TABLE IF EXISTS `admins`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `admins` ( `adminname` varchar(20) NOT NULL, `password` varchar(40) NOT NULL, PRIMARY KEY (`adminname`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `admins` -- LOCK TABLES `admins` WRITE; /*!40000 ALTER TABLE `admins` DISABLE KEYS */; INSERT INTO `admins` VALUES ('captain','c83a8fb7de2391243ec5e588c708364563f89c2e'); /*!40000 ALTER TABLE `admins` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `inputs` -- DROP TABLE IF EXISTS `inputs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `inputs` ( `P_ID` int(10) unsigned NOT NULL, `S_ID` int(10) unsigned NOT NULL, `setID` int(10) unsigned NOT NULL, `input_position` tinyint(4) NOT NULL, PRIMARY KEY (`P_ID`,`S_ID`,`setID`,`input_position`), KEY `S_ID` (`S_ID`), KEY `setID` (`setID`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `inputs` -- LOCK TABLES `inputs` WRITE; /*!40000 ALTER TABLE `inputs` DISABLE KEYS */; INSERT INTO `inputs` VALUES (9,1,2,2),(9,2,2,1),(10,1,2,2),(10,3,2,1),(11,1,2,2),(11,4,2,1); /*!40000 ALTER TABLE `inputs` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `instances` -- DROP TABLE IF EXISTS `instances`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `instances` ( `I_ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `Q_ID` int(10) NOT NULL, `P_ID` int(10) NOT NULL, `position` tinyint(4) NOT NULL, PRIMARY KEY (`I_ID`), UNIQUE KEY `Q_ID` (`Q_ID`,`P_ID`,`position`), KEY `P_ID` (`P_ID`) ) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `instances` -- LOCK TABLES `instances` WRITE; /*!40000 ALTER TABLE `instances` DISABLE KEYS */; INSERT INTO `instances` VALUES (20,6,11,0),(19,4,11,0),(18,6,10,0),(17,4,10,0),(16,6,9,0),(15,4,9,0); /*!40000 ALTER TABLE `instances` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `pages` -- DROP TABLE IF EXISTS `pages`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `pages` ( `P_ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `serial_nr` smallint(5) NOT NULL, `surveyname` varchar(20) NOT NULL, `pagetype` tinyint(4) NOT NULL, PRIMARY KEY (`P_ID`), KEY `surveyname` (`surveyname`) ) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `pages` -- LOCK TABLES `pages` WRITE; /*!40000 ALTER TABLE `pages` DISABLE KEYS */; INSERT INTO `pages` VALUES (11,1,'TEST',0),(10,0,'TEST',0),(9,2,'TEST',0); /*!40000 ALTER TABLE `pages` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `questions` -- DROP TABLE IF EXISTS `questions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `questions` ( `Q_ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `question` varchar(200) NOT NULL, `left_text` varchar(40) NOT NULL, `right_text` varchar(40) NOT NULL, `left_score` tinyint(4) NOT NULL, `right_score` tinyint(4) NOT NULL, `type` tinyint(4) NOT NULL, PRIMARY KEY (`Q_ID`), UNIQUE KEY `question` (`question`,`left_text`,`right_text`,`left_score`,`right_score`,`type`) ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `questions` -- LOCK TABLES `questions` WRITE; /*!40000 ALTER TABLE `questions` DISABLE KEYS */; INSERT INTO `questions` VALUES (4,'How similar are the two images?','Completely different','Exactly the same',0,10,2),(6,'Which image do you prefer?','Left','Right',-1,1,2); /*!40000 ALTER TABLE `questions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `sets` -- DROP TABLE IF EXISTS `sets`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `sets` ( `setID` int(10) unsigned NOT NULL AUTO_INCREMENT, `setname` varchar(40) NOT NULL, `adminname` varchar(20) NOT NULL, PRIMARY KEY (`setID`), UNIQUE KEY `setname` (`setname`), KEY `adminname` (`adminname`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `sets` -- LOCK TABLES `sets` WRITE; /*!40000 ALTER TABLE `sets` DISABLE KEYS */; INSERT INTO `sets` VALUES (2,'test1','captain'); /*!40000 ALTER TABLE `sets` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `setstimuli` -- DROP TABLE IF EXISTS `setstimuli`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `setstimuli` ( `setID` int(10) unsigned NOT NULL, `S_ID` int(10) unsigned NOT NULL, PRIMARY KEY (`setID`,`S_ID`), KEY `S_ID` (`S_ID`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `setstimuli` -- LOCK TABLES `setstimuli` WRITE; /*!40000 ALTER TABLE `setstimuli` DISABLE KEYS */; INSERT INTO `setstimuli` VALUES (2,1),(2,2),(2,3),(2,4); /*!40000 ALTER TABLE `setstimuli` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `stimuli` -- DROP TABLE IF EXISTS `stimuli`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `stimuli` ( `S_ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `path` varchar(100) NOT NULL, PRIMARY KEY (`S_ID`), UNIQUE KEY `path` (`path`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `stimuli` -- LOCK TABLES `stimuli` WRITE; /*!40000 ALTER TABLE `stimuli` DISABLE KEYS */; INSERT INTO `stimuli` VALUES (1,'http://telin.ugent.be/~akumcu/gv_test/1.png'),(2,'http://telin.ugent.be/~akumcu/gv_test/2.png'),(3,'http://telin.ugent.be/~akumcu/gv_test/3.png'),(4,'http://telin.ugent.be/~akumcu/gv_test/4.png'); /*!40000 ALTER TABLE `stimuli` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `surveys` -- DROP TABLE IF EXISTS `surveys`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `surveys` ( `surveyname` varchar(20) NOT NULL, `adminname` varchar(20) NOT NULL, `lock` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`surveyname`), KEY `adminname` (`adminname`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `surveys` -- LOCK TABLES `surveys` WRITE; /*!40000 ALTER TABLE `surveys` DISABLE KEYS */; INSERT INTO `surveys` VALUES ('TEST','captain',1); /*!40000 ALTER TABLE `surveys` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `users` ( `username` varchar(20) NOT NULL, PRIMARY KEY (`username`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `users` -- LOCK TABLES `users` WRITE; /*!40000 ALTER TABLE `users` DISABLE KEYS */; INSERT INTO `users` VALUES ('asli'),('asli2'),('lp'); /*!40000 ALTER TABLE `users` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `votes` -- DROP TABLE IF EXISTS `votes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `votes` ( `I_ID` int(10) unsigned NOT NULL, `username` varchar(20) NOT NULL, `score` tinyint(4) NOT NULL, PRIMARY KEY (`I_ID`,`username`), KEY `username` (`username`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `votes` -- LOCK TABLES `votes` WRITE; /*!40000 ALTER TABLE `votes` DISABLE KEYS */; INSERT INTO `votes` VALUES (18,'asli',-1),(17,'asli',10),(20,'asli',1),(19,'asli',0),(16,'asli',-1),(15,'asli',5); /*!40000 ALTER TABLE `votes` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2015-04-10 10:00:22