· 8 years ago · Jul 17, 2018, 04:50 PM
1
2CREATE TABLE IF NOT EXISTS `area` (
3 `area_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
4 `area_title` varchar(200) DEFAULT NULL,
5 `area_url` varchar(200) DEFAULT NULL
6) ENGINE=InnoDB DEFAULT CHARSET=utf8;
7
8-- --------------------------------------------------------
9
10--
11-- Estrutura da tabela `atributo`
12--
13
14CREATE TABLE IF NOT EXISTS `atributo` (
15 `atributo_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
16 `atributo_nome` varchar(100) DEFAULT NULL,
17 `atributo_item` int(11) DEFAULT NULL
18) ENGINE=InnoDB DEFAULT CHARSET=latin1;
19
20-- --------------------------------------------------------
21
22--
23-- Estrutura da tabela `avaliacao`
24--
25
26CREATE TABLE IF NOT EXISTS `avaliacao` (
27 `avaliacao_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
28 `avaliacao_nota` int(11) DEFAULT NULL,
29 `avaliacao_produto` int(11) DEFAULT NULL,
30 `avaliacao_comentario` text,
31 `avaliacao_usuario` int(11) DEFAULT NULL,
32 `avaliacao_data` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
33 `avaliacao_aprovado` int(11) DEFAULT '0'
34) ENGINE=InnoDB DEFAULT CHARSET=latin1;
35
36-- --------------------------------------------------------
37
38--
39-- Estrutura da tabela `categoria`
40--
41
42CREATE TABLE IF NOT EXISTS `categoria` (
43 `categoria_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
44 `categoria_title` varchar(200) DEFAULT NULL,
45 `categoria_url` varchar(200) DEFAULT NULL,
46 `categoria_pos` int(11) DEFAULT '0',
47 `categoria_icon` varchar(200) DEFAULT NULL
48) ENGINE=InnoDB DEFAULT CHARSET=latin1;
49
50-- --------------------------------------------------------
51
52--
53-- Estrutura da tabela `cliente`
54--
55
56CREATE TABLE IF NOT EXISTS `cliente` (
57 `cliente_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
58 `cliente_nome` varchar(200) DEFAULT NULL,
59 `cliente_datan` varchar(20) DEFAULT NULL,
60 `cliente_email` varchar(200) DEFAULT NULL,
61 `cliente_telefone` varchar(20) DEFAULT NULL,
62 `cliente_password` varchar(100) DEFAULT NULL,
63 `cliente_sexo` int(11) DEFAULT '1' COMMENT '1 = masc\r\n2 = fem',
64 `cliente_celular` varchar(20) DEFAULT NULL,
65 `cliente_datacad` varchar(20) DEFAULT NULL,
66 `cliente_sobrenome` varchar(200) DEFAULT NULL,
67 `cliente_ie` varchar(200) DEFAULT NULL,
68 `cliente_cnpj` varchar(200) DEFAULT NULL,
69 `cliente_contato` varchar(200) DEFAULT NULL,
70 `cliente_cpf` varchar(25) DEFAULT NULL,
71 `cliente_tipo` varchar(200) DEFAULT NULL
72) ENGINE=InnoDB DEFAULT CHARSET=utf8;
73
74-- --------------------------------------------------------
75
76--
77-- Estrutura da tabela `config`
78--
79
80CREATE TABLE IF NOT EXISTS `config` (
81 `config_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
82 `config_site_title` varchar(500) DEFAULT NULL,
83 `config_site_description` text,
84 `config_site_keywords` text,
85 `config_site_menu` int(11) DEFAULT '0' COMMENT '1 = sim',
86 `config_site_social` text,
87 `config_site_fone1` varchar(40) DEFAULT NULL,
88 `config_site_fone2` varchar(40) DEFAULT NULL,
89 `config_site_email` varchar(200) DEFAULT NULL,
90 `config_site_cep` varchar(20) DEFAULT NULL,
91 `config_site_rua` varchar(200) DEFAULT NULL,
92 `config_site_num` varchar(20) DEFAULT NULL,
93 `config_site_bairro` varchar(200) DEFAULT NULL,
94 `config_site_cidade` varchar(200) DEFAULT NULL,
95 `config_site_uf` varchar(20) DEFAULT NULL,
96 `config_site_complemento` varchar(200) DEFAULT NULL,
97 `config_site_cnpj` text,
98 `config_site_informacao` varchar(800) DEFAULT NULL,
99 `config_site_horario` varchar(400) NOT NULL,
100 `config_chat` text,
101 `config_color_bd` varchar(20) DEFAULT NULL,
102 `config_color_bh` varchar(20) DEFAULT NULL,
103 `config_color_cd` varchar(20) DEFAULT NULL,
104 `config_color_ch` varchar(20) DEFAULT NULL,
105 `config_color_bk` varchar(20) DEFAULT NULL,
106 `config_color_top` varchar(20) DEFAULT 'fafafa',
107 `config_modo` int(1) NOT NULL DEFAULT '1',
108 `config_site_prodhome` int(11) DEFAULT '0',
109 `config_site_full` varchar(20) NOT NULL DEFAULT '-fluid',
110 `config_site_depoimento` int(1) NOT NULL DEFAULT '0'
111) ENGINE=InnoDB DEFAULT CHARSET=utf8;
112
113-- --------------------------------------------------------
114
115--
116-- Estrutura da tabela `cupom`
117--
118
119CREATE TABLE IF NOT EXISTS `cupom` (
120 `cupom_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
121 `cupom_alfa` varchar(12) DEFAULT NULL,
122 `cupom_status` int(11) DEFAULT '0' COMMENT '1 = ativado',
123 `cupom_update` varchar(20) DEFAULT NULL,
124 `cupom_lote` int(11) DEFAULT '1',
125 `cupom_desconto` int(11) DEFAULT NULL,
126 `cupom_pedido` int(11) DEFAULT NULL,
127 `cupom_tipo` int(11) DEFAULT '1' COMMENT '1 = desconto do total\r\n2 = desconta frete',
128 `cupom_min` int(11) DEFAULT '10',
129 `cupom_validade` datetime DEFAULT NULL,
130 `cupom_limite` int(11) DEFAULT '1' COMMENT '2 nao',
131 `cupom_real` decimal(10,2) DEFAULT '0.00'
132) ENGINE=InnoDB DEFAULT CHARSET=utf8;
133
134-- --------------------------------------------------------
135
136--
137-- Estrutura da tabela `depoimento`
138--
139
140CREATE TABLE IF NOT EXISTS `depoimento` (
141 `depoimento_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
142 `depoimento_nome` varchar(200) DEFAULT NULL,
143 `depoimento_foto` varchar(200) DEFAULT NULL,
144 `depoimento_msg` text,
145 `depoimento_status` int(11) DEFAULT NULL,
146 `depoimento_data` varchar(200) DEFAULT NULL
147) ENGINE=InnoDB DEFAULT CHARSET=utf8;
148
149-- --------------------------------------------------------
150
151--
152-- Estrutura da tabela `endereco`
153--
154
155CREATE TABLE IF NOT EXISTS `endereco` (
156 `endereco_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
157 `endereco_cliente` int(11) DEFAULT NULL,
158 `endereco_rua` varchar(300) DEFAULT NULL,
159 `endereco_uf` varchar(2) DEFAULT NULL,
160 `endereco_num` varchar(20) DEFAULT NULL,
161 `endereco_complemento` varchar(2000) DEFAULT NULL,
162 `endereco_cidade` varchar(200) DEFAULT NULL,
163 `endereco_bairro` varchar(200) DEFAULT NULL,
164 `endereco_tipo` int(11) DEFAULT '1' COMMENT '1 = cobranca',
165 `endereco_title` varchar(200) DEFAULT NULL,
166 `endereco_cep` varchar(20) DEFAULT NULL
167) ENGINE=InnoDB DEFAULT CHARSET=utf8;
168
169-- --------------------------------------------------------
170
171--
172-- Estrutura da tabela `entrega`
173--
174
175CREATE TABLE IF NOT EXISTS `entrega` (
176 `entrega_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
177 `entrega_valor` varchar(20) DEFAULT NULL,
178 `entrega_bairro` varchar(200) DEFAULT NULL,
179 `entrega_cidade` varchar(200) DEFAULT NULL,
180 `entrega_uf` varchar(10) DEFAULT NULL,
181 `entrega_cep` varchar(20) DEFAULT NULL,
182 `entrega_tipo` int(11) DEFAULT '1' COMMENT '1 - uf\r\n2 - cidade\r\n3 - bairro',
183 `entrega_prazo` varchar(200) DEFAULT '7',
184 `entrega_desc` varchar(200) DEFAULT NULL
185) ENGINE=InnoDB DEFAULT CHARSET=utf8;
186
187-- --------------------------------------------------------
188
189--
190-- Estrutura da tabela `foto`
191--
192
193CREATE TABLE IF NOT EXISTS `foto` (
194 `foto_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
195 `foto_title` varchar(200) DEFAULT NULL,
196 `foto_url` varchar(200) DEFAULT NULL,
197 `foto_pos` int(11) DEFAULT '0',
198 `foto_item` int(11) DEFAULT NULL
199) ENGINE=InnoDB DEFAULT CHARSET=utf8;
200
201-- --------------------------------------------------------
202
203--
204-- Estrutura da tabela `frete`
205--
206
207CREATE TABLE IF NOT EXISTS `frete` (
208 `frete_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
209 `frete_cep_origem` varchar(20) DEFAULT NULL,
210 `frete_taxa` double DEFAULT NULL,
211 `frete_pac` int(11) DEFAULT '1' COMMENT '1 = ativo',
212 `frete_sedex` int(11) DEFAULT '1' COMMENT '1 = ativo',
213 `frete_sedexac` int(11) DEFAULT '1' COMMENT '1 = ativo',
214 `frete_sedex10` int(11) DEFAULT '1' COMMENT '1 = ativo',
215 `frete_prazo` int(11) DEFAULT '9',
216 `frete_show_free` int(11) DEFAULT '1' COMMENT '2 = nao',
217 `frete_opcoes` int(11) DEFAULT '1' COMMENT '1 = todos\r\n2 = somente entrega\r\n3 = somente retirada',
218 `frete_apt` double(10,0) NOT NULL,
219 `frete_sul` double(10,0) DEFAULT NULL,
220 `frete_nome` varchar(200) DEFAULT NULL,
221 `frete_perc_sul` double(10,0) DEFAULT NULL,
222 `frete_perc_apt` double(10,0) DEFAULT NULL,
223 `frete_perc_prazo_sul` varchar(100) DEFAULT NULL,
224 `frete_perc_prazo_outros` varchar(100) DEFAULT NULL,
225 `frete_braspress` varchar(30) NOT NULL DEFAULT '0000000000',
226 `frete_braspress_nome` varchar(200) NOT NULL DEFAULT 'Braspress',
227 `frete_braspress_ativo` int(11) DEFAULT '0',
228 `frete_jadlog_nome` varchar(255) DEFAULT NULL,
229 `frete_jadlog_senha` varchar(200) DEFAULT NULL,
230 `frete_jadlog_ativo` int(11) DEFAULT '0',
231 `frete_jadlog_cnpj` varchar(200) DEFAULT NULL
232) ENGINE=InnoDB DEFAULT CHARSET=utf8;
233
234-- --------------------------------------------------------
235
236--
237-- Estrutura da tabela `iattr`
238--
239
240CREATE TABLE IF NOT EXISTS `iattr` (
241 `iattr_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
242 `iattr_atributo` int(11) DEFAULT NULL,
243 `iattr_nome` varchar(100) DEFAULT NULL
244) ENGINE=InnoDB DEFAULT CHARSET=utf8;
245
246-- --------------------------------------------------------
247
248--
249-- Estrutura da tabela `item`
250--
251
252CREATE TABLE IF NOT EXISTS `item` (
253 `item_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
254 `item_title` varchar(200) DEFAULT NULL,
255 `item_desc` text,
256 `item_sub` int(11) DEFAULT NULL,
257 `item_preco` double DEFAULT NULL,
258 `item_keywords` varchar(2000) DEFAULT NULL,
259 `item_url` varchar(300) DEFAULT NULL,
260 `item_show` int(11) DEFAULT '0' COMMENT '1 = sim',
261 `item_oferta` int(11) DEFAULT '0' COMMENT '1 = sim',
262 `item_views` int(11) DEFAULT '0',
263 `item_categoria` int(11) DEFAULT NULL,
264 `item_largura` varchar(20) DEFAULT '12',
265 `item_altura` varchar(20) DEFAULT '4',
266 `item_comprimento` varchar(20) DEFAULT '16',
267 `item_tamanho` varchar(255) DEFAULT NULL,
268 `item_peso` varchar(20) DEFAULT '0.5',
269 `item_parc` int(11) DEFAULT '1',
270 `item_desconto` double DEFAULT '0',
271 `item_calcula_frete` int(11) DEFAULT '2' COMMENT '2 = sim',
272 `item_slide` int(11) DEFAULT '0' COMMENT '1 = sim',
273 `item_zoom` int(11) DEFAULT '1' COMMENT '0 = nao',
274 `item_estoque` int(11) DEFAULT '5',
275 `item_min_estoque` int(5) NOT NULL DEFAULT '5',
276 `item_destaque` int(11) DEFAULT '1' COMMENT '0 = nao',
277 `item_ref` varchar(30) DEFAULT NULL,
278 `item_marca` int(5) NOT NULL,
279 `item_disp` varchar(2000) NOT NULL DEFAULT 'Postagem em até 15 dias úteis após a confirmação de pagamento.',
280 `item_pos` int(5) DEFAULT '0'
281) ENGINE=InnoDB DEFAULT CHARSET=latin1;
282
283-- --------------------------------------------------------
284
285--
286-- Estrutura da tabela `lista`
287--
288
289CREATE TABLE IF NOT EXISTS `lista` (
290 `lista_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
291 `lista_item` int(11) DEFAULT NULL,
292 `lista_preco` varchar(100) DEFAULT NULL,
293 `lista_title` varchar(200) DEFAULT NULL,
294 `lista_pedido` int(11) DEFAULT NULL,
295 `lista_qtde` int(11) DEFAULT NULL,
296 `lista_foto` varchar(200) DEFAULT NULL,
297 `lista_atributos` varchar(2000) DEFAULT '0',
298 `lista_atributo_ped` varchar(2000) DEFAULT '0'
299) ENGINE=InnoDB DEFAULT CHARSET=utf8;
300
301-- --------------------------------------------------------
302
303--
304-- Estrutura da tabela `lote`
305--
306
307CREATE TABLE IF NOT EXISTS `lote` (
308 `lote_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
309 `lote_num` int(11) DEFAULT '1',
310 `lote_size` int(11) DEFAULT '100',
311 `lote_nome` varchar(200) DEFAULT NULL
312) ENGINE=InnoDB DEFAULT CHARSET=utf8;
313
314-- --------------------------------------------------------
315
316--
317-- Estrutura da tabela `marca`
318--
319
320CREATE TABLE IF NOT EXISTS `marca` (
321 `marca_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
322 `marca_nome` varchar(200) NOT NULL,
323 `marca_logo` varchar(200) NOT NULL
324) ENGINE=InnoDB DEFAULT CHARSET=utf8;
325
326-- --------------------------------------------------------
327
328--
329-- Estrutura da tabela `news`
330--
331
332CREATE TABLE IF NOT EXISTS `news` (
333 `news_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
334 `news_nome` varchar(200) DEFAULT NULL,
335 `news_email` varchar(200) DEFAULT NULL,
336 `news_data` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
337) ENGINE=MyISAM DEFAULT CHARSET=latin1;
338
339-- --------------------------------------------------------
340
341--
342-- Estrutura da tabela `page`
343--
344
345CREATE TABLE IF NOT EXISTS `page` (
346 `page_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
347 `page_title` varchar(200) DEFAULT NULL,
348 `page_content` text,
349 `page_area` int(11) DEFAULT NULL,
350 `page_url` varchar(300) DEFAULT NULL,
351 `page_show` int(11) DEFAULT '1' COMMENT '2 = nao'
352) ENGINE=InnoDB DEFAULT CHARSET=utf8;
353
354-- --------------------------------------------------------
355
356--
357-- Estrutura da tabela `pay`
358--
359
360CREATE TABLE IF NOT EXISTS `pay` (
361 `pay_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
362 `pay_name` varchar(100) DEFAULT NULL,
363 `pay_key` varchar(100) DEFAULT NULL,
364 `pay_user` varchar(100) DEFAULT NULL,
365 `pay_pass` varchar(100) DEFAULT NULL,
366 `pay_retorno` varchar(200) DEFAULT NULL,
367 `pay_status` int(11) DEFAULT '1' COMMENT '2=desativado',
368 `pay_url_redir` varchar(600) DEFAULT NULL,
369 `pay_fator_juros` varchar(1000) DEFAULT '1.00000, 0.52255, 0.35347, 0.26898, 0.21830, 0.18453, 0.16044, 0.14240, 0.12838, 0.11717, 0.10802, 0.10040 ',
370 `pay_texto` text,
371 `pay_c1` varchar(200) DEFAULT NULL,
372 `pay_c2` varchar(200) DEFAULT NULL,
373 `pay_c3` varchar(200) DEFAULT NULL,
374 `pay_c4` varchar(200) DEFAULT NULL,
375 `pay_c5` varchar(200) DEFAULT NULL,
376 `pay_c6` varchar(200) DEFAULT NULL,
377 `pay_c7` varchar(200) DEFAULT NULL,
378 `pay_c8` varchar(400) DEFAULT NULL,
379 `pay_c9` varchar(200) DEFAULT NULL,
380 `pay_d1` varchar(200) DEFAULT NULL,
381 `pay_d2` varchar(200) DEFAULT NULL
382) ENGINE=InnoDB DEFAULT CHARSET=utf8;
383
384INSERT INTO `pay` (`pay_id`, `pay_name`, `pay_key`, `pay_user`, `pay_pass`, `pay_retorno`, `pay_status`, `pay_url_redir`, `pay_fator_juros`, `pay_texto`, `pay_c1`, `pay_c2`, `pay_c3`, `pay_c4`, `pay_c5`, `pay_c6`, `pay_c7`, `pay_c8`, `pay_c9`, `pay_d1`, `pay_d2`) VALUES (NULL, 'Config', 'pagseguro', 'pagseguro', NULL, NULL, '1', NULL, '1.00000, 0.52255, 0.35347, 0.26898, 0.21830, 0.18453, 0.16044, 0.14240, 0.12838, 0.11717, 0.10802, 0.10040 ', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
385-- --------------------------------------------------------
386
387--
388-- Estrutura da tabela `pedido`
389--
390
391CREATE TABLE IF NOT EXISTS `pedido` (
392 `pedido_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
393 `pedido_data` varchar(20) DEFAULT NULL,
394 `pedido_cliente` int(11) DEFAULT NULL,
395 `pedido_status` int(11) DEFAULT '2' COMMENT '1 = pendente2 = andamento3 = finalizado',
396 `pedido_total_frete` double DEFAULT NULL,
397 `pedido_frete` double(10,2) DEFAULT NULL,
398 `pedido_prazo` varchar(200) DEFAULT NULL,
399 `pedido_tipo_frete` int(11) DEFAULT '1' COMMENT '1 = pac\r\n2 = sedex\r\n3 = sedex10',
400 `pedido_pay_code` varchar(200) DEFAULT NULL,
401 `pedido_pay_situacao` int(11) DEFAULT '1' COMMENT '1 pendente\r\n2 andamento\r\n3 finalizado\r\n4 cancelado',
402 `pedido_pay_url` varchar(500) DEFAULT NULL,
403 `pedido_endereco` int(11) DEFAULT NULL,
404 `pedido_entrega` int(11) DEFAULT '1' COMMENT '1 = entrega\r\n2 = retirada\r\n',
405 `pedido_pay_gw` int(11) DEFAULT '1' COMMENT '1 pagseguro\r\n2 paypal\r\n3 paybrass\r\n4 moip\r\n5 pagtodigital',
406 `pedido_pay_meio` varchar(200) DEFAULT NULL,
407 `pedido_pay_obs` text,
408 `pedido_cupom_alfa` varchar(20) DEFAULT NULL,
409 `pedido_cupom_desconto` double DEFAULT '0',
410 `pedido_info` text,
411 `pedido_obs` text,
412 `pedido_cupom_info` varchar(300) DEFAULT NULL,
413 `pedido_total_produto` double(10,2) DEFAULT NULL,
414 `pedido_codigo_rastreio` varchar(30) DEFAULT NULL,
415 `pedido_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
416 `pedido_comprovante` varchar(200) DEFAULT NULL,
417 `pedido_total_parcelado` varchar(200) DEFAULT NULL
418) ENGINE=InnoDB DEFAULT CHARSET=utf8;
419
420-- --------------------------------------------------------
421
422--
423-- Estrutura da tabela `relacionado`
424--
425
426CREATE TABLE IF NOT EXISTS `relacionado` (
427 `relacionadoid` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
428 `produto_relacionado` int(11) NOT NULL,
429 `produto_pai` int(11) NOT NULL
430) ENGINE=InnoDB DEFAULT CHARSET=latin1;
431
432-- --------------------------------------------------------
433
434--
435-- Estrutura da tabela `relatrr`
436--
437
438CREATE TABLE IF NOT EXISTS `relatrr` (
439 `relatrr_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
440 `relatrr_item` int(11) DEFAULT NULL,
441 `relatrr_atributo` int(11) DEFAULT NULL,
442 `relatrr_iattr` int(11) DEFAULT NULL,
443 `relatrr_qtde` int(11) DEFAULT NULL,
444 `relatrr_preco` varchar(30) NOT NULL
445) ENGINE=InnoDB DEFAULT CHARSET=utf8;
446
447-- --------------------------------------------------------
448
449--
450-- Estrutura da tabela `retirada`
451--
452
453CREATE TABLE IF NOT EXISTS `retirada` (
454 `retirada_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
455 `retirada_local` varchar(200) DEFAULT NULL,
456 `retirada_horario` varchar(200) DEFAULT NULL,
457 `retirada_rua` varchar(200) DEFAULT NULL,
458 `retirada_num` varchar(20) DEFAULT NULL,
459 `retirada_complemento` varchar(200) DEFAULT NULL,
460 `retirada_bairro` varchar(200) DEFAULT NULL,
461 `retirada_cidade` varchar(200) DEFAULT NULL,
462 `retirada_uf` varchar(10) DEFAULT NULL,
463 `retirada_cep` varchar(20) DEFAULT NULL,
464 `retirada_telefone` varchar(100) DEFAULT NULL
465) ENGINE=InnoDB DEFAULT CHARSET=utf8;
466
467-- --------------------------------------------------------
468
469--
470-- Estrutura da tabela `slide`
471--
472
473CREATE TABLE IF NOT EXISTS `slide` (
474 `slide_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
475 `slide_url` varchar(100) DEFAULT '0',
476 `slide_link` varchar(500) DEFAULT NULL,
477 `slide_title` varchar(50) DEFAULT NULL,
478 `slide_desc` varchar(200) DEFAULT NULL,
479 `slide_local` int(11) DEFAULT '1' COMMENT '1= slideshow\r\n2= footer\r\n3= side',
480 `slide_target` int(1) DEFAULT '0'
481) ENGINE=InnoDB DEFAULT CHARSET=utf8;
482
483-- --------------------------------------------------------
484
485--
486-- Estrutura da tabela `smtp`
487--
488
489CREATE TABLE IF NOT EXISTS `smtp` (
490 `smtp_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
491 `smtp_host` varchar(200) DEFAULT NULL,
492 `smtp_username` varchar(100) DEFAULT NULL,
493 `smtp_password` varchar(100) DEFAULT NULL,
494 `smtp_fromname` varchar(200) DEFAULT NULL,
495 `smtp_bcc` varchar(100) DEFAULT NULL,
496 `smtp_replyto` varchar(100) DEFAULT NULL,
497 `smtp_port` int(11) DEFAULT NULL
498) ENGINE=InnoDB DEFAULT CHARSET=utf8;
499
500-- --------------------------------------------------------
501
502--
503-- Estrutura da tabela `social`
504--
505
506CREATE TABLE IF NOT EXISTS `social` (
507 `social_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
508 `social_fb` text,
509 `social_tw` text,
510 `social_in` text,
511 `social_gp` text,
512 `social_f4` text,
513 `social_yt` text,
514 `social_face` text
515) ENGINE=InnoDB DEFAULT CHARSET=utf8;
516
517-- --------------------------------------------------------
518
519--
520-- Estrutura da tabela `sub`
521--
522
523CREATE TABLE IF NOT EXISTS `sub` (
524 `sub_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
525 `sub_title` varchar(200) DEFAULT NULL,
526 `sub_url` varchar(200) DEFAULT NULL,
527 `sub_icon` varchar(200) DEFAULT NULL,
528 `sub_pos` int(11) DEFAULT '0',
529 `sub_categoria` int(11) DEFAULT NULL
530) ENGINE=InnoDB DEFAULT CHARSET=latin1;
531
532-- --------------------------------------------------------
533
534--
535-- Estrutura da tabela `user`
536--
537
538CREATE TABLE IF NOT EXISTS `user` (
539 `user_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
540 `user_login` varchar(20) DEFAULT NULL,
541 `user_password` varchar(100) DEFAULT NULL,
542 `user_email` varchar(100) DEFAULT NULL,
543 `user_name` varchar(200) DEFAULT NULL,
544 `user_level` int(11) DEFAULT '1'
545) ENGINE=InnoDB DEFAULT CHARSET=utf8;
546
547-- --------------------------------------------------------
548
549--
550-- Estrutura da tabela `versao`
551--
552
553CREATE TABLE IF NOT EXISTS `versao` (
554 `versao_num` int(5) DEFAULT NULL AUTO_INCREMENT PRIMARY KEY,
555 `versao_data` varchar(20) DEFAULT NULL,
556 `versao_update` varchar(20) DEFAULT NULL,
557 `id` int(1) NOT NULL
558) ENGINE=MyISAM DEFAULT CHARSET=utf8;