-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdump.sql
More file actions
executable file
·168 lines (144 loc) · 5.32 KB
/
dump.sql
File metadata and controls
executable file
·168 lines (144 loc) · 5.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
-- MySQL dump 10.11
--
-- Host: localhost Database: ranking
-- ------------------------------------------------------
-- Server version 5.0.51a-24+lenny5
/*!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 `clients`
--
DROP TABLE IF EXISTS `clients`;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `clients` (
`clients_id` int(11) NOT NULL auto_increment,
`name` varchar(150) NOT NULL,
PRIMARY KEY (`clients_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
--
-- Dumping data for table `clients`
--
LOCK TABLES `clients` WRITE;
/*!40000 ALTER TABLE `clients` DISABLE KEYS */;
INSERT INTO `clients` VALUES (1,'Default client');
/*!40000 ALTER TABLE `clients` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `clients_has_domains`
--
DROP TABLE IF EXISTS `clients_has_domains`;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `clients_has_domains` (
`clients_id` int(11) NOT NULL,
`domains_id` int(11) NOT NULL,
PRIMARY KEY (`domains_id`),
KEY `clients_id` (`clients_id`,`domains_id`),
CONSTRAINT `clients_has_domains_ibfk_1` FOREIGN KEY (`clients_id`) REFERENCES `clients` (`clients_id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `clients_has_domains_ibfk_2` FOREIGN KEY (`domains_id`) REFERENCES `domains` (`domains_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
--
-- Dumping data for table `clients_has_domains`
--
LOCK TABLES `clients_has_domains` WRITE;
/*!40000 ALTER TABLE `clients_has_domains` DISABLE KEYS */;
INSERT INTO `clients_has_domains` VALUES (1,1);
/*!40000 ALTER TABLE `clients_has_domains` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `domains`
--
DROP TABLE IF EXISTS `domains`;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `domains` (
`domains_id` int(11) NOT NULL auto_increment,
`domain` varchar(100) NOT NULL,
`pages_to_crawl` int(5) NOT NULL default '1',
`domain_min_sleep` int(5) NOT NULL,
`domain_max_sleep` int(5) NOT NULL,
`keyword_min_sleep` int(5) NOT NULL,
`keyword_max_sleep` int(5) NOT NULL,
PRIMARY KEY (`domains_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
--
-- Dumping data for table `domains`
--
LOCK TABLES `domains` WRITE;
/*!40000 ALTER TABLE `domains` DISABLE KEYS */;
INSERT INTO `domains` VALUES (1,'www.webmug.de',1,10,60,2,5);
/*!40000 ALTER TABLE `domains` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `domains_has_keywords`
--
DROP TABLE IF EXISTS `domains_has_keywords`;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `domains_has_keywords` (
`domains_id` int(11) NOT NULL,
`keywords_id` int(11) NOT NULL,
KEY `keywords_id` (`keywords_id`),
KEY `domains_id` (`domains_id`),
CONSTRAINT `domains_has_keywords_ibfk_1` FOREIGN KEY (`domains_id`) REFERENCES `domains` (`domains_id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `domains_has_keywords_ibfk_2` FOREIGN KEY (`keywords_id`) REFERENCES `keywords` (`keywords_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
--
-- Dumping data for table `domains_has_keywords`
--
LOCK TABLES `domains_has_keywords` WRITE;
/*!40000 ALTER TABLE `domains_has_keywords` DISABLE KEYS */;
INSERT INTO `domains_has_keywords` VALUES (1,1);
/*!40000 ALTER TABLE `domains_has_keywords` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `keywords`
--
DROP TABLE IF EXISTS `keywords`;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `keywords` (
`keywords_id` int(11) NOT NULL auto_increment,
`keyword` varchar(200) NOT NULL,
`prio` int(6) NOT NULL,
PRIMARY KEY (`keywords_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
--
-- Dumping data for table `keywords`
--
LOCK TABLES `keywords` WRITE;
/*!40000 ALTER TABLE `keywords` DISABLE KEYS */;
INSERT INTO `keywords` VALUES (1,'webmug',100);
/*!40000 ALTER TABLE `keywords` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `results`
--
DROP TABLE IF EXISTS `results`;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `results` (
`date` date NOT NULL,
`keywords_id` varchar(11) NOT NULL,
`pos_google` varchar(6) NOT NULL,
`pos_bing` varchar(6) NOT NULL,
UNIQUE KEY `uniq` (`date`,`keywords_id`,`pos_google`,`pos_bing`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
--
-- Dumping data for table `results`
--