Commit 38419380 authored by Sorrel Harriet's avatar Sorrel Harriet

removing dump

parent b49d5e98
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
--
-- Host: localhost Database: hangman
-- ------------------------------------------------------
-- Server version 5.7.21-0ubuntu0.16.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 */;
--
-- Current Database: `hangman`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `hangman` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `hangman`;
--
-- Table structure for table `Game`
--
DROP TABLE IF EXISTS `Game`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Game` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`won` tinyint(1) NOT NULL DEFAULT '0',
`whenPlayed` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`guessed_word` varchar(25) DEFAULT NULL,
`player_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `guessed_word` (`guessed_word`),
KEY `player_id` (`player_id`),
CONSTRAINT `Game_ibfk_1` FOREIGN KEY (`guessed_word`) REFERENCES `Word` (`letters`) ON UPDATE CASCADE,
CONSTRAINT `Game_ibfk_2` FOREIGN KEY (`player_id`) REFERENCES `Player` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Game`
--
LOCK TABLES `Game` WRITE;
/*!40000 ALTER TABLE `Game` DISABLE KEYS */;
INSERT INTO `Game` VALUES (1,1,'2017-06-07 21:10:26','DUVET',1),(2,1,'2017-06-07 21:10:26','DUVET',2),(3,1,'2017-06-07 21:10:26','TORTOISE',2),(4,0,'2017-06-07 21:10:26','SAUSAGE',1),(5,1,'2017-06-08 12:42:27',NULL,1),(6,1,'2017-06-08 12:47:55','REGGAE',1),(7,0,'2017-06-08 12:48:37','SAUSAGE',1),(8,0,'2017-06-08 12:51:48','SAUSAGE',1),(9,0,'2017-06-08 12:52:19','SAUSAGE',1),(10,0,'2017-06-08 12:52:39','SAUSAGE',1),(11,1,'2017-06-08 12:55:29','REGGAE',1);
/*!40000 ALTER TABLE `Game` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `Player`
--
DROP TABLE IF EXISTS `Player`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Player` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(12) NOT NULL,
`password` varchar(64) NOT NULL,
`forename` varchar(25) NOT NULL,
`surname` varchar(25) NOT NULL,
`email` varchar(50) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`),
UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Player`
--
LOCK TABLES `Player` WRITE;
/*!40000 ALTER TABLE `Player` DISABLE KEYS */;
INSERT INTO `Player` VALUES (1,'wally','password','Will','Wallis','willy@wally.com'),(2,'salmonface','password','Sally','Thomsom','st@google.com');
/*!40000 ALTER TABLE `Player` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `Word`
--
DROP TABLE IF EXISTS `Word`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Word` (
`letters` varchar(25) NOT NULL,
`hint` varchar(100) DEFAULT NULL,
PRIMARY KEY (`letters`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Word`
--
LOCK TABLES `Word` WRITE;
/*!40000 ALTER TABLE `Word` DISABLE KEYS */;
INSERT INTO `Word` VALUES ('DUVET','A soft quilt'),('ELECTION','Event where a person is chosen for a political office'),('REGGAE','Style of music'),('SAUSAGE','Food item usually made from pork'),('TORTOISE','A type of reptile');
/*!40000 ALTER TABLE `Word` 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 2018-04-20 11:23:17
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment