SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; -- -------------------------------------------------------- -- -- Table structure for table `audit_log` -- CREATE TABLE IF NOT EXISTS `audit_log` ( `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `risk_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `message` text NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `category` -- CREATE TABLE IF NOT EXISTS `category` ( `value` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, PRIMARY KEY (`value`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ; -- -- Dumping data for table `category` -- INSERT INTO `category` (`value`, `name`) VALUES (1, 'Acesso'), (2, 'Ambiental'), (3, 'Monitoração'), (4, 'Segurança Física'), (5, 'Política e Procedimento'), (6, 'Dados Sensíveis'), (7, 'Vulnerabilidades'), (8, 'Terceiros'); -- -------------------------------------------------------- -- -- Table structure for table `close_reason` -- CREATE TABLE IF NOT EXISTS `close_reason` ( `value` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, PRIMARY KEY (`value`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; -- -- Dumping data for table `close_reason` -- INSERT INTO `close_reason` (`value`, `name`) VALUES (0, 'Rejeitado'), (1, 'Totalmente Mitigada'), (2, 'Sistema Removido'), (3, 'Cancelado'), (4, 'Muito Insignificante'); -- -------------------------------------------------------- -- -- Table structure for table `closures` -- CREATE TABLE IF NOT EXISTS `closures` ( `id` int(11) NOT NULL AUTO_INCREMENT, `risk_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `closure_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `close_reason` int(11) NOT NULL, `note` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `comments` -- CREATE TABLE IF NOT EXISTS `comments` ( `id` int(11) NOT NULL AUTO_INCREMENT, `risk_id` int(11) NOT NULL, `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `user` int(11) NOT NULL, `comment` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `CVSS_scoring` -- CREATE TABLE IF NOT EXISTS `CVSS_scoring` ( `id` int(11) NOT NULL AUTO_INCREMENT, `metric_name` varchar(30) NOT NULL, `abrv_metric_name` varchar(3) NOT NULL, `metric_value` varchar(30) NOT NULL, `abrv_metric_value` varchar(3) NOT NULL, `numeric_value` float NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=56 ; -- -- Dumping data for table `CVSS_scoring` -- INSERT INTO `CVSS_scoring` (`id`, `metric_name`, `abrv_metric_name`, `metric_value`, `abrv_metric_value`, `numeric_value`) VALUES (1, 'AccessComplexity', 'AC', 'Alto', 'H', 0.35), (2, 'AccessComplexity', 'AC', 'Médio', 'M', 0.61), (3, 'AccessComplexity', 'AC', 'Baixo', 'L', 0.71), (4, 'AccessVector', 'AV', 'Local', 'L', 0.395), (5, 'AccessVector', 'AV', 'Rede adjacente', 'A', 0.646), (6, 'AccessVector', 'AV', 'Rede', 'N', 1), (7, 'Authentication', 'Au', 'Nenhum', 'N', 0.704), (8, 'Authentication', 'Au', 'Única instância', 'S', 0.56), (9, 'Authentication', 'Au', 'Múltiplas instâncias', 'M', 0.45), (10, 'AvailabilityRequirement', 'AR', 'Indefinido', 'ND', 1), (11, 'AvailabilityRequirement', 'AR', 'Baixo', 'L', 0.5), (12, 'AvailabilityRequirement', 'AR', 'Médio', 'M', 1), (13, 'AvailabilityRequirement', 'AR', 'Alto', 'H', 1.51), (14, 'AvailImpact', 'A', 'Nenhum', 'N', 0), (15, 'AvailImpact', 'A', 'Parcial', 'P', 0.275), (16, 'AvailImpact', 'A', 'Completo', 'C', 0.66), (17, 'CollateralDamagePotential', 'CDP', 'Indefinido', 'ND', 0), (18, 'CollateralDamagePotential', 'CDP', 'Nenhum', 'N', 0), (19, 'CollateralDamagePotential', 'CDP', 'Baixo (baixa perda)', 'L', 0.1), (20, 'CollateralDamagePotential', 'CDP', 'Baixo-Médio', 'LM', 0.3), (21, 'CollateralDamagePotential', 'CDP', 'Médio-Alto', 'MH', 0.4), (22, 'CollateralDamagePotential', 'CDP', 'Alto', 'H', 0.5), (23, 'ConfidentialityRequirement', 'CR', 'Indefinido', 'ND', 1), (24, 'ConfidentialityRequirement', 'CR', 'Baixo', 'L', 0.5), (25, 'ConfidentialityRequirement', 'CR', 'Médio', 'M', 1), (26, 'ConfidentialityRequirement', 'CR', 'Alto', 'H', 1.51), (27, 'ConfImpact', 'C', 'Nenhum', 'N', 0), (28, 'ConfImpact', 'C', 'Parcial', 'P', 0.275), (29, 'ConfImpact', 'C', 'Completo', 'C', 0.66), (30, 'Exploitability', 'E', 'Indefinido', 'ND', 1), (31, 'Exploitability', 'E', 'Sem exploração existente', 'U', 0.85), (32, 'Exploitability', 'E', 'Prova de conceito de código', 'POC', 0.9), (33, 'Exploitability', 'E', 'Exploração funcional existente', 'F', 0.95), (34, 'Exploitability', 'E', 'Muito difundido', 'H', 1), (35, 'IntegImpact', 'I', 'Nenhum', 'N', 0), (36, 'IntegImpact', 'I', 'Parcial', 'P', 0.275), (37, 'IntegImpact', 'I', 'Completo', 'C', 0.66), (38, 'IntegrityRequirement', 'IR', 'Indefinido', 'ND', 1), (39, 'IntegrityRequirement', 'IR', 'Baixo', 'L', 0.5), (40, 'IntegrityRequirement', 'IR', 'Médio', 'M', 1), (41, 'IntegrityRequirement', 'IR', 'Alto', 'H', 1.51), (42, 'RemediationLevel', 'RL', 'Indefinido', 'ND', 1), (43, 'RemediationLevel', 'RL', 'Oficialmente corrigido', 'OF', 0.87), (44, 'RemediationLevel', 'RL', 'Temporariamente corrigido', 'TF', 0.9), (45, 'RemediationLevel', 'RL', 'Solução de contorno', 'W', 0.95), (46, 'RemediationLevel', 'RL', 'Indisponível', 'U', 1), (47, 'ReportConfidence', 'RC', 'Indefinido', 'ND', 1), (48, 'ReportConfidence', 'RC', 'Não confirmado', 'UC', 0.9), (49, 'ReportConfidence', 'RC', 'Não comprovado', 'UR', 0.95), (50, 'ReportConfidence', 'RC', 'Confirmado', 'C', 1), (51, 'TargetDistribution', 'TD', 'Indefinido', 'ND', 1), (52, 'TargetDistribution', 'TD', 'Nenhum (0%)', 'N', 0), (53, 'TargetDistribution', 'TD', 'Baixo (0-25%)', 'L', 0.25), (54, 'TargetDistribution', 'TD', 'Médio (26-75%)', 'M', 0.75), (55, 'TargetDistribution', 'TD', 'Alto (76-100%)', 'H', 1); -- -------------------------------------------------------- -- -- Table structure for table `impact` -- CREATE TABLE IF NOT EXISTS `impact` ( `name` varchar(20) NOT NULL, `value` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Dumping data for table `impact` -- INSERT INTO `impact` (`name`, `value`) VALUES ('Insignificante', 1), ('Menor', 2), ('Moderado', 3), ('Maior', 4), ('Extremo/Catastrófico', 5); -- -------------------------------------------------------- -- -- Table structure for table `languages` -- CREATE TABLE IF NOT EXISTS `languages` ( `value` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(2) NOT NULL, `full` varchar(50) NOT NULL, PRIMARY KEY (`value`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; -- -- Dumping data for table `languages` -- INSERT INTO `languages` (`value`, `name`, `full`) VALUES (1, 'en', 'English'), (2, 'bp', 'Brazilian Portuguese'), (3, 'es', 'Spanish'); -- -------------------------------------------------------- -- -- Table structure for table `likelihood` -- CREATE TABLE IF NOT EXISTS `likelihood` ( `name` varchar(20) NOT NULL, `value` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Dumping data for table `likelihood` -- INSERT INTO `likelihood` (`name`, `value`) VALUES ('Remoto', 1), ('Improvável', 2), ('Acreditável', 3), ('Provável', 4), ('Quase Certo', 5); -- -------------------------------------------------------- -- -- Table structure for table `location` -- CREATE TABLE IF NOT EXISTS `location` ( `value` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, PRIMARY KEY (`value`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Dumping data for table `location` -- INSERT INTO `location` (`value`, `name`) VALUES (1, 'Todos os Sites'); -- -------------------------------------------------------- -- -- Table structure for table `mgmt_reviews` -- CREATE TABLE IF NOT EXISTS `mgmt_reviews` ( `id` int(11) NOT NULL AUTO_INCREMENT, `risk_id` int(11) NOT NULL, `submission_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `review` int(11) NOT NULL, `reviewer` int(11) NOT NULL, `next_step` int(11) NOT NULL, `comments` text NOT NULL, `next_review` varchar(10) NOT NULL DEFAULT '0000-00-00', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `mitigations` -- CREATE TABLE IF NOT EXISTS `mitigations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `risk_id` int(11) NOT NULL, `submission_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `last_update` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `planning_strategy` int(11) NOT NULL, `mitigation_effort` int(11) NOT NULL, `current_solution` text NOT NULL, `security_requirements` text NOT NULL, `security_recommendations` text NOT NULL, `submitted_by` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `mitigation_effort` -- CREATE TABLE IF NOT EXISTS `mitigation_effort` ( `value` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL, PRIMARY KEY (`value`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; -- -- Dumping data for table `mitigation_effort` -- INSERT INTO `mitigation_effort` (`value`, `name`) VALUES (1, 'Trivial'), (2, 'Menor'), (3, 'Considerável'), (4, 'Significativo'), (5, 'Excepcional'); -- -------------------------------------------------------- -- -- Table structure for table `next_step` -- CREATE TABLE IF NOT EXISTS `next_step` ( `value` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, PRIMARY KEY (`value`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; -- -- Dumping data for table `next_step` -- INSERT INTO `next_step` (`value`, `name`) VALUES (1, 'Aceitar até a Próxima Revisão'), (2, 'Considerar para Projeto'), (3, 'Enviar como um Problema de Produção'); -- -------------------------------------------------------- -- -- Table structure for table `password_reset` -- CREATE TABLE IF NOT EXISTS `password_reset` ( `username` varchar(20) NOT NULL, `token` varchar(20) NOT NULL, `attempts` int(11) NOT NULL DEFAULT '0', `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `planning_strategy` -- CREATE TABLE IF NOT EXISTS `planning_strategy` ( `value` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL, PRIMARY KEY (`value`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; -- -- Dumping data for table `planning_strategy` -- INSERT INTO `planning_strategy` (`value`, `name`) VALUES (1, 'Pesquisa'), (2, 'Aceitar'), (3, 'Mitigar'), (4, 'Observar'); -- -------------------------------------------------------- -- -- Table structure for table `projects` -- CREATE TABLE IF NOT EXISTS `projects` ( `value` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `order` int(11) NOT NULL DEFAULT '999999', `status` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`value`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Dumping data for table `projects` -- INSERT INTO `projects` (`value`, `name`, `order`, `status`) VALUES (0, 'Riscos não Atribuídos', 0, 1); -- -------------------------------------------------------- -- -- Table structure for table `regulation` -- CREATE TABLE IF NOT EXISTS `regulation` ( `value` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, PRIMARY KEY (`value`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; -- -- Dumping data for table `regulation` -- INSERT INTO `regulation` (`value`, `name`) VALUES (1, 'PCI DSS'), (2, 'Sarbanes-Oxley (SOX)'), (3, 'HIPAA'), (4, 'ISO 27001'); -- -------------------------------------------------------- -- -- Table structure for table `review` -- CREATE TABLE IF NOT EXISTS `review` ( `value` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, PRIMARY KEY (`value`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -- Dumping data for table `review` -- INSERT INTO `review` (`value`, `name`) VALUES (1, 'Aprovar Risco'), (2, 'Rechazar Riesgo y Cerrar'); -- -------------------------------------------------------- -- -- Table structure for table `review_levels` -- CREATE TABLE IF NOT EXISTS `review_levels` ( `value` int(11) NOT NULL, `name` varchar(20) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Dumping data for table `review_levels` -- INSERT INTO `review_levels` (`value`, `name`) VALUES (90, 'High'), (180, 'Medium'), (360, 'Low'); -- -------------------------------------------------------- -- -- Table structure for table `risks` -- CREATE TABLE IF NOT EXISTS `risks` ( `id` int(11) NOT NULL AUTO_INCREMENT, `status` varchar(20) NOT NULL, `subject` varchar(100) NOT NULL, `reference_id` varchar(20) NOT NULL DEFAULT '', `regulation` int(11) DEFAULT NULL, `control_number` varchar(20) DEFAULT NULL, `location` int(11) NOT NULL, `category` int(11) NOT NULL, `team` int(11) NOT NULL, `technology` int(11) NOT NULL, `owner` int(11) NOT NULL, `manager` int(11) NOT NULL, `assessment` longtext NOT NULL, `notes` longtext NOT NULL, `submission_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `last_update` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `review_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `mitigation_id` int(11) NOT NULL, `mgmt_review` int(11) NOT NULL, `project_id` int(11) NOT NULL DEFAULT '0', `close_id` int(11) NOT NULL, `submitted_by` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `risk_levels` -- CREATE TABLE IF NOT EXISTS `risk_levels` ( `value` decimal(2,1) NOT NULL, `name` varchar(20) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Dumping data for table `risk_levels` -- INSERT INTO `risk_levels` (`value`, `name`) VALUES (7.0, 'High'), (4.0, 'Medium'), (0.0, 'Low'); -- -------------------------------------------------------- -- -- Table structure for table `risk_models` -- CREATE TABLE IF NOT EXISTS `risk_models` ( `value` int(11) NOT NULL, `name` varchar(50) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Dumping data for table `risk_models` -- INSERT INTO `risk_models` (`value`, `name`) VALUES (1, 'Probabilidade x Impacto + 2(Impacto)'), (2, 'Probabilidade x Impacto + Impacto'), (3, 'Probabilidade x Impacto'), (4, 'Probabilidade x Impacto + Probabilidade'), (5, 'Probabilidade x Impacto + 2(Probabilidade)'); -- -------------------------------------------------------- -- -- Table structure for table `risk_scoring` -- CREATE TABLE IF NOT EXISTS `risk_scoring` ( `id` int(11) NOT NULL, `scoring_method` int(11) NOT NULL, `calculated_risk` float NOT NULL, `CLASSIC_likelihood` float NOT NULL DEFAULT '5', `CLASSIC_impact` float NOT NULL DEFAULT '5', `CVSS_AccessVector` varchar(3) NOT NULL DEFAULT 'N', `CVSS_AccessComplexity` varchar(3) NOT NULL DEFAULT 'L', `CVSS_Authentication` varchar(3) NOT NULL DEFAULT 'N', `CVSS_ConfImpact` varchar(3) NOT NULL DEFAULT 'C', `CVSS_IntegImpact` varchar(3) NOT NULL DEFAULT 'C', `CVSS_AvailImpact` varchar(3) NOT NULL DEFAULT 'C', `CVSS_Exploitability` varchar(3) NOT NULL DEFAULT 'ND', `CVSS_RemediationLevel` varchar(3) NOT NULL DEFAULT 'ND', `CVSS_ReportConfidence` varchar(3) NOT NULL DEFAULT 'ND', `CVSS_CollateralDamagePotential` varchar(3) NOT NULL DEFAULT 'ND', `CVSS_TargetDistribution` varchar(3) NOT NULL DEFAULT 'ND', `CVSS_ConfidentialityRequirement` varchar(3) NOT NULL DEFAULT 'ND', `CVSS_IntegrityRequirement` varchar(3) NOT NULL DEFAULT 'ND', `CVSS_AvailabilityRequirement` varchar(3) NOT NULL DEFAULT 'ND', `DREAD_DamagePotential` int(11) DEFAULT '10', `DREAD_Reproducibility` int(11) DEFAULT '10', `DREAD_Exploitability` int(11) DEFAULT '10', `DREAD_AffectedUsers` int(11) DEFAULT '10', `DREAD_Discoverability` int(11) DEFAULT '10', `OWASP_SkillLevel` int(11) DEFAULT '10', `OWASP_Motive` int(11) DEFAULT '10', `OWASP_Opportunity` int(11) DEFAULT '10', `OWASP_Size` int(11) DEFAULT '10', `OWASP_EaseOfDiscovery` int(11) DEFAULT '10', `OWASP_EaseOfExploit` int(11) DEFAULT '10', `OWASP_Awareness` int(11) DEFAULT '10', `OWASP_IntrusionDetection` int(11) DEFAULT '10', `OWASP_LossOfConfidentiality` int(11) DEFAULT '10', `OWASP_LossOfIntegrity` int(11) DEFAULT '10', `OWASP_LossOfAvailability` int(11) DEFAULT '10', `OWASP_LossOfAccountability` int(11) DEFAULT '10', `OWASP_FinancialDamage` int(11) DEFAULT '10', `OWASP_ReputationDamage` int(11) DEFAULT '10', `OWASP_NonCompliance` int(11) DEFAULT '10', `OWASP_PrivacyViolation` int(11) DEFAULT '10', `Custom` float DEFAULT '10', UNIQUE KEY `id` (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `sessions` -- CREATE TABLE IF NOT EXISTS `sessions` ( `id` varchar(32) NOT NULL, `access` int(10) unsigned DEFAULT NULL, `data` text, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `settings` -- CREATE TABLE IF NOT EXISTS `settings` ( `name` varchar(20) NOT NULL, `value` varchar(40) NOT NULL, PRIMARY KEY (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Dumping data for table `settings` -- INSERT INTO `settings` (`name`, `value`) VALUES ('risk_model', '3'), ('db_version', '20140728-001'); -- -------------------------------------------------------- -- -- Table structure for table `team` -- CREATE TABLE IF NOT EXISTS `team` ( `value` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, PRIMARY KEY (`value`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ; -- -- Dumping data for table `team` -- INSERT INTO `team` (`value`, `name`) VALUES (1, 'Gestão de Filial'), (2, 'Colaboração'), (3, 'Data Center & Storage'), (4, 'Banco de Dados'), (5, 'Segurança da Informação'), (6, 'Sistemas de Gestão de TI'), (7, 'Rede'), (8, 'Unix'), (9, 'Sistemas Web'), (10, 'Windows'); -- -------------------------------------------------------- -- -- Table structure for table `technology` -- CREATE TABLE IF NOT EXISTS `technology` ( `value` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, PRIMARY KEY (`value`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=20 ; -- -- Dumping data for table `technology` -- INSERT INTO `technology` (`value`, `name`) VALUES (1, 'All'), (2, 'Anti-Virus'), (3, 'Backups'), (4, 'Smartphone'), (5, 'Switche'), (6, 'Datacenter'), (7, 'Rota de E-mail'), (8, 'Colaboração em Tempo Real'), (9, 'Mensagens'), (10, 'Dispositivo Móvel'), (11, 'Rede'), (12, 'Energia'), (13, 'Acesso Remoto'), (14, 'Servidor de Arquivos'), (15, 'Telefonia'), (16, 'Unix'), (17, 'Virtualização'), (18, 'Web'), (19, 'Windows'); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE IF NOT EXISTS `user` ( `value` int(11) NOT NULL AUTO_INCREMENT, `enabled` tinyint(1) NOT NULL DEFAULT '1', `type` varchar(20) NOT NULL DEFAULT 'simplerisk', `username` varchar(20) NOT NULL, `name` varchar(50) NOT NULL, `email` varchar(200) NOT NULL, `salt` varchar(20) DEFAULT NULL, `password` binary(60) NOT NULL, `last_login` datetime NOT NULL, `teams` varchar(200) NOT NULL DEFAULT 'none', `lang` varchar(2) DEFAULT NULL, `admin` tinyint(1) NOT NULL DEFAULT '0', `review_high` tinyint(1) NOT NULL DEFAULT '0', `review_medium` tinyint(1) NOT NULL DEFAULT '0', `review_low` tinyint(1) NOT NULL DEFAULT '0', `submit_risks` tinyint(1) NOT NULL DEFAULT '0', `modify_risks` tinyint(1) NOT NULL DEFAULT '0', `plan_mitigations` tinyint(1) NOT NULL DEFAULT '0', `close_risks` tinyint(1) NOT NULL DEFAULT '1', `multi_factor` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`value`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Dumping data for table `user` -- INSERT INTO `user` (`value`, `enabled`, `type`, `username`, `name`, `email`, `salt`, `password`, `last_login`, `teams`, `lang`, `admin`, `review_high`, `review_medium`, `review_low`, `submit_risks`, `modify_risks`, `plan_mitigations`, `close_risks`, `multi_factor`) VALUES (1, 1, 'simplerisk', 'admin', 'Admin', 'user@example.com', 'sAbwTbIFywWKcheyQw9a', '$2a$15$7b2601b4979b1ad031b2fuqf1XkeSa4iNxsHK27tq5Va2jLhzkShW', '2014-07-28 00:00:00', 'all', NULL, 1, 1, 1, 1, 1, 1, 1, 1, 1);