-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdb.sql
More file actions
362 lines (267 loc) · 9.52 KB
/
db.sql
File metadata and controls
362 lines (267 loc) · 9.52 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
# ************************************************************
# Sequel Pro SQL dump
# Version 3408
#
# http://www.sequelpro.com/
# http://code.google.com/p/sequel-pro/
#
# Host: quetevalga.com (MySQL 5.1.66)
# Database: qtvht
# Generation Time: 2013-01-04 23:19:55 +0000
# ************************************************************
/*!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 */;
/*!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 */;
# Dump of table ads
# ------------------------------------------------------------
DROP TABLE IF EXISTS `ads`;
CREATE TABLE `ads` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`init_date` date DEFAULT NULL,
`end_date` date DEFAULT NULL,
`enabled` tinyint(1) DEFAULT NULL,
`date` date DEFAULT NULL,
`orden` int(11) DEFAULT NULL,
`clients_id` int(11) DEFAULT NULL,
`impressions` int(11) DEFAULT NULL,
`url` text,
`target` varchar(45) DEFAULT NULL,
`code` longtext,
`ads_categories_id` int(11) DEFAULT NULL,
`unlimited` tinyint(1) DEFAULT NULL,
`impressions_count` int(11) DEFAULT '0',
`clicks_count` int(11) DEFAULT '0',
`unlimited_date` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
# Dump of table ads_categories
# ------------------------------------------------------------
DROP TABLE IF EXISTS `ads_categories`;
CREATE TABLE `ads_categories` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table areas
# ------------------------------------------------------------
DROP TABLE IF EXISTS `areas`;
CREATE TABLE `areas` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` text,
`subtitle` text,
`content` longtext,
`sections_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table blog
# ------------------------------------------------------------
DROP TABLE IF EXISTS `blog`;
CREATE TABLE `blog` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` text,
`content` longtext,
`date` date DEFAULT NULL,
`enabled` tinyint(1) DEFAULT NULL,
`orden` int(11) DEFAULT NULL,
`blog_categories_id` int(11) DEFAULT NULL,
`users_id` int(11) DEFAULT NULL,
`tags` text,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
# Dump of table blog_categories
# ------------------------------------------------------------
DROP TABLE IF EXISTS `blog_categories`;
CREATE TABLE `blog_categories` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
# Dump of table clients
# ------------------------------------------------------------
DROP TABLE IF EXISTS `clients`;
CREATE TABLE `clients` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`enabled` tinyint(1) DEFAULT NULL,
`date` date DEFAULT NULL,
`orden` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table events
# ------------------------------------------------------------
DROP TABLE IF EXISTS `events`;
CREATE TABLE `events` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` text,
`date` date DEFAULT NULL,
`orden` int(11) DEFAULT NULL,
`enabled` tinyint(1) DEFAULT NULL,
`place` varchar(255) DEFAULT NULL,
`box_office` text,
`facebook_account` varchar(255) DEFAULT '',
`description` longtext,
`telephone_1` varchar(30) DEFAULT NULL,
`telephone_2` varchar(30) DEFAULT NULL,
`twitter_account` varchar(255) DEFAULT '',
`extra_information` text,
`schedule` varchar(100) DEFAULT NULL,
`event_date` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
# Dump of table fb_users
# ------------------------------------------------------------
DROP TABLE IF EXISTS `fb_users`;
CREATE TABLE `fb_users` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(45) DEFAULT NULL,
`lastname` varchar(45) DEFAULT NULL,
`email` varchar(100) DEFAULT NULL,
`register_date` datetime DEFAULT NULL,
`banned` tinyint(1) DEFAULT '0',
`images_id` int(11) DEFAULT NULL,
`fb_id` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table fb_votes
# ------------------------------------------------------------
DROP TABLE IF EXISTS `fb_votes`;
CREATE TABLE `fb_votes` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`facebook_id` varchar(100) DEFAULT NULL,
`users_id` int(11) DEFAULT NULL,
`date` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table galleries
# ------------------------------------------------------------
DROP TABLE IF EXISTS `galleries`;
CREATE TABLE `galleries` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`date` date DEFAULT NULL,
`nightclubs_id` int(11) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`contest` tinyint(1) DEFAULT NULL,
`enabled` tinyint(1) DEFAULT NULL,
`orden` int(11) DEFAULT NULL,
`description` longtext,
`galleries_type_id` int(11) DEFAULT NULL,
`banner` tinyint(1) DEFAULT NULL,
`old_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
# Dump of table galleries_type
# ------------------------------------------------------------
DROP TABLE IF EXISTS `galleries_type`;
CREATE TABLE `galleries_type` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
# Dump of table images
# ------------------------------------------------------------
DROP TABLE IF EXISTS `images`;
CREATE TABLE `images` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`url` text,
`orden` int(11) DEFAULT NULL,
`enabled` tinyint(1) DEFAULT NULL,
`parent_id` int(11) DEFAULT NULL,
`section` varchar(255) DEFAULT NULL,
`description` text,
`title` text,
PRIMARY KEY (`id`),
KEY `parent_id` (`parent_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table nightclubs
# ------------------------------------------------------------
DROP TABLE IF EXISTS `nightclubs`;
CREATE TABLE `nightclubs` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`galleries_type_id` int(11) DEFAULT '1',
`enabled` tinyint(1) DEFAULT NULL,
`date` date DEFAULT NULL,
`orden` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
# Dump of table places
# ------------------------------------------------------------
DROP TABLE IF EXISTS `places`;
CREATE TABLE `places` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`places_types_id` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`description` longtext,
`schedule` text,
`address` text,
`telephone_1` varchar(30) DEFAULT NULL,
`telephone_2` varchar(30) DEFAULT NULL,
`facebook_account` varchar(255) DEFAULT NULL,
`twitter_account` varchar(255) DEFAULT NULL,
`website` varchar(255) DEFAULT NULL,
`cost` text,
`date` date DEFAULT NULL,
`orden` int(11) DEFAULT NULL,
`enabled` tinyint(1) DEFAULT NULL,
`language` varchar(3) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
# Dump of table places_types
# ------------------------------------------------------------
DROP TABLE IF EXISTS `places_types`;
CREATE TABLE `places_types` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`orden` int(11) DEFAULT NULL,
`date` date DEFAULT NULL,
`enabled` tinyint(1) DEFAULT '1',
`description` text,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
# Dump of table sections
# ------------------------------------------------------------
DROP TABLE IF EXISTS `sections`;
CREATE TABLE `sections` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`section` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table user_types
# ------------------------------------------------------------
DROP TABLE IF EXISTS `user_types`;
CREATE TABLE `user_types` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`orden` int(11) DEFAULT NULL,
`enabled` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table users
# ------------------------------------------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`lastname` varchar(255) DEFAULT NULL,
`user_types_id` int(11) DEFAULT NULL,
`user` varchar(20) DEFAULT NULL,
`password` varchar(100) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`enabled` tinyint(1) DEFAULT NULL,
`orden` int(11) DEFAULT NULL,
`date` date DEFAULT NULL,
`facebook_id` varchar(100) DEFAULT NULL,
`gender` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_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 */;