forked from velhobit/PortilloMail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathestrutura.sql
111 lines (91 loc) · 3.6 KB
/
estrutura.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
--
-- Estrutura da tabela `cliques`
--
CREATE TABLE IF NOT EXISTS `cliques` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`contato` varchar(200) COLLATE utf8_bin NOT NULL,
`mensagem` varchar(20) COLLATE utf8_bin NOT NULL,
`data_hora` datetime NOT NULL,
`link` varchar(200) COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=22 ;
-- --------------------------------------------------------
--
-- Estrutura da tabela `contatos`
--
CREATE TABLE IF NOT EXISTS `contatos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(60) COLLATE utf8_bin NOT NULL,
`nome` varchar(60) COLLATE utf8_bin NOT NULL,
`telefone` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`grupo` varchar(200) COLLATE utf8_bin NOT NULL,
`aut` int(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=31 ;
-- --------------------------------------------------------
--
-- Estrutura da tabela `grupos`
--
CREATE TABLE IF NOT EXISTS `grupos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`titulo` varchar(200) COLLATE utf8_bin NOT NULL,
`descricao` varchar(500) COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=24 ;
-- --------------------------------------------------------
--
-- Estrutura da tabela `mensagens`
--
CREATE TABLE IF NOT EXISTS `mensagens` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`grupos` varchar(500) COLLATE utf8_bin NOT NULL,
`emails_adicionais` varchar(1000) COLLATE utf8_bin NOT NULL,
`mensagem` text COLLATE utf8_bin NOT NULL,
`assunto` varchar(200) COLLATE utf8_bin NOT NULL,
`email_envio` varchar(5) COLLATE utf8_bin NOT NULL,
`status` varchar(1) COLLATE utf8_bin NOT NULL,
`data_envio_ini` datetime NOT NULL,
`data_envio_fin` datetime NOT NULL,
`data_atualizacao` datetime NOT NULL,
`obs` varchar(500) COLLATE utf8_bin NOT NULL,
`url` text COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=18 ;
-- --------------------------------------------------------
--
-- Estrutura da tabela `restantes`
--
CREATE TABLE IF NOT EXISTS `restantes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`mensagem` varchar(10) COLLATE utf8_bin NOT NULL,
`email` varchar(200) COLLATE utf8_bin NOT NULL,
`enviado` varchar(1) COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=91 ;
-- --------------------------------------------------------
--
-- Estrutura da tabela `setores`
--
CREATE TABLE IF NOT EXISTS `setores` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nome` varchar(240) COLLATE utf8_bin NOT NULL,
`email` varchar(240) COLLATE utf8_bin NOT NULL,
`obs` text COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=2 ;
-- --------------------------------------------------------
--
-- Estrutura da tabela `usuarios`
--
CREATE TABLE IF NOT EXISTS `usuarios` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nome` varchar(200) COLLATE utf8_bin NOT NULL,
`email` varchar(200) COLLATE utf8_bin NOT NULL,
`setores` varchar(200) COLLATE utf8_bin NOT NULL,
`senha` varchar(100) COLLATE utf8_bin NOT NULL,
`senha_email` varchar(100) COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=4 ;
/*!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 */;