-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.sql
257 lines (217 loc) · 8.49 KB
/
base.sql
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
-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 20-11-2015 a las 11:22:15
-- Versión del servidor: 5.5.46-0ubuntu0.14.04.2
-- Versión de PHP: 5.5.9-1ubuntu4.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+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 */;
--
-- Base de datos: `samplecleaner`
--
CREATE DATABASE IF NOT EXISTS `samplecleaner` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `samplecleaner`;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `contact`
--
DROP TABLE IF EXISTS `contact`;
CREATE TABLE IF NOT EXISTS `contact` (
`idContact` int(11) NOT NULL AUTO_INCREMENT,
`email` text,
`message` text,
`type` text,
`createdAt` datetime DEFAULT NULL,
PRIMARY KEY (`idContact`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `groups`
--
DROP TABLE IF EXISTS `groups`;
CREATE TABLE IF NOT EXISTS `groups` (
`idGroup` int(11) NOT NULL AUTO_INCREMENT,
`group` text,
`createdAt` datetime DEFAULT NULL,
PRIMARY KEY (`idGroup`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
--
-- Volcado de datos para la tabla `groups`
--
INSERT INTO `groups` (`idGroup`, `group`, `createdAt`) VALUES
(1, 'basic', '2015-11-02 09:00:00'),
(2, 'admin', '2015-11-02 09:56:00');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `info_profiles`
--
DROP TABLE IF EXISTS `info_profiles`;
CREATE TABLE IF NOT EXISTS `info_profiles` (
`idInfo` int(11) NOT NULL AUTO_INCREMENT,
`year` text,
`profile` text,
`info` text,
PRIMARY KEY (`idInfo`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=31 ;
--
-- Volcado de datos para la tabla `info_profiles`
--
INSERT INTO `info_profiles` (`idInfo`, `year`, `profile`, `info`) VALUES
(1, '40', '1', 'Hiss + Click + Hum (GENERIC)'),
(2, '40', '2', 'Hiss + Click + Hum + EXTRA HISS'),
(3, '40', '3', 'Hiss + Click + Hum + EXTRA HUM'),
(4, '40', '4', 'Hiss + Click + Hum + EXTRA CLICK'),
(5, '50', '1', 'Hiss + Click + Hum (GENERIC)'),
(6, '50', '2', 'Hiss + Click + Hum + EXTRA HISS'),
(7, '50', '3', 'Hiss + Click + Hum + EXTRA HUM'),
(8, '50', '4', 'Hiss + Click + Hum + EXTRA CLICK'),
(9, '60', '1', 'Hiss + Click + Hum (GENERIC)'),
(10, '60', '2', 'Hiss + Click + Hum + EXTRA HISS'),
(11, '60', '3', 'Hiss + Click + Hum + EXTRA HUM'),
(12, '60', '4', 'Hiss + Click + Hum + EXTRA CLICK'),
(13, '70', '1', 'Hiss + Click + Hum (GENERIC)'),
(14, '70', '2', 'Hiss + Click + Hum + EXTRA HISS'),
(15, '70', '3', 'Hiss + Click + Hum + EXTRA HUM'),
(16, '70', '4', 'Hiss + Click + Hum + EXTRA CLICK'),
(17, '80', '1', 'Hiss + Click + Hum (GENERIC)'),
(18, '80', '2', 'Hiss + Click + Hum + EXTRA HISS'),
(19, '80', '3', 'Hiss + Click + Hum + EXTRA HUM'),
(20, '80', '4', 'Hiss + Click + Hum + EXTRA CLICK'),
(21, '90', '1', 'Hiss + Click + Hum (GENERIC)'),
(22, '90', '2', 'Hiss + Click + Hum + EXTRA HISS'),
(23, '90', '3', 'Hiss + Click + Hum + EXTRA HUM'),
(24, '90', '4', 'Hiss + Click + Hum + EXTRA CLICK');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `info_years`
--
DROP TABLE IF EXISTS `info_years`;
CREATE TABLE IF NOT EXISTS `info_years` (
`idInfo` int(11) NOT NULL AUTO_INCREMENT,
`year` text,
`info` text,
PRIMARY KEY (`idInfo`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
--
-- Volcado de datos para la tabla `info_years`
--
INSERT INTO `info_years` (`idInfo`, `year`, `info`) VALUES
(1, '40', 'Monophonic sound, narrow namdwidth and poor dynamic range'),
(2, '50', 'Monophonic sound, standarized equalization (RIAA, current standard)'),
(3, '60', 'First commercialized stereo recordings, improved dynamic range'),
(4, '70', 'Highly improved dynamic range with AGC, low storage capacity'),
(5, '80', 'Good dynamic range, few distortion and broad bandwidth'),
(6, '90', 'Borad bandwidth and great storage capacity (current technology)');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `log_uploads`
--
DROP TABLE IF EXISTS `log_uploads`;
CREATE TABLE IF NOT EXISTS `log_uploads` (
`idLog` int(11) NOT NULL AUTO_INCREMENT,
`idUser` int(11) DEFAULT NULL COMMENT 'User id',
`ip` text COMMENT 'User IP address',
`date` datetime DEFAULT NULL COMMENT 'Date',
`time` int(11) DEFAULT '0' COMMENT 'Python script: Time (milliseconds)',
`error` text COMMENT 'Python script: Errors',
`messages` text COMMENT 'Python script: Messages',
`name` text COMMENT 'Uploaded file name',
`size` text COMMENT 'File size',
`type` text COMMENT 'File MIME type',
`params` text COMMENT 'Parameters for the cleaning process',
`first_download` datetime DEFAULT NULL COMMENT 'First download date',
`last_download` datetime DEFAULT NULL COMMENT 'Last download date',
`deleted` int(11) NOT NULL DEFAULT '0' COMMENT 'Deleted from srever = 1, Still on server = 0',
PRIMARY KEY (`idLog`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `mailing_list`
--
DROP TABLE IF EXISTS `mailing_list`;
CREATE TABLE IF NOT EXISTS `mailing_list` (
`idList` int(11) NOT NULL AUTO_INCREMENT,
`email` text,
`createdAt` datetime DEFAULT NULL,
`token` text,
`disabled` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`idList`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `templates`
--
DROP TABLE IF EXISTS `templates`;
CREATE TABLE IF NOT EXISTS `templates` (
`idTemplate` int(11) NOT NULL AUTO_INCREMENT,
`name` text,
`template` text,
`createdAt` datetime DEFAULT NULL,
`updatedAt` datetime DEFAULT NULL,
PRIMARY KEY (`idList`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
--
-- Volcado de datos para la tabla `templates`
--
INSERT INTO `templates` (`idTemplate`, `name`, `template`, `createdAt`, `updatedAt`) VALUES
(1, 'Plantilla para envío de correo masivo', '<!-- Logo -->
<img id="logo" src="http://samplecleaner.com/img/logo1.small.png" style="max-height: 33px;" alt="Sample Cleaner">
<!-- Separator -->
<hr style="display: block; height: 1px; border: 0; border-top: 1px solid #ddd; margin-top: 16px; margin-bottom: 16px; padding: 0px;">
<!-- Text of the message -->
<div style="font-family: Arial; font-size: 15px; color: #333">
<p>
%s
</p>
</div>
<!-- Separator -->
<hr style="display: block; height: 1px; border: 0; border-top: 1px solid #ddd; margin-top: 16px; margin-bottom: 16px; padding: 0px;">
<!-- Quit list link -->
<div style="font-family:Arial; font-size: 15px;">
<p>
<a href="%s" style="font-size: 13px; color: #777; font-style: italic; text-decoration: none">
Quit mailing list
</a>
</p>
</div>
', '2016-05-18 00:00:00', NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`idUser` int(11) NOT NULL AUTO_INCREMENT,
`email` text COMMENT 'User e-mail',
`name` text COMMENT 'First name',
`password` text COMMENT 'Encrypted password',
`firstLogin` text COMMENT 'Date of first login',
`lastLogin` text COMMENT 'Date of last login',
`firstIP` text COMMENT 'First IP address',
`lastIP` text COMMENT 'Last IP address',
`createdAt` datetime DEFAULT NULL COMMENT 'Date of creation',
`updatedAt` datetime DEFAULT NULL COMMENT 'Date of update',
`disabled` int(11) NOT NULL DEFAULT '0' COMMENT 'Disabled = 1, Enabled = 0',
PRIMARY KEY (`idUser`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `user_groups`
--
DROP TABLE IF EXISTS `user_groups`;
CREATE TABLE IF NOT EXISTS `user_groups` (
`idUserGroup` int(11) NOT NULL AUTO_INCREMENT,
`idUser` int(11) DEFAULT NULL,
`idGroup` int(11) DEFAULT NULL,
`createdAt` datetime DEFAULT NULL,
PRIMARY KEY (`idUserGroup`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
/*!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 */;