Commit 7c89ae0666ec2881bb6ab16fa2676d1405b25ef2
1 parent
b729f160
Exists in
master
Alterações de instruções do banco de dados
Showing
1 changed file
with
17 additions
and
17 deletions
Show diff stats
basedados/dbesiclivre.sql
@@ -25,7 +25,7 @@ USE `dbesiclivre`; | @@ -25,7 +25,7 @@ USE `dbesiclivre`; | ||
25 | -------------------------------------------------------------------------- | 25 | -------------------------------------------------------------------------- |
26 | 26 | ||
27 | 27 | ||
28 | --- Estrutura da tabela `lda_anexo` | 28 | +-- Estrutura da tabela `lda_anexo` ---------Tabela responsavel pela anexacao dos dados dos arquivos |
29 | -- | 29 | -- |
30 | 30 | ||
31 | CREATE TABLE IF NOT EXISTS `lda_anexo` ( | 31 | CREATE TABLE IF NOT EXISTS `lda_anexo` ( |
@@ -42,7 +42,7 @@ CREATE TABLE IF NOT EXISTS `lda_anexo` ( | @@ -42,7 +42,7 @@ CREATE TABLE IF NOT EXISTS `lda_anexo` ( | ||
42 | -- -------------------------------------------------------- | 42 | -- -------------------------------------------------------- |
43 | 43 | ||
44 | -- | 44 | -- |
45 | --- Estrutura da tabela `lda_configuracao` | 45 | +-- Estrutura da tabela `lda_configuracao` --- Tabela dinamica que permite alteraco das respostas , datas prorragativas |
46 | -- | 46 | -- |
47 | 47 | ||
48 | CREATE TABLE IF NOT EXISTS `lda_configuracao` ( | 48 | CREATE TABLE IF NOT EXISTS `lda_configuracao` ( |
@@ -58,7 +58,7 @@ CREATE TABLE IF NOT EXISTS `lda_configuracao` ( | @@ -58,7 +58,7 @@ CREATE TABLE IF NOT EXISTS `lda_configuracao` ( | ||
58 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | 58 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
59 | 59 | ||
60 | -- | 60 | -- |
61 | --- Extraindo dados da tabela `lda_configuracao` ----- COnfiguracao do recebimento das solicitacores | 61 | +-- Extraindo dados da tabela `lda_configuracao` ----- Configuracao do recebimento das solicitacores ------- Esta tabela e de suma importancia manter atualizada para o recebimento das solicitacoes dos usuarios e direcionamento das respostas pelo administrados , e aconselhavel seguir o modelo-------- |
62 | -- | 62 | -- |
63 | 63 | ||
64 | INSERT INTO `lda_configuracao` (`prazoresposta`, `qtdprorrogacaoresposta`, `prazosolicitacaorecurso`, `prazorespostarecurso`, `qtdeprorrogacaorecurso`, `diretorioarquivos`, `urlarquivos`, `nomeremetenteemail`, `emailremetente`) VALUES(20, 10, 10, 10, 10, '/internet/arquivos_anexos/leideacesso', 'http://portal.com.br ', 'Sistema Lei de Acesso a Informação - ORGAO', 'emailremetente@orgao.gov.br'); | 64 | INSERT INTO `lda_configuracao` (`prazoresposta`, `qtdprorrogacaoresposta`, `prazosolicitacaorecurso`, `prazorespostarecurso`, `qtdeprorrogacaorecurso`, `diretorioarquivos`, `urlarquivos`, `nomeremetenteemail`, `emailremetente`) VALUES(20, 10, 10, 10, 10, '/internet/arquivos_anexos/leideacesso', 'http://portal.com.br ', 'Sistema Lei de Acesso a Informação - ORGAO', 'emailremetente@orgao.gov.br'); |
@@ -66,7 +66,7 @@ INSERT INTO `lda_configuracao` (`prazoresposta`, `qtdprorrogacaoresposta`, `praz | @@ -66,7 +66,7 @@ INSERT INTO `lda_configuracao` (`prazoresposta`, `qtdprorrogacaoresposta`, `praz | ||
66 | -- -------------------------------------------------------- | 66 | -- -------------------------------------------------------- |
67 | 67 | ||
68 | -- | 68 | -- |
69 | --- Estrutura da tabela `lda_escolaridade` | 69 | +-- Estrutura da tabela `lda_escolaridade` --------------------- Estrutura alteravel --Responsavel por indicar indice de escolaridade |
70 | -- | 70 | -- |
71 | 71 | ||
72 | CREATE TABLE IF NOT EXISTS `lda_escolaridade` ( | 72 | CREATE TABLE IF NOT EXISTS `lda_escolaridade` ( |
@@ -76,7 +76,7 @@ CREATE TABLE IF NOT EXISTS `lda_escolaridade` ( | @@ -76,7 +76,7 @@ CREATE TABLE IF NOT EXISTS `lda_escolaridade` ( | ||
76 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='escolaridades do sistema de lei de acesso' AUTO_INCREMENT=7 ; | 76 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='escolaridades do sistema de lei de acesso' AUTO_INCREMENT=7 ; |
77 | 77 | ||
78 | -- | 78 | -- |
79 | --- Extraindo dados da tabela `lda_escolaridade` | 79 | +-- Extraindo dados da tabela `lda_escolaridade` -------- Extracao de dados |
80 | -- | 80 | -- |
81 | 81 | ||
82 | INSERT INTO `lda_escolaridade` (`idescolaridade`, `nome`) VALUES(1, 'Sem instrução formal'); | 82 | INSERT INTO `lda_escolaridade` (`idescolaridade`, `nome`) VALUES(1, 'Sem instrução formal'); |
@@ -89,7 +89,7 @@ INSERT INTO `lda_escolaridade` (`idescolaridade`, `nome`) VALUES(6, 'Mestrado/Do | @@ -89,7 +89,7 @@ INSERT INTO `lda_escolaridade` (`idescolaridade`, `nome`) VALUES(6, 'Mestrado/Do | ||
89 | -- -------------------------------------------------------- | 89 | -- -------------------------------------------------------- |
90 | 90 | ||
91 | -- | 91 | -- |
92 | --- Estrutura da tabela `lda_faixaetaria` | 92 | +-- Estrutura da tabela `lda_faixaetaria` ----------- Estrutura alteravel --Responsavel por indicar indice de faixa etaria |
93 | -- | 93 | -- |
94 | 94 | ||
95 | CREATE TABLE IF NOT EXISTS `lda_faixaetaria` ( | 95 | CREATE TABLE IF NOT EXISTS `lda_faixaetaria` ( |
@@ -99,7 +99,7 @@ CREATE TABLE IF NOT EXISTS `lda_faixaetaria` ( | @@ -99,7 +99,7 @@ CREATE TABLE IF NOT EXISTS `lda_faixaetaria` ( | ||
99 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='faixa etaria do sistema de lei de acesso' AUTO_INCREMENT=5 ; | 99 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='faixa etaria do sistema de lei de acesso' AUTO_INCREMENT=5 ; |
100 | 100 | ||
101 | -- | 101 | -- |
102 | --- Extraindo dados da tabela `lda_faixaetaria` | 102 | +-- Extraindo dados da tabela `lda_faixaetaria` ----Extracao de dados |
103 | -- | 103 | -- |
104 | 104 | ||
105 | INSERT INTO `lda_faixaetaria` (`idfaixaetaria`, `nome`) VALUES(1, 'Até 20 anos'); | 105 | INSERT INTO `lda_faixaetaria` (`idfaixaetaria`, `nome`) VALUES(1, 'Até 20 anos'); |
@@ -110,7 +110,7 @@ INSERT INTO `lda_faixaetaria` (`idfaixaetaria`, `nome`) VALUES(4, 'acima de 59 a | @@ -110,7 +110,7 @@ INSERT INTO `lda_faixaetaria` (`idfaixaetaria`, `nome`) VALUES(4, 'acima de 59 a | ||
110 | -- -------------------------------------------------------- | 110 | -- -------------------------------------------------------- |
111 | 111 | ||
112 | -- | 112 | -- |
113 | --- Estrutura da tabela `lda_movimentacao` | 113 | +-- Estrutura da tabela `lda_movimentacao` --------Estrutura alteravel --Responsavel por indicar indice de movimentacao |
114 | -- | 114 | -- |
115 | 115 | ||
116 | CREATE TABLE IF NOT EXISTS `lda_movimentacao` ( | 116 | CREATE TABLE IF NOT EXISTS `lda_movimentacao` ( |
@@ -135,7 +135,7 @@ CREATE TABLE IF NOT EXISTS `lda_movimentacao` ( | @@ -135,7 +135,7 @@ CREATE TABLE IF NOT EXISTS `lda_movimentacao` ( | ||
135 | -- -------------------------------------------------------- | 135 | -- -------------------------------------------------------- |
136 | 136 | ||
137 | -- | 137 | -- |
138 | --- Estrutura da tabela `lda_numeracao` | 138 | +-- Estrutura da tabela `lda_numeracao` -------Estrutura alteravel --Responsavel por indicar indice de numeracao |
139 | -- | 139 | -- |
140 | 140 | ||
141 | CREATE TABLE IF NOT EXISTS `lda_numeracao` ( | 141 | CREATE TABLE IF NOT EXISTS `lda_numeracao` ( |
@@ -147,7 +147,7 @@ CREATE TABLE IF NOT EXISTS `lda_numeracao` ( | @@ -147,7 +147,7 @@ CREATE TABLE IF NOT EXISTS `lda_numeracao` ( | ||
147 | -- -------------------------------------------------------- | 147 | -- -------------------------------------------------------- |
148 | 148 | ||
149 | -- | 149 | -- |
150 | --- Estrutura da tabela `lda_solicitacao` | 150 | +-- Estrutura da tabela `lda_solicitacao`--------Estrutura alteravel --Responsavel por indicar indice de solicitacao |
151 | -- | 151 | -- |
152 | 152 | ||
153 | CREATE TABLE IF NOT EXISTS `lda_solicitacao` ( | 153 | CREATE TABLE IF NOT EXISTS `lda_solicitacao` ( |
@@ -293,7 +293,7 @@ INSERT INTO `lda_tiposolicitacao` (`idtiposolicitacao`, `nome`, `idtiposolicitac | @@ -293,7 +293,7 @@ INSERT INTO `lda_tiposolicitacao` (`idtiposolicitacao`, `nome`, `idtiposolicitac | ||
293 | -- -------------------------------------------------------- | 293 | -- -------------------------------------------------------- |
294 | 294 | ||
295 | -- | 295 | -- |
296 | --- Estrutura da tabela `lda_tipotelefone` | 296 | +-- Estrutura da tabela `lda_tipotelefone` --- Estrutura alteravel --Responsavel por indicar indice de tipo telefone |
297 | -- | 297 | -- |
298 | 298 | ||
299 | CREATE TABLE IF NOT EXISTS `lda_tipotelefone` ( | 299 | CREATE TABLE IF NOT EXISTS `lda_tipotelefone` ( |
@@ -303,7 +303,7 @@ CREATE TABLE IF NOT EXISTS `lda_tipotelefone` ( | @@ -303,7 +303,7 @@ CREATE TABLE IF NOT EXISTS `lda_tipotelefone` ( | ||
303 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='escolaridades do sistema de lei de acesso' AUTO_INCREMENT=4 ; | 303 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='escolaridades do sistema de lei de acesso' AUTO_INCREMENT=4 ; |
304 | 304 | ||
305 | -- | 305 | -- |
306 | --- Extraindo dados da tabela `lda_tipotelefone` | 306 | +-- Extraindo dados da tabela `lda_tipotelefone` ---Extracao de dados |
307 | -- | 307 | -- |
308 | 308 | ||
309 | INSERT INTO `lda_tipotelefone` (`idtipotelefone`, `nome`) VALUES(1, 'Comercial'); | 309 | INSERT INTO `lda_tipotelefone` (`idtipotelefone`, `nome`) VALUES(1, 'Comercial'); |
@@ -313,7 +313,7 @@ INSERT INTO `lda_tipotelefone` (`idtipotelefone`, `nome`) VALUES(3, 'Pessoal'); | @@ -313,7 +313,7 @@ INSERT INTO `lda_tipotelefone` (`idtipotelefone`, `nome`) VALUES(3, 'Pessoal'); | ||
313 | -- -------------------------------------------------------- | 313 | -- -------------------------------------------------------- |
314 | 314 | ||
315 | -- | 315 | -- |
316 | --- Estrutura da tabela `sis_acao` | 316 | +-- Estrutura da tabela `sis_acao` -----Estrutura alteravel ----Determina a utilizacao do usuario - administrador quanto a atividade do perfil 1.Ativo 2.Inativo - Tabela deve ser configurada a partir dos padroes de privacidade definidos pelo administrador ---------- |
317 | -- | 317 | -- |
318 | 318 | ||
319 | CREATE TABLE IF NOT EXISTS `sis_acao` ( | 319 | CREATE TABLE IF NOT EXISTS `sis_acao` ( |
@@ -327,7 +327,7 @@ CREATE TABLE IF NOT EXISTS `sis_acao` ( | @@ -327,7 +327,7 @@ CREATE TABLE IF NOT EXISTS `sis_acao` ( | ||
327 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=529 ; | 327 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=529 ; |
328 | 328 | ||
329 | -- | 329 | -- |
330 | --- Extraindo dados da tabela `sis_acao` | 330 | +-- Extraindo dados da tabela `sis_acao` Extracao de dados |
331 | -- | 331 | -- |
332 | 332 | ||
333 | INSERT INTO `sis_acao` (`idacao`, `idtela`, `denominacao`, `operacao`, `status`) VALUES(4, 3, 'Adicionar', 'ADDUSR', 'A'); | 333 | INSERT INTO `sis_acao` (`idacao`, `idtela`, `denominacao`, `operacao`, `status`) VALUES(4, 3, 'Adicionar', 'ADDUSR', 'A'); |
@@ -360,7 +360,7 @@ INSERT INTO `sis_acao` (`idacao`, `idtela`, `denominacao`, `operacao`, `status`) | @@ -360,7 +360,7 @@ INSERT INTO `sis_acao` (`idacao`, `idtela`, `denominacao`, `operacao`, `status`) | ||
360 | -- -------------------------------------------------------- | 360 | -- -------------------------------------------------------- |
361 | 361 | ||
362 | -- | 362 | -- |
363 | --- Estrutura da tabela `sis_errologin` | 363 | +-- Estrutura da tabela `sis_errologin` -------- Tabela de erro ------------ Aloca a quantidade de erros por data e login ------------------ |
364 | -- | 364 | -- |
365 | 365 | ||
366 | CREATE TABLE IF NOT EXISTS `sis_errologin` ( | 366 | CREATE TABLE IF NOT EXISTS `sis_errologin` ( |
@@ -373,7 +373,7 @@ CREATE TABLE IF NOT EXISTS `sis_errologin` ( | @@ -373,7 +373,7 @@ CREATE TABLE IF NOT EXISTS `sis_errologin` ( | ||
373 | -- -------------------------------------------------------- | 373 | -- -------------------------------------------------------- |
374 | 374 | ||
375 | -- | 375 | -- |
376 | --- Estrutura da tabela `sis_grupo` | 376 | +-- Estrutura da tabela `sis_grupo` ---------- Alocacao dos dados dos usuarios ,informando a sessao do usuario e seu id para identificacao ----------- |
377 | -- | 377 | -- |
378 | 378 | ||
379 | CREATE TABLE IF NOT EXISTS `sis_grupo` ( | 379 | CREATE TABLE IF NOT EXISTS `sis_grupo` ( |
@@ -391,7 +391,7 @@ CREATE TABLE IF NOT EXISTS `sis_grupo` ( | @@ -391,7 +391,7 @@ CREATE TABLE IF NOT EXISTS `sis_grupo` ( | ||
391 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; | 391 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; |
392 | 392 | ||
393 | -- | 393 | -- |
394 | --- Extraindo dados da tabela `sis_grupo` | 394 | +-- Extraindo dados da tabela `sis_grupo` --------- |
395 | -- | 395 | -- |
396 | 396 | ||
397 | INSERT INTO `sis_grupo` (`idgrupo`, `nome`, `descricao`, `ativo`, `idusuarioinclusao`, `idusuarioalteracao`, `datainclusao`, `dataalteracao`) VALUES(1, 'Administrador Geral', 'Administra o sistema com permissão total', 1, NULL, NULL, '0000-00-00 00:00:00', '0000-00-00 00:00:00'); | 397 | INSERT INTO `sis_grupo` (`idgrupo`, `nome`, `descricao`, `ativo`, `idusuarioinclusao`, `idusuarioalteracao`, `datainclusao`, `dataalteracao`) VALUES(1, 'Administrador Geral', 'Administra o sistema com permissão total', 1, NULL, NULL, '0000-00-00 00:00:00', '0000-00-00 00:00:00'); |