Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 6.60 KB | None | 0 0
  1.  
  2. --
  3. -- Estrutura da tabela `colaboradores_cadastro`
  4. --
  5.  
  6. CREATE TABLE IF NOT EXISTS `colaboradores_cadastro` (
  7.   `idColaboradores` int(255) NOT NULL AUTO_INCREMENT,
  8.   `StatusColaborador` tinyint(1) DEFAULT NULL,
  9.   `Colaboradores_Setores_id_Setores` int(255) NOT NULL,
  10.   `Colaboradores_Cargos_id_Cargos` int(255) NOT NULL,
  11.   `usuarios_idUsuarios` int(255) NOT NULL,
  12.   PRIMARY KEY (`idColaboradores`,`usuarios_idUsuarios`),
  13.   KEY `fk_Colaboradores_Cadastro_Colaboradores_Setores1_idx` (`Colaboradores_Setores_id_Setores`),
  14.   KEY `fk_Colaboradores_Cadastro_Colaboradores_Cargos1_idx` (`Colaboradores_Cargos_id_Cargos`),
  15.   KEY `fk_Colaboradores_Cadastro_usuarios1_idx` (`usuarios_idUsuarios`)
  16. ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;
  17.  
  18. --
  19. -- Extraindo dados da tabela `colaboradores_cadastro`
  20. --
  21.  
  22. INSERT INTO `colaboradores_cadastro` (`idColaboradores`, `StatusColaborador`, `Colaboradores_Setores_id_Setores`, `Colaboradores_Cargos_id_Cargos`, `usuarios_idUsuarios`) VALUES
  23. (1, 1, 1, 1, 7),
  24. (2, 1, 2, 2, 8),
  25. (3, 1, 2, 2, 9),
  26. (4, 1, 6, 2, 7),
  27. (5, 1, 1, 1, 7),
  28. (6, 1, 1, 1, 7),
  29. (7, 1, 3, 2, 7),
  30. (8, 1, 3, 2, 7),
  31. (9, 1, 2, 1, 9),
  32. (10, 1, 3, 1, 12),
  33. (11, 1, 1, 5, 13);
  34.  
  35. -- --------------------------------------------------------
  36.  
  37. --
  38. -- Estrutura da tabela `colaboradores_cargos`
  39. --
  40.  
  41. CREATE TABLE IF NOT EXISTS `colaboradores_cargos` (
  42.   `id_Cargos` int(255) NOT NULL AUTO_INCREMENT,
  43.   `NomeCargo` varchar(65) DEFAULT NULL,
  44.   `OrdemExibicaoCargo` tinyint(25) NOT NULL,
  45.   `StatusCargo` tinyint(1) DEFAULT NULL,
  46.   PRIMARY KEY (`id_Cargos`),
  47.   UNIQUE KEY `id_Cargos_UNIQUE` (`id_Cargos`)
  48. ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
  49.  
  50. --
  51. -- Extraindo dados da tabela `colaboradores_cargos`
  52. --
  53.  
  54. INSERT INTO `colaboradores_cargos` (`id_Cargos`, `NomeCargo`, `OrdemExibicaoCargo`, `StatusCargo`) VALUES
  55. (1, 'Analista De Sistemas', 0, 1),
  56. (2, 'Diretor De Arte', 0, 1),
  57. (3, 'Redator', 0, 0),
  58. (4, 'Atendente De Suporte', 0, 1),
  59. (5, 'Supervisor De Suporte', 0, 1),
  60. (6, 'Desenvolvedor', 0, 1),
  61. (7, 'Web Designer', 0, 1);
  62.  
  63. -- --------------------------------------------------------
  64.  
  65. --
  66. -- Estrutura da tabela `colaboradores_setores`
  67. --
  68.  
  69. CREATE TABLE IF NOT EXISTS `colaboradores_setores` (
  70.   `id_Setores` int(255) NOT NULL AUTO_INCREMENT,
  71.   `NomeSetor` varchar(65) DEFAULT NULL,
  72.   `OrdemExibicaoSetor` varchar(20) NOT NULL,
  73.   `StatusSetor` tinyint(1) DEFAULT NULL,
  74.   PRIMARY KEY (`id_Setores`),
  75.   UNIQUE KEY `id_Setores_UNIQUE` (`id_Setores`)
  76. ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
  77.  
  78. --
  79. -- Extraindo dados da tabela `colaboradores_setores`
  80. --
  81.  
  82. INSERT INTO `colaboradores_setores` (`id_Setores`, `NomeSetor`, `OrdemExibicaoSetor`, `StatusSetor`) VALUES
  83. (1, 'Atendimento', '01', 1),
  84. (2, 'Marketing', '15', 1),
  85. (3, 'Desenvolvimento', '04', 1),
  86. (4, 'Designer', '10', 0),
  87. (5, 'Financeiro', '20', 1),
  88. (6, 'RH - Recursos Humanos', '05', 1),
  89. (7, 'Desenvolvimento Web', '02', 1);
  90.  
  91. -- --------------------------------------------------------
  92.  
  93. --
  94. -- Estrutura da tabela `usuarios`
  95. --
  96.  
  97. CREATE TABLE IF NOT EXISTS `usuarios` (
  98.   `idUsuarios` int(255) NOT NULL AUTO_INCREMENT,
  99.   `Perfil` enum('Administrador','Colaborador') NOT NULL,
  100.   `NomeUsuario` text NOT NULL,
  101.   `SobreNomeUsuario` text NOT NULL,
  102.   `SlugNomeusuario` text NOT NULL,
  103.   `Nascimento` date DEFAULT NULL,
  104.   `Senha` text NOT NULL COMMENT ' ',
  105.   `EmailUsuario` text NOT NULL,
  106.   `EmailAlternativoUsuario` text,
  107.   `TelefoneCelular` text NOT NULL,
  108.   `StatusUsuario` tinyint(1) NOT NULL,
  109.   `DataCadastro` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  110.   `Facebook` text,
  111.   `Youtube` text,
  112.   `Twitter` text,
  113.   `GooglePlus` text,
  114.   `Skype` varchar(60) NOT NULL,
  115.   `DescricaoAutor` text,
  116.   PRIMARY KEY (`idUsuarios`),
  117.   UNIQUE KEY `idUsuarios_UNIQUE` (`idUsuarios`),
  118.   KEY `idUsuarios` (`idUsuarios`)
  119. ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=14 ;
  120.  
  121. --
  122. -- Extraindo dados da tabela `usuarios`
  123. --
  124.  
  125. INSERT INTO `usuarios` (`idUsuarios`, `Perfil`, `NomeUsuario`, `SobreNomeUsuario`, `SlugNomeusuario`, `Nascimento`, `Senha`, `EmailUsuario`, `EmailAlternativoUsuario`, `TelefoneCelular`, `StatusUsuario`, `DataCadastro`, `Facebook`, `Youtube`, `Twitter`, `GooglePlus`, `Skype`, `DescricaoAutor`) VALUES
  126. (7, 'Administrador', 'Alberto', 'Torres de Almeida Campos', 'alberto-torres-de-almeida-campos-787813', '1984-08-10', 'dcdf946fab33a1ddabb8821b48066432', 'overmix_rs@hotmail.com', 'overmix_rs@yahoo.com.br', '(51) 8432-5811', 1, '2016-02-29 00:01:38', 'http://www.facebook.com/', 'http://www.youtube.com/', 'http://www.twitter.com/', 'http://www.google.com/', 'Overmix', 'Uma breve descrição sobre o autor aqui'),
  127. (8, 'Administrador', 'David', 'Campos', 'david-campos-787813', '1982-08-31', 'dcdf946fab33a1ddabb8821b48066432', 'overmix_rs@hotmail.com', 'overmix_rs@yahoo.com.br', '(51) 8432-5811', 0, '2016-02-29 00:01:38', 'http://www.facebook.com/', 'http://www.youtube.com/', 'http://www.twitter.com/', 'http://www.google.com/', '', 'Uma breve descrição sobre o autor aqui'),
  128. (9, 'Administrador', 'Andre', 'Pereira', 'Andre-Pereira-787813', '1990-11-17', 'dcdf946fab33a1ddabb8821b48066432', '@gmail.com', 'overmix_rs@yahoo.com.br', '(51) 8432-5811', 1, '2016-02-29 00:01:38', 'http://www.facebook.com/', 'http://www.youtube.com/', 'http://www.twitter.com/', 'http://www.google.com/', '', 'Uma breve descrição sobre o autor aqui'),
  129. (10, 'Colaborador', 'Roger', 'Nunes', '', '1995-09-21', 'dcdf946fab33a1ddabb8821b48066432', '@gmail.com', 'overmix_rs@yahoo.com.br', '(51) 8432-5811', 1, '2016-02-29 00:01:38', 'http://www.facebook.com/', 'http://www.youtube.com/', 'http://www.twitter.com/', 'http://www.google.com/', '', ''),
  130. (11, 'Colaborador', 'Denise', 'Freitas', '', '1891-10-25', 'e7fd88d5d626fd8f783c863f3351c0d5', 'overmix@bol.com.br', 'overmix_rs@yahoo.com.br', '(51) 8432-5811', 1, '2016-03-13 18:14:27', '', '', '', '', '', NULL),
  131. (12, 'Colaborador', 'Denise', 'Fraga', 'denise-fraga-787813', '1984-08-20', 'dcdf946fab33a1ddabb8821b48066432', 'overmix_rs@hotmail.com', 'overmix_rs@yahoo.com.br', '(51) 8432-5811', 1, '2016-02-29 00:01:38', 'http://www.facebook.com/', 'http://www.youtube.com/', 'http://www.twitter.com/', 'http://www.google.com/', 'Overmix', 'Uma breve descrição sobre o autor aqui'),
  132. (13, 'Administrador', 'Larissa', 'Rodrigues', 'larissa-rodrigues-787813', '1982-08-31', 'dcdf946fab33a1ddabb8821b48066432', 'overmix_rs@hotmail.com', 'overmix_rs@yahoo.com.br', '(51) 8432-5811', 1, '2016-02-29 00:01:38', 'http://www.facebook.com/', 'http://www.youtube.com/', 'http://www.twitter.com/charlescorreaws', 'http://www.google.com/', '', 'Uma breve descrição sobre o autor aqui');
  133.  
  134. --
  135. -- Constraints for dumped tables
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement