mirror of https://github.com/MISP/MISP
consistency in MYSQL database file
parent
70cdc621e5
commit
12e36671bc
|
@ -7,12 +7,12 @@
|
|||
CREATE TABLE IF NOT EXISTS `attributes` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`event_id` int(11) NOT NULL,
|
||||
`type` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
||||
`category` varchar(255) COLLATE utf8_bin NOT NULL,
|
||||
`value1` text COLLATE utf8_bin,
|
||||
`type` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
||||
`value1` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
||||
`value2` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
||||
`to_ids` tinyint(1) NOT NULL DEFAULT '1',
|
||||
`uuid` varchar(40) COLLATE utf8_bin NOT NULL,
|
||||
`value2` text COLLATE utf8_bin,
|
||||
`timestamp` int(11) NOT NULL DEFAULT '0',
|
||||
`distribution` tinyint(4) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`),
|
||||
|
@ -46,13 +46,26 @@ CREATE TABLE IF NOT EXISTS `bruteforces` (
|
|||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `cake_sessions`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `cake_sessions` (
|
||||
`id` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||||
`data` text COLLATE utf8_bin NOT NULL,
|
||||
`expires` int(11) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `correlations`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `correlations` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`value` text COLLATE utf8_bin NOT NULL,
|
||||
`value` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
||||
`1_event_id` int(11) NOT NULL,
|
||||
`1_attribute_id` int(11) NOT NULL,
|
||||
`1_private` tinyint(1) NOT NULL DEFAULT '0',
|
||||
|
@ -77,9 +90,9 @@ CREATE TABLE IF NOT EXISTS `events` (
|
|||
`risk` enum('Undefined','Low','Medium','High') COLLATE utf8_bin NOT NULL,
|
||||
`info` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`published` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`uuid` varchar(40) COLLATE utf8_bin NOT NULL,
|
||||
`attribute_count` int(11) NOT NULL,
|
||||
`published` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`analysis` tinyint(4) NOT NULL,
|
||||
`orgc` varchar(255) COLLATE utf8_bin NOT NULL,
|
||||
`timestamp` int(11) NOT NULL DEFAULT '0',
|
||||
|
@ -132,7 +145,7 @@ CREATE TABLE IF NOT EXISTS `regexp` (
|
|||
|
||||
CREATE TABLE IF NOT EXISTS `roles` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(100) NOT NULL,
|
||||
`name` varchar(100) COLLATE utf8_bin NOT NULL,
|
||||
`created` datetime DEFAULT NULL,
|
||||
`modified` datetime DEFAULT NULL,
|
||||
`perm_add` tinyint(1) DEFAULT NULL,
|
||||
|
@ -207,11 +220,12 @@ CREATE TABLE IF NOT EXISTS `users` (
|
|||
`nids_sid` int(15) NOT NULL,
|
||||
`termsaccepted` tinyint(1) NOT NULL,
|
||||
`newsread` date NOT NULL,
|
||||
`role_id` int(11) DEFAULT NULL,
|
||||
`role_id` int(11) NOT NULL,
|
||||
`change_pw` tinyint(4) NOT NULL,
|
||||
`contactalert` tinyint(1) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `username` (`password`)
|
||||
KEY `email` (`email`),
|
||||
KEY `password` (`password`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
@ -226,20 +240,6 @@ CREATE TABLE IF NOT EXISTS `whitelist` (
|
|||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `cake_sessions`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `cake_sessions` (
|
||||
`id` varchar(255) NOT NULL DEFAULT '',
|
||||
`data` text NOT NULL,
|
||||
`expires` int(11) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
|
@ -298,4 +298,4 @@ VALUES ('3', 'User', NOW() , NOW() , '1', '1', '1' , '0' , '0' , '0' , '0' , '0'
|
|||
INSERT INTO `roles` (`id`, `name`, `created`, `modified`, `perm_add`, `perm_modify`, `perm_modify_org`, `perm_publish`, `perm_sync`, `perm_admin`, `perm_audit`, `perm_full`, `perm_auth`)
|
||||
VALUES ('4', 'Sync user', NOW(), NOW(), '1', '1', '1', '1', '1', '0', '1', '0', '1');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
-- --------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue