-
Notifications
You must be signed in to change notification settings - Fork 0
/
edlife (1).sql
307 lines (252 loc) · 9.93 KB
/
edlife (1).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
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
-- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Nov 28, 2012 at 10:53 PM
-- Server version: 5.5.27
-- PHP Version: 5.4.7
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 */;
--
-- Database: `edlife`
--
-- --------------------------------------------------------
--
-- Table structure for table `amizade`
--
CREATE TABLE IF NOT EXISTS `amizade` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`de` int(11) NOT NULL,
`para` int(11) NOT NULL,
`status` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=40 ;
--
-- Dumping data for table `amizade`
--
INSERT INTO `amizade` (`id`, `de`, `para`, `status`) VALUES
(10, 2, 3, 1),
(21, 1, 2, 1),
(22, 1, 3, 1),
(39, 5, 4, 1);
-- --------------------------------------------------------
--
-- Table structure for table `audio1`
--
CREATE TABLE IF NOT EXISTS `audio1` (
`id` int(11) NOT NULL,
`de` int(11) NOT NULL,
`para` int(11) NOT NULL,
`nome` varchar(150) NOT NULL,
`tipo` int(11) NOT NULL,
`onde` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `comentario`
--
CREATE TABLE IF NOT EXISTS `comentario` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`topico` int(11) NOT NULL,
`inst` int(11) NOT NULL,
`id_autor` int(11) NOT NULL,
`comentario` longtext NOT NULL,
`adicionado` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `imagem`
--
CREATE TABLE IF NOT EXISTS `imagem` (
`id` int(11) NOT NULL,
`de` int(11) NOT NULL,
`para` int(11) NOT NULL,
`nome` varchar(150) NOT NULL,
`tipo` int(11) NOT NULL,
`onde` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `instituicao`
--
CREATE TABLE IF NOT EXISTS `instituicao` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nome` varchar(30) NOT NULL,
`descricao` varchar(140) NOT NULL,
`usermaster` int(11) NOT NULL,
`imagem` varchar(140) NOT NULL,
`cadastro` date NOT NULL,
`status` int(11) NOT NULL,
`nivel` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `instituicao`
--
INSERT INTO `instituicao` (`id`, `nome`, `descricao`, `usermaster`, `imagem`, `cadastro`, `status`, `nivel`) VALUES
(1, 'ETEC Cubatão', 'Escola de Nível Técnico do Estado de São Paulo', 4, 'default.png', '2012-10-22', 0, 1);
-- --------------------------------------------------------
--
-- Table structure for table `membros`
--
CREATE TABLE IF NOT EXISTS `membros` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`de` int(11) NOT NULL,
`para` int(11) NOT NULL,
`status` int(11) NOT NULL,
`tipo` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `de` (`de`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
--
-- Dumping data for table `membros`
--
INSERT INTO `membros` (`id`, `de`, `para`, `status`, `tipo`) VALUES
(7, 5, 1, 1, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `notifications`
--
CREATE TABLE IF NOT EXISTS `notifications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`para` int(11) NOT NULL,
`type` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `postagem`
--
CREATE TABLE IF NOT EXISTS `postagem` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`de` int(11) NOT NULL,
`onde` int(11) NOT NULL,
`comentario` longtext NOT NULL,
`status` int(11) NOT NULL,
`posted` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `postagem`
--
INSERT INTO `postagem` (`id`, `de`, `onde`, `comentario`, `status`, `posted`) VALUES
(1, 5, 22, 'Testando eu', 0, '2012-11-17 01:33:51');
-- --------------------------------------------------------
--
-- Table structure for table `topicos`
--
CREATE TABLE IF NOT EXISTS `topicos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nome` varchar(30) NOT NULL,
`id_inst` int(11) NOT NULL,
`id_autor` int(11) NOT NULL,
`conteudo` longtext NOT NULL,
`descricao` varchar(150) NOT NULL,
`tipo` int(11) NOT NULL,
`adicionado` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `topicos`
--
INSERT INTO `topicos` (`id`, `nome`, `id_inst`, `id_autor`, `conteudo`, `descricao`, `tipo`, `adicionado`) VALUES
(4, 'Add new topics', 1, 5, 'This is the way to add a new topic', 'How to add new topics on EducationLife', 0, '2012-11-17 02:06:23');
-- --------------------------------------------------------
--
-- Table structure for table `updates`
--
CREATE TABLE IF NOT EXISTS `updates` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`por` int(11) NOT NULL,
`text` varchar(200) NOT NULL,
`type` int(11) NOT NULL,
`posted` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=39 ;
--
-- Dumping data for table `updates`
--
INSERT INTO `updates` (`id`, `por`, `text`, `type`, `posted`) VALUES
(2, 4, 'Olá mundo', 0, '2012-10-19 12:08:59'),
(3, 4, 'Sim', 0, '2012-10-19 12:36:50'),
(4, 4, 'teste', 0, '2012-10-19 12:36:54'),
(5, 4, 'teste\r\n', 0, '2012-10-19 12:37:00'),
(7, 5, 'Testando o sistema de postagem', 0, '2012-10-19 12:44:58'),
(9, 5, 'Aprovado? Sim/N', 0, '2012-10-19 12:47:58'),
(10, 5, 'Projeto Education Life', 0, '2012-10-19 12:48:17'),
(12, 5, 'YAGO ESTEVE AQUI!!!!!!', 0, '2012-10-19 14:00:47'),
(13, 5, 'CLICK IDEIA É ....', 0, '2012-10-19 14:16:20'),
(14, 5, 'Lais e Laisa estiveram aqui!', 0, '2012-10-19 14:25:27'),
(15, 5, 'FREE STEP SZ..', 0, '2012-10-19 15:17:11'),
(16, 5, 'FREE STEP SZ..', 0, '2012-10-19 15:23:41'),
(17, 5, 'LetÃcia e Larissa estiveram aqui', 0, '2012-10-19 15:23:54'),
(18, 5, 'Boa sorte....... ', 0, '2012-10-19 15:33:06'),
(19, 5, 'Patrick Reis esteve aqui\r\n', 0, '2012-10-19 15:35:09'),
(20, 5, 'passem na sala 5 e deem uma olhada no projeto Saluti....Renata\r\n', 0, '2012-10-19 15:43:17'),
(21, 5, 'vote coco sustentável ;* ', 0, '2012-10-19 16:02:21'),
(22, 5, 'Trilha para o Perequê, com o Projeto Conexão logÃstica Verde.. R$10,00.. Procurar na sala 02!!!!!!!!! Curtam facebook/projetoecoturistico ', 0, '2012-10-19 16:21:31'),
(23, 5, 'vote no projeto ao lado...!!', 0, '2012-10-19 16:27:01'),
(24, 5, 'Vote no EDUCATION LIFE!!!!!!!!!!!!!!!!!!', 0, '2012-10-19 17:33:11'),
(25, 5, 'OI VOTEM AKI !!!!', 0, '2012-10-19 18:47:53'),
(26, 5, 'PROF. CLAUDIO TEIXEIRA\r\n', 0, '2012-10-19 19:40:15'),
(27, 5, 'VOTE COCO SUSTENTÃVEL', 0, '2012-10-19 19:47:34'),
(28, 5, 'Larissa ESTEVE AQUI', 0, '2012-10-19 20:40:03'),
(29, 5, 'Robson Escotiel has been here!', 0, '2012-10-19 21:39:08'),
(30, 5, 'DEIVISON ESTEVE AKI!!!!!!!!!!!!!!', 0, '2012-10-19 22:14:21'),
(32, 5, 'teste', 0, '2012-10-19 23:44:39'),
(33, 5, 'Calculo ', 0, '2012-10-19 23:44:52'),
(35, 4, 'thainá linda', 0, '2012-10-26 21:44:25'),
(36, 4, 'thainá linda', 0, '2012-10-26 21:44:48'),
(37, 4, 'olá mundo\r\n', 0, '2012-11-28 13:11:46'),
(38, 4, 'ola mundo', 0, '2012-11-28 13:12:31');
-- --------------------------------------------------------
--
-- Table structure for table `usuarios`
--
CREATE TABLE IF NOT EXISTS `usuarios` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(64) NOT NULL,
`senha` varchar(128) NOT NULL,
`nome` varchar(32) NOT NULL,
`sobrenome` varchar(64) NOT NULL,
`nascimento` date NOT NULL,
`sexo` varchar(10) NOT NULL,
`imagem` varchar(128) DEFAULT NULL,
`status` int(1) NOT NULL DEFAULT '0',
`cadastro` date NOT NULL,
`nivel` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
--
-- Dumping data for table `usuarios`
--
INSERT INTO `usuarios` (`id`, `email`, `senha`, `nome`, `sobrenome`, `nascimento`, `sexo`, `imagem`, `status`, `cadastro`, `nivel`) VALUES
(1, '[email protected]', 'effd4619301d732cef4a84f6df23d7dd54090620', 'gilglecio', 'santos', '2002-10-10', 'feminino', '104.jpg', 0, '2011-10-26', 0),
(2, '[email protected]', 'effd4619301d732cef4a84f6df23d7dd54090620', 'roberto', 'silva santos', '2011-01-01', 'masculino', '254.jpg', 0, '2011-10-26', 0),
(3, '[email protected]', 'effd4619301d732cef4a84f6df23d7dd54090620', 'ana paula', 'francisca', '2011-01-01', 'masculino', '331.jpg', 0, '2011-10-26', 0),
(4, '[email protected]', '7c4a8d09ca3762af61e59520943dc26494f8941b', 'Otavio', 'Ramos Tarelho de Barros', '2012-01-16', 'masculino', '4.png', 0, '2012-10-07', 0),
(5, '[email protected]', '7c4a8d09ca3762af61e59520943dc26494f8941b', 'Wadson', 'Gomes', '1986-10-03', 'Masculino', '7.png', 0, '2012-10-08', 0),
(7, '[email protected]', '7c4a8d09ca3762af61e59520943dc26494f8941b', 'Paulo Vicente', 'Paulo Vicente', '2012-11-19', 'masculino', 'default.png', 0, '0000-00-00', 0);
-- --------------------------------------------------------
--
-- Table structure for table `video`
--
CREATE TABLE IF NOT EXISTS `video` (
`id` int(11) NOT NULL,
`de` int(11) NOT NULL,
`para` int(11) NOT NULL,
`nome` varchar(150) NOT NULL,
`tipo` int(11) NOT NULL,
`onde` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!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 */;