2015-03-02 07:23:52 +00:00
|
|
|
|
-- MySQL dump 10.13 Distrib 5.5.41, for debian-linux-gnu (x86_64)
|
2014-09-16 07:27:27 +00:00
|
|
|
|
--
|
|
|
|
|
-- Host: localhost Database: hscd
|
|
|
|
|
-- ------------------------------------------------------
|
2015-03-02 07:23:52 +00:00
|
|
|
|
-- Server version 5.5.41-0ubuntu0.14.04.1
|
2014-09-16 07:27:27 +00:00
|
|
|
|
|
|
|
|
|
/*!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 */;
|
|
|
|
|
|
2015-03-02 07:23:52 +00:00
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `categories`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `categories`;
|
|
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
|
|
|
CREATE TABLE `categories` (
|
|
|
|
|
`description` varchar(200) NOT NULL,
|
2015-03-11 07:20:46 +00:00
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
2015-03-02 07:23:52 +00:00
|
|
|
|
PRIMARY KEY (`id`)
|
2015-03-11 07:20:46 +00:00
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
|
2015-03-02 07:23:52 +00:00
|
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `categories`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `categories` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `categories` DISABLE KEYS */;
|
2015-03-11 07:20:46 +00:00
|
|
|
|
INSERT INTO `categories` VALUES ('I prefer quiet places',1),('I enjoy Mexican Food',2),('I drive a car',3);
|
2015-03-02 07:23:52 +00:00
|
|
|
|
/*!40000 ALTER TABLE `categories` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2015-03-11 07:20:46 +00:00
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `history`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `history`;
|
|
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
|
|
|
CREATE TABLE `history` (
|
|
|
|
|
`date` datetime NOT NULL,
|
|
|
|
|
`reviewId` int(11) NOT NULL,
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
2015-03-26 04:32:19 +00:00
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
|
KEY `reviewId` (`reviewId`),
|
|
|
|
|
CONSTRAINT `history_ibfk_1` FOREIGN KEY (`reviewId`) REFERENCES `reviews` (`id`)
|
2015-03-11 07:20:46 +00:00
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `history`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `history` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `history` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `history` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `historyGroups`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `historyGroups`;
|
|
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
|
|
|
CREATE TABLE `historyGroups` (
|
|
|
|
|
`categoryId` int(11) NOT NULL,
|
|
|
|
|
`categoryValue` float NOT NULL,
|
2015-03-26 04:32:19 +00:00
|
|
|
|
`historyId` int(11) NOT NULL,
|
|
|
|
|
KEY `historyId` (`historyId`),
|
|
|
|
|
CONSTRAINT `historyGroups_ibfk_1` FOREIGN KEY (`historyId`) REFERENCES `history` (`id`)
|
2015-03-11 07:20:46 +00:00
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `historyGroups`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `historyGroups` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `historyGroups` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `historyGroups` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2014-09-16 07:27:27 +00:00
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `reviews`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `reviews`;
|
|
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
|
|
|
CREATE TABLE `reviews` (
|
|
|
|
|
`name` varchar(100) NOT NULL,
|
|
|
|
|
`url` varchar(200) NOT NULL,
|
2015-01-05 05:32:58 +00:00
|
|
|
|
`delicious` float NOT NULL,
|
|
|
|
|
`accomodating` float NOT NULL,
|
|
|
|
|
`affordable` float NOT NULL,
|
|
|
|
|
`atmospheric` float NOT NULL,
|
2014-11-17 06:16:05 +00:00
|
|
|
|
`latitude` float NOT NULL,
|
|
|
|
|
`longitude` float NOT NULL,
|
2015-01-05 06:55:09 +00:00
|
|
|
|
`distanceToStn` float NOT NULL,
|
|
|
|
|
`closestStn` varchar(100) NOT NULL,
|
2015-03-17 09:41:52 +00:00
|
|
|
|
`accessCount` int(11) NOT NULL,
|
2014-10-17 08:59:26 +00:00
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
PRIMARY KEY (`id`)
|
2015-01-05 07:10:23 +00:00
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=1106 DEFAULT CHARSET=utf8;
|
2014-09-16 07:27:27 +00:00
|
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `reviews`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `reviews` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `reviews` DISABLE KEYS */;
|
2015-03-17 09:41:52 +00:00
|
|
|
|
INSERT INTO `reviews` VALUES ('Ginza Tenichi Yokohama Takashimaya','/Restaurant_Review-g298173-d3826561-Reviews-Ginza_Tenichi_Yokohama_Takashimaya-Yokohama_Kanagawa_Prefecture_Kanto.html',1,0.78022,0.78022,0.78022,35.4658,139.621,197,'Yokohama',0,1),('Katsuretsu An','/Restaurant_Review-g298173-d1115516-Reviews-Katsuretsu_An-Yokohama_Kanagawa_Prefecture_Kanto.html',0.78022,0.582418,0.384615,0.582418,35.4478,139.634,450,'Sakuragichō',0,2),('Jukeihanten Shinkan1F','/Restaurant_Review-g298173-d1667055-Reviews-Jukeihanten_Shinkan1F-Yokohama_Kanagawa_Prefecture_Kanto.html',0.582418,0.582418,0.384615,0.582418,35.4424,139.646,544,'Ishikawachō',0,3),('Hungry Tiger','/Restaurant_Review-g298173-d1704096-Reviews-Hungry_Tiger-Yokohama_Kanagawa_Prefecture_Kanto.html',0.78022,0.582418,0.384615,0.384615,35.4649,139.619,339,'Yokohama',0,4),('salone2007','/Restaurant_Review-g298173-d1702367-Reviews-Salone2007-Yokohama_Kanagawa_Prefecture_Kanto.html',0.78022,0.78022,0.582418,0.78022,35.4424,139.646,544,'Ishikawachō',0,5),('Kua `Aina','/Restaurant_Review-g298173-d1700856-Reviews-Kua_Aina-Yokohama_Kanagawa_Prefecture_Kanto.html',0.582418,0.384615,0.384615,0.384615,35.4521,139.64,833,'Sakuragichō',0,6),('Azamino Ukai-tei','/Restaurant_Review-g298173-d2041594-Reviews-Azamino_Ukai_tei-Yokohama_Kanagawa_Prefecture_Kanto.html',0.78022,0.78022,0.582418,0.78022,35.5652,139.552,5699,'Nakayama',0,7),('Charcoal Grill Green','/Restaurant_Review-g298173-d3223903-Reviews-Charcoal_Grill_Green-Yokohama_Kanagawa_Prefecture_Kanto.html',0.78022,0.582418,0.582418,0.78022,35.4388,139.645,137,'Ishikawachō',0,8),('Konaya Landmark Plaza','/Restaurant_Review-g298173-d3760516-Reviews-Konaya_Landmark_Plaza-Yokohama_Kanagawa_Prefecture_Kanto.html',0.78022,0.582418,0.186813,0.582418,35.4552,139.631,479,'Sakuragichō',0,9),('Mawashisushi Yokohama Sky','/Restaurant_Review-g298173-d3761051-Reviews-Mawashisushi_Yokohama_Sky-Yokohama_Kanagawa_Prefecture_Kanto.html',0.78022,0.582418,0.78022,0.582418,35.4647,139.625,233,'Yokohama',0,10),('Shatenki Honten','/Restaurant_Review-g298173-d1700860-Reviews-Shatenki_Honten-Yokohama_Kanagawa_Prefecture_Kanto.html',0.78022,0.186813,0.384615,0.186813,35.4424,139.646,544,'Ishikawachō',0,11),('Arupenjiro','/Restaurant_Review-g298173-d1700812-Reviews-Arupenjiro-Yokohama_Kanagawa_Prefecture_Kanto.html',0.78022,0.582418,0.582418,0.78022,35.4406,139.631,639,'Kannai',0,12),('Sirius','/Restaurant_Review-g298173-d1239450-Reviews-Sirius-Yokohama_Kanagawa_Prefecture_Kanto.html',0.582418,0.384615,0.384615,0.78022,35.4546,139.631,408,'Sakuragichō',0,13),('Leonard\'s at World Porters','/Restaurant_Review-g298173-d1832798-Reviews-Leonard_s_at_World_Porters-Yokohama_Kanagawa_Prefecture_Kanto.html',0.582418,0.384615,0.186813,0.384615,35.4521,139.64,833,'Sakuragichō',0,14),('Manchinrotenshinpo','/Restaurant_Review-g298173-d1676717-Reviews-Manchinrotenshinpo-Yokohama_Kanagawa_Prefecture_Kanto.html',0.78022,0.582418,0.384615,0.78022,35.4424,139.646,544,'Ishikawachō',0,15),('Yoshimuraya','/Restaurant_Review-g298173-d1406479-Reviews-Yoshimuraya-Yokohama_Kanagawa_Prefecture_Kanto.html',0.582418,0.384615,0.582418,0.384615,35.464,139.618,512,'Yokohama',0,16),('Tonkatsu Wako Yakohama Porta','/Restaurant_Review-g298173-d3801809-Reviews-Tonkatsu_Wako_Yakohama_Porta-Yokohama_Kanagawa_Prefecture_Kanto.html',0.78022,0.582418,0.78022,0.582418,35.4634,139.62,403,'Yokohama',0,17),('Karyu','/Restaurant_Review-g298173-d1659780-Reviews-Karyu-Yokohama_Kanagawa_Prefecture_Kanto.html',0.78022,0.582418,0.384615,1,35.4576,139.637,941,'Sakuragichō',0,18),('Iseryorishima','/Restaurant_Review-g298173-d1680143-Reviews-Iseryorishima-Yokohama_Kanagawa_Prefecture_Kanto.html',0.78022,0.384615,0.78022,0.582418,35.4664,139.617,505,'Yokohama',0,19),('Ocho','/Restaurant_Review-g298173-d3787819-Reviews-Ocho-Yokohama_Kanagawa_Prefecture_Kanto.html',1,1,1,0.582418,35.4488,139.661,1979,'Ishikawachō',0,20),('Cafe Tosca','/Restaurant_Review-g298173-d1700676-Reviews-Cafe_Tosca-Yokohama_Kanagawa_Prefecture_Kanto.html',0.582418,0.582418,0.384615,0.582418,35.4574,139.626,866,'Sakuragich<EFBFBD>
|
2014-09-16 07:27:27 +00:00
|
|
|
|
/*!40000 ALTER TABLE `reviews` 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 */;
|
|
|
|
|
|
2015-03-26 04:32:19 +00:00
|
|
|
|
-- Dump completed on 2015-03-26 13:31:52
|