survey_seahorse

Software Engineering Project - Fall 2018
Log | Files | Refs | README

seahorse.sql (6496B)


      1 -- MySQL dump 10.13  Distrib 5.6.42, for FreeBSD11.2 (amd64)
      2 --
      3 -- Host: localhost    Database: seahorse
      4 -- ------------------------------------------------------
      5 -- Server version	5.6.42
      6 
      7 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
      8 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
      9 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
     10 /*!40101 SET NAMES utf8 */;
     11 /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
     12 /*!40103 SET TIME_ZONE='+00:00' */;
     13 /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
     14 /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
     15 /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
     16 /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
     17 
     18 --
     19 -- Table structure for table `answer_numeric`
     20 --
     21 
     22 DROP TABLE IF EXISTS `answer_numeric`;
     23 /*!40101 SET @saved_cs_client     = @@character_set_client */;
     24 /*!40101 SET character_set_client = utf8 */;
     25 CREATE TABLE `answer_numeric` (
     26   `answer_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
     27   `user_id` smallint(5) unsigned NOT NULL,
     28   `survey_id` smallint(5) unsigned NOT NULL,
     29   `question_number` tinyint(3) unsigned NOT NULL,
     30   `answer` tinyint(4) NOT NULL,
     31   PRIMARY KEY (`answer_id`)
     32 ) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=latin1;
     33 /*!40101 SET character_set_client = @saved_cs_client */;
     34 
     35 --
     36 -- Dumping data for table `answer_numeric`
     37 --
     38 
     39 LOCK TABLES `answer_numeric` WRITE;
     40 /*!40000 ALTER TABLE `answer_numeric` DISABLE KEYS */;
     41 INSERT INTO `answer_numeric` VALUES (1,5,1,1,7),(2,5,1,2,4),(3,5,1,3,10),(4,6,2,1,3),(5,6,2,2,8),(6,6,2,3,6),(7,5,3,1,5),(8,5,3,2,5),(9,5,3,3,5),(10,5,3,4,5),(11,5,3,5,5),(12,6,4,1,5),(13,6,4,2,9),(14,6,4,3,1),(15,6,4,4,10),(16,6,4,5,3),(17,7,1,1,10),(18,7,1,2,3),(19,7,1,3,8),(20,8,4,1,4),(21,8,4,2,10),(22,8,4,3,5),(23,8,4,4,8),(24,8,4,5,2),(25,6,1,1,10),(26,6,1,2,7),(27,6,1,3,6);
     42 /*!40000 ALTER TABLE `answer_numeric` ENABLE KEYS */;
     43 UNLOCK TABLES;
     44 
     45 --
     46 -- Table structure for table `question`
     47 --
     48 
     49 DROP TABLE IF EXISTS `question`;
     50 /*!40101 SET @saved_cs_client     = @@character_set_client */;
     51 /*!40101 SET character_set_client = utf8 */;
     52 CREATE TABLE `question` (
     53   `question_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
     54   `survey_id` smallint(5) unsigned NOT NULL,
     55   `question_number` tinyint(3) unsigned NOT NULL,
     56   `question_content` varchar(100) NOT NULL,
     57   PRIMARY KEY (`question_id`)
     58 ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
     59 /*!40101 SET character_set_client = @saved_cs_client */;
     60 
     61 --
     62 -- Dumping data for table `question`
     63 --
     64 
     65 LOCK TABLES `question` WRITE;
     66 /*!40000 ALTER TABLE `question` DISABLE KEYS */;
     67 INSERT INTO `question` VALUES (1,1,1,'How good is Wawa coffee?'),(2,1,2,'How good are Wawa hoagies?'),(3,1,3,'Overall, how highly do you rate Wawa?'),(4,2,1,'How much you like making surveys?'),(5,2,2,'How would you rate this website?'),(6,2,3,'How much do you like taking surveys?'),(7,4,1,'a'),(8,4,2,''),(9,4,3,''),(10,4,4,''),(11,4,5,'');
     68 /*!40000 ALTER TABLE `question` ENABLE KEYS */;
     69 UNLOCK TABLES;
     70 
     71 --
     72 -- Table structure for table `survey`
     73 --
     74 
     75 DROP TABLE IF EXISTS `survey`;
     76 /*!40101 SET @saved_cs_client     = @@character_set_client */;
     77 /*!40101 SET character_set_client = utf8 */;
     78 CREATE TABLE `survey` (
     79   `survey_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
     80   `user_id` smallint(5) unsigned NOT NULL,
     81   `access_code` varchar(50) NOT NULL,
     82   `title` varchar(30) NOT NULL,
     83   `author` varchar(20) NOT NULL,
     84   `description` varchar(100) DEFAULT NULL,
     85   `type` bit(2) NOT NULL,
     86   `number_questions` tinyint(3) unsigned NOT NULL,
     87   `creation_date` date NOT NULL,
     88   `expiration_date` date NOT NULL,
     89   `one_shot` bit(1) NOT NULL DEFAULT b'0',
     90   PRIMARY KEY (`survey_id`)
     91 ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
     92 /*!40101 SET character_set_client = @saved_cs_client */;
     93 
     94 --
     95 -- Dumping data for table `survey`
     96 --
     97 
     98 LOCK TABLES `survey` WRITE;
     99 /*!40000 ALTER TABLE `survey` DISABLE KEYS */;
    100 INSERT INTO `survey` VALUES (1,5,'rotten swordfish','Wawa Survey','admin','See how much you like wawa','\0',3,'2018-12-10','2018-12-11','\0'),(2,5,'ruthless seahorse','Survey Survey','admin','See how much you like surveys','\0',3,'2018-12-10','2018-12-10','\0'),(3,6,'glamorous eel','A new survey','dliotta96','Are surveys fun?','\0',5,'2018-12-10','1970-01-01',''),(4,6,'plucky narwhal','New Survey','dliotta96','a new one','\0',5,'2018-12-10','1970-01-01','\0');
    101 /*!40000 ALTER TABLE `survey` ENABLE KEYS */;
    102 UNLOCK TABLES;
    103 
    104 --
    105 -- Table structure for table `user`
    106 --
    107 
    108 DROP TABLE IF EXISTS `user`;
    109 /*!40101 SET @saved_cs_client     = @@character_set_client */;
    110 /*!40101 SET character_set_client = utf8 */;
    111 CREATE TABLE `user` (
    112   `user_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
    113   `email` varchar(50) NOT NULL,
    114   `username` varchar(20) NOT NULL,
    115   `password` varchar(256) DEFAULT NULL,
    116   `admin` bit(1) NOT NULL DEFAULT b'0',
    117   `blocked` bit(2) NOT NULL DEFAULT b'0',
    118   `registration_date` datetime NOT NULL,
    119   `active` bit(1) NOT NULL DEFAULT b'0',
    120   PRIMARY KEY (`user_id`)
    121 ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
    122 /*!40101 SET character_set_client = @saved_cs_client */;
    123 
    124 --
    125 -- Dumping data for table `user`
    126 --
    127 
    128 LOCK TABLES `user` WRITE;
    129 /*!40000 ALTER TABLE `user` DISABLE KEYS */;
    130 INSERT INTO `user` VALUES (1,'kubachj9@students.rowan.edu','jkubach','password','','\0','2018-12-07 20:00:00','\0'),(5,'johnkubach@gmail.com','admin','$2y$10$thb4I3XONTHYuSKSieqbI.ebNUmghcO8eJFYSoUd8KpDCdi/96xWy','\0','\0','2018-12-08 22:02:50','\0'),(6,'dliotta96@gmail.com','dliotta96','$2y$10$bHGT2rsyqlxoFHnWXbRoo.qkKXJdgliJA.3r0.Q.PG08s6S4W7XKC','\0','\0','2018-12-10 03:33:23','\0'),(7,'thejackdonahue@gmail.com','jdonahue','$2y$10$xZouIBD8/aYQ.TiQIwoh8.qNV3EhwfMU2GBmHto7TNrtwI0TCwmIW','\0','\0','2018-12-10 17:43:35','\0'),(8,'andreww107@gmail.com','Weatherbae','$2y$10$6l6hPaJZPseZgcXr/2SbKeera4wKwrkTjmQs7p4ePZntKXa4V935W','\0','\0','2018-12-10 17:53:10','\0');
    131 /*!40000 ALTER TABLE `user` ENABLE KEYS */;
    132 UNLOCK TABLES;
    133 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
    134 
    135 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
    136 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
    137 /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
    138 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
    139 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
    140 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
    141 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
    142 
    143 -- Dump completed on 2018-12-10 20:32:54