Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --
- -- Estrutura da tabela `colaboradores_cadastro`
- --
- CREATE TABLE IF NOT EXISTS `colaboradores_cadastro` (
- `idColaboradores` int(255) NOT NULL AUTO_INCREMENT,
- `StatusColaborador` tinyint(1) DEFAULT NULL,
- `Colaboradores_Setores_id_Setores` int(255) NOT NULL,
- `Colaboradores_Cargos_id_Cargos` int(255) NOT NULL,
- `usuarios_idUsuarios` int(255) NOT NULL,
- PRIMARY KEY (`idColaboradores`,`usuarios_idUsuarios`),
- KEY `fk_Colaboradores_Cadastro_Colaboradores_Setores1_idx` (`Colaboradores_Setores_id_Setores`),
- KEY `fk_Colaboradores_Cadastro_Colaboradores_Cargos1_idx` (`Colaboradores_Cargos_id_Cargos`),
- KEY `fk_Colaboradores_Cadastro_usuarios1_idx` (`usuarios_idUsuarios`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;
- --
- -- Extraindo dados da tabela `colaboradores_cadastro`
- --
- INSERT INTO `colaboradores_cadastro` (`idColaboradores`, `StatusColaborador`, `Colaboradores_Setores_id_Setores`, `Colaboradores_Cargos_id_Cargos`, `usuarios_idUsuarios`) VALUES
- (1, 1, 1, 1, 7),
- (2, 1, 2, 2, 8),
- (3, 1, 2, 2, 9),
- (4, 1, 6, 2, 7),
- (5, 1, 1, 1, 7),
- (6, 1, 1, 1, 7),
- (7, 1, 3, 2, 7),
- (8, 1, 3, 2, 7),
- (9, 1, 2, 1, 9),
- (10, 1, 3, 1, 12),
- (11, 1, 1, 5, 13);
- -- --------------------------------------------------------
- --
- -- Estrutura da tabela `colaboradores_cargos`
- --
- CREATE TABLE IF NOT EXISTS `colaboradores_cargos` (
- `id_Cargos` int(255) NOT NULL AUTO_INCREMENT,
- `NomeCargo` varchar(65) DEFAULT NULL,
- `OrdemExibicaoCargo` tinyint(25) NOT NULL,
- `StatusCargo` tinyint(1) DEFAULT NULL,
- PRIMARY KEY (`id_Cargos`),
- UNIQUE KEY `id_Cargos_UNIQUE` (`id_Cargos`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
- --
- -- Extraindo dados da tabela `colaboradores_cargos`
- --
- INSERT INTO `colaboradores_cargos` (`id_Cargos`, `NomeCargo`, `OrdemExibicaoCargo`, `StatusCargo`) VALUES
- (1, 'Analista De Sistemas', 0, 1),
- (2, 'Diretor De Arte', 0, 1),
- (3, 'Redator', 0, 0),
- (4, 'Atendente De Suporte', 0, 1),
- (5, 'Supervisor De Suporte', 0, 1),
- (6, 'Desenvolvedor', 0, 1),
- (7, 'Web Designer', 0, 1);
- -- --------------------------------------------------------
- --
- -- Estrutura da tabela `colaboradores_setores`
- --
- CREATE TABLE IF NOT EXISTS `colaboradores_setores` (
- `id_Setores` int(255) NOT NULL AUTO_INCREMENT,
- `NomeSetor` varchar(65) DEFAULT NULL,
- `OrdemExibicaoSetor` varchar(20) NOT NULL,
- `StatusSetor` tinyint(1) DEFAULT NULL,
- PRIMARY KEY (`id_Setores`),
- UNIQUE KEY `id_Setores_UNIQUE` (`id_Setores`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
- --
- -- Extraindo dados da tabela `colaboradores_setores`
- --
- INSERT INTO `colaboradores_setores` (`id_Setores`, `NomeSetor`, `OrdemExibicaoSetor`, `StatusSetor`) VALUES
- (1, 'Atendimento', '01', 1),
- (2, 'Marketing', '15', 1),
- (3, 'Desenvolvimento', '04', 1),
- (4, 'Designer', '10', 0),
- (5, 'Financeiro', '20', 1),
- (6, 'RH - Recursos Humanos', '05', 1),
- (7, 'Desenvolvimento Web', '02', 1);
- -- --------------------------------------------------------
- --
- -- Estrutura da tabela `usuarios`
- --
- CREATE TABLE IF NOT EXISTS `usuarios` (
- `idUsuarios` int(255) NOT NULL AUTO_INCREMENT,
- `Perfil` enum('Administrador','Colaborador') NOT NULL,
- `NomeUsuario` text NOT NULL,
- `SobreNomeUsuario` text NOT NULL,
- `SlugNomeusuario` text NOT NULL,
- `Nascimento` date DEFAULT NULL,
- `Senha` text NOT NULL COMMENT ' ',
- `EmailUsuario` text NOT NULL,
- `EmailAlternativoUsuario` text,
- `TelefoneCelular` text NOT NULL,
- `StatusUsuario` tinyint(1) NOT NULL,
- `DataCadastro` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
- `Facebook` text,
- `Youtube` text,
- `Twitter` text,
- `GooglePlus` text,
- `Skype` varchar(60) NOT NULL,
- `DescricaoAutor` text,
- PRIMARY KEY (`idUsuarios`),
- UNIQUE KEY `idUsuarios_UNIQUE` (`idUsuarios`),
- KEY `idUsuarios` (`idUsuarios`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=14 ;
- --
- -- Extraindo dados da tabela `usuarios`
- --
- INSERT INTO `usuarios` (`idUsuarios`, `Perfil`, `NomeUsuario`, `SobreNomeUsuario`, `SlugNomeusuario`, `Nascimento`, `Senha`, `EmailUsuario`, `EmailAlternativoUsuario`, `TelefoneCelular`, `StatusUsuario`, `DataCadastro`, `Facebook`, `Youtube`, `Twitter`, `GooglePlus`, `Skype`, `DescricaoAutor`) VALUES
- (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'),
- (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'),
- (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'),
- (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/', '', ''),
- (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),
- (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'),
- (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');
- --
- -- Constraints for dumped tables
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement