|
|
|
@@ -23,7 +23,7 @@ CREATE TABLE `app_config_json` (
|
|
|
|
|
UNIQUE KEY `id` (`id`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
|
INSERT INTO `app_config_json` VALUES (1,'{\"org_info\": {\"org_name\": \"\", \"org_logo_url\": \"\"}, \"sso_settings\": {\"idp_name\": \"\", \"metadata\": \"\", \"entity_id\": \"\", \"enable_sso\": false, \"issuer_uri\": \"\", \"metadata_url\": \"\", \"idp_image_url\": \"\", \"enable_sso_idp_login\": false}, \"agent_options\": {\"config\": {\"options\": {\"logger_plugin\": \"tls\", \"pack_delimiter\": \"/\", \"logger_tls_period\": 10, \"distributed_plugin\": \"tls\", \"disable_distributed\": false, \"logger_tls_endpoint\": \"/api/v1/osquery/log\", \"distributed_interval\": 10, \"distributed_tls_max_attempts\": 3}, \"decorators\": {\"load\": [\"SELECT uuid AS host_uuid FROM system_info;\", \"SELECT hostname AS hostname FROM system_info;\"]}}, \"overrides\": {}}, \"host_settings\": {\"enable_host_users\": true, \"enable_software_inventory\": false}, \"smtp_settings\": {\"port\": 587, \"domain\": \"\", \"server\": \"\", \"password\": \"\", \"user_name\": \"\", \"configured\": false, \"enable_smtp\": false, \"enable_ssl_tls\": true, \"sender_address\": \"\", \"enable_start_tls\": true, \"verify_ssl_certs\": true, \"authentication_type\": \"0\", \"authentication_method\": \"0\"}, \"server_settings\": {\"server_url\": \"\", \"enable_analytics\": false, \"live_query_disabled\": false}, \"host_expiry_settings\": {\"host_expiry_window\": 0, \"host_expiry_enabled\": false}, \"vulnerability_settings\": {\"databases_path\": \"\"}}','2021-08-20 11:56:14','2021-08-20 11:56:14');
|
|
|
|
|
INSERT INTO `app_config_json` VALUES (1,'{\"org_info\": {\"org_name\": \"\", \"org_logo_url\": \"\"}, \"sso_settings\": {\"idp_name\": \"\", \"metadata\": \"\", \"entity_id\": \"\", \"enable_sso\": false, \"issuer_uri\": \"\", \"metadata_url\": \"\", \"idp_image_url\": \"\", \"enable_sso_idp_login\": false}, \"agent_options\": {\"config\": {\"options\": {\"logger_plugin\": \"tls\", \"pack_delimiter\": \"/\", \"logger_tls_period\": 10, \"distributed_plugin\": \"tls\", \"disable_distributed\": false, \"logger_tls_endpoint\": \"/api/v1/osquery/log\", \"distributed_interval\": 10, \"distributed_tls_max_attempts\": 3}, \"decorators\": {\"load\": [\"SELECT uuid AS host_uuid FROM system_info;\", \"SELECT hostname AS hostname FROM system_info;\"]}}, \"overrides\": {}}, \"host_settings\": {\"enable_host_users\": true, \"enable_software_inventory\": false}, \"smtp_settings\": {\"port\": 587, \"domain\": \"\", \"server\": \"\", \"password\": \"\", \"user_name\": \"\", \"configured\": false, \"enable_smtp\": false, \"enable_ssl_tls\": true, \"sender_address\": \"\", \"enable_start_tls\": true, \"verify_ssl_certs\": true, \"authentication_type\": \"0\", \"authentication_method\": \"0\"}, \"server_settings\": {\"server_url\": \"\", \"enable_analytics\": false, \"live_query_disabled\": false}, \"host_expiry_settings\": {\"host_expiry_window\": 0, \"host_expiry_enabled\": false}, \"vulnerability_settings\": {\"databases_path\": \"\"}}','2021-08-20 17:32:00','2021-08-20 17:32:00');
|
|
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
|
|
|
CREATE TABLE `app_configs` (
|
|
|
|
@@ -158,7 +158,10 @@ CREATE TABLE `host_additional` (
|
|
|
|
|
CREATE TABLE `host_software` (
|
|
|
|
|
`host_id` int(10) unsigned NOT NULL,
|
|
|
|
|
`software_id` bigint(20) unsigned NOT NULL,
|
|
|
|
|
PRIMARY KEY (`host_id`,`software_id`)
|
|
|
|
|
PRIMARY KEY (`host_id`,`software_id`),
|
|
|
|
|
KEY `host_software_software_fk` (`software_id`),
|
|
|
|
|
CONSTRAINT `host_software_ibfk_1` FOREIGN KEY (`host_id`) REFERENCES `hosts` (`id`) ON DELETE CASCADE,
|
|
|
|
|
CONSTRAINT `host_software_ibfk_2` FOREIGN KEY (`software_id`) REFERENCES `software` (`id`) ON DELETE CASCADE
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
@@ -217,6 +220,8 @@ CREATE TABLE `hosts` (
|
|
|
|
|
`last_enrolled_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
|
|
|
`refetch_requested` tinyint(1) NOT NULL DEFAULT '0',
|
|
|
|
|
`team_id` int(10) unsigned DEFAULT NULL,
|
|
|
|
|
`gigs_disk_space_available` float NOT NULL DEFAULT '0',
|
|
|
|
|
`percent_disk_space_available` float NOT NULL DEFAULT '0',
|
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
|
UNIQUE KEY `idx_osquery_host_id` (`osquery_host_id`),
|
|
|
|
|
UNIQUE KEY `idx_host_unique_nodekey` (`node_key`),
|
|
|
|
@@ -306,9 +311,9 @@ CREATE TABLE `migration_status_tables` (
|
|
|
|
|
`tstamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
|
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
|
UNIQUE KEY `id` (`id`)
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=98 DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4;
|
|
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
|
INSERT INTO `migration_status_tables` VALUES (1,0,1,'2021-08-20 11:56:10'),(2,20161118193812,1,'2021-08-20 11:56:10'),(3,20161118211713,1,'2021-08-20 11:56:10'),(4,20161118212436,1,'2021-08-20 11:56:10'),(5,20161118212515,1,'2021-08-20 11:56:10'),(6,20161118212528,1,'2021-08-20 11:56:10'),(7,20161118212538,1,'2021-08-20 11:56:10'),(8,20161118212549,1,'2021-08-20 11:56:10'),(9,20161118212557,1,'2021-08-20 11:56:10'),(10,20161118212604,1,'2021-08-20 11:56:10'),(11,20161118212613,1,'2021-08-20 11:56:10'),(12,20161118212621,1,'2021-08-20 11:56:10'),(13,20161118212630,1,'2021-08-20 11:56:10'),(14,20161118212641,1,'2021-08-20 11:56:10'),(15,20161118212649,1,'2021-08-20 11:56:10'),(16,20161118212656,1,'2021-08-20 11:56:10'),(17,20161118212758,1,'2021-08-20 11:56:10'),(18,20161128234849,1,'2021-08-20 11:56:10'),(19,20161230162221,1,'2021-08-20 11:56:10'),(20,20170104113816,1,'2021-08-20 11:56:11'),(21,20170105151732,1,'2021-08-20 11:56:11'),(22,20170108191242,1,'2021-08-20 11:56:11'),(23,20170109094020,1,'2021-08-20 11:56:11'),(24,20170109130438,1,'2021-08-20 11:56:11'),(25,20170110202752,1,'2021-08-20 11:56:11'),(26,20170111133013,1,'2021-08-20 11:56:11'),(27,20170117025759,1,'2021-08-20 11:56:11'),(28,20170118191001,1,'2021-08-20 11:56:11'),(29,20170119234632,1,'2021-08-20 11:56:11'),(30,20170124230432,1,'2021-08-20 11:56:11'),(31,20170127014618,1,'2021-08-20 11:56:11'),(32,20170131232841,1,'2021-08-20 11:56:11'),(33,20170223094154,1,'2021-08-20 11:56:11'),(34,20170306075207,1,'2021-08-20 11:56:11'),(35,20170309100733,1,'2021-08-20 11:56:11'),(36,20170331111922,1,'2021-08-20 11:56:11'),(37,20170502143928,1,'2021-08-20 11:56:11'),(38,20170504130602,1,'2021-08-20 11:56:12'),(39,20170509132100,1,'2021-08-20 11:56:12'),(40,20170519105647,1,'2021-08-20 11:56:12'),(41,20170519105648,1,'2021-08-20 11:56:12'),(42,20170831234300,1,'2021-08-20 11:56:12'),(43,20170831234301,1,'2021-08-20 11:56:12'),(44,20170831234303,1,'2021-08-20 11:56:12'),(45,20171116163618,1,'2021-08-20 11:56:12'),(46,20171219164727,1,'2021-08-20 11:56:12'),(47,20180620164811,1,'2021-08-20 11:56:12'),(48,20180620175054,1,'2021-08-20 11:56:12'),(49,20180620175055,1,'2021-08-20 11:56:12'),(50,20191010101639,1,'2021-08-20 11:56:12'),(51,20191010155147,1,'2021-08-20 11:56:12'),(52,20191220130734,1,'2021-08-20 11:56:12'),(53,20200311140000,1,'2021-08-20 11:56:12'),(54,20200405120000,1,'2021-08-20 11:56:12'),(55,20200407120000,1,'2021-08-20 11:56:12'),(56,20200420120000,1,'2021-08-20 11:56:12'),(57,20200504120000,1,'2021-08-20 11:56:12'),(58,20200512120000,1,'2021-08-20 11:56:12'),(59,20200707120000,1,'2021-08-20 11:56:12'),(60,20201011162341,1,'2021-08-20 11:56:13'),(61,20201021104586,1,'2021-08-20 11:56:13'),(62,20201102112520,1,'2021-08-20 11:56:13'),(63,20201208121729,1,'2021-08-20 11:56:13'),(64,20201215091637,1,'2021-08-20 11:56:13'),(65,20210119174155,1,'2021-08-20 11:56:13'),(66,20210326182902,1,'2021-08-20 11:56:13'),(67,20210421112652,1,'2021-08-20 11:56:13'),(68,20210506095025,1,'2021-08-20 11:56:13'),(69,20210513115729,1,'2021-08-20 11:56:13'),(70,20210526113559,1,'2021-08-20 11:56:13'),(71,20210601000001,1,'2021-08-20 11:56:13'),(72,20210601000002,1,'2021-08-20 11:56:13'),(73,20210601000003,1,'2021-08-20 11:56:13'),(74,20210601000004,1,'2021-08-20 11:56:13'),(75,20210601000005,1,'2021-08-20 11:56:13'),(76,20210601000006,1,'2021-08-20 11:56:13'),(77,20210601000007,1,'2021-08-20 11:56:13'),(78,20210601000008,1,'2021-08-20 11:56:13'),(79,20210606151329,1,'2021-08-20 11:56:13'),(80,20210616163757,1,'2021-08-20 11:56:13'),(81,20210617174723,1,'2021-08-20 11:56:13'),(82,20210622160235,1,'2021-08-20 11:56:14'),(83,20210623100031,1,'2021-08-20 11:56:14'),(84,20210623133615,1,'2021-08-20 11:56:14'),(85,20210708143152,1,'2021-08-20 11:56:14'),(86,20210709124443,1,'2021-08-20 11:56:14'),(87,20210712155608,1,'2021-08-20 11:56:14'),(88,20210714102108,1,'2021-08-20 11:56:14'),(89,20210719153709,1,'2021-08-20 11:56:14'),(90,20210721171531,1,'2021-08-20 11:56:14'),(91,20210723135713,1,'2021-08-20 11:56:14'),(92,20210802135933,1,'2021-08-20 11:56:14'),(93,20210806112844,1,'2021-08-20 11:56:14'),(94,20210810095603,1,'2021-08-20 11:56:14'),(95,20210811150223,1,'2021-08-20 11:56:14'),(96,20210816141251,1,'2021-08-20 11:56:14'),(97,20210818151827,1,'2021-08-20 11:56:14');
|
|
|
|
|
INSERT INTO `migration_status_tables` VALUES (1,0,1,'2021-08-20 17:31:56'),(2,20161118193812,1,'2021-08-20 17:31:56'),(3,20161118211713,1,'2021-08-20 17:31:56'),(4,20161118212436,1,'2021-08-20 17:31:56'),(5,20161118212515,1,'2021-08-20 17:31:56'),(6,20161118212528,1,'2021-08-20 17:31:56'),(7,20161118212538,1,'2021-08-20 17:31:57'),(8,20161118212549,1,'2021-08-20 17:31:57'),(9,20161118212557,1,'2021-08-20 17:31:57'),(10,20161118212604,1,'2021-08-20 17:31:57'),(11,20161118212613,1,'2021-08-20 17:31:57'),(12,20161118212621,1,'2021-08-20 17:31:57'),(13,20161118212630,1,'2021-08-20 17:31:57'),(14,20161118212641,1,'2021-08-20 17:31:57'),(15,20161118212649,1,'2021-08-20 17:31:57'),(16,20161118212656,1,'2021-08-20 17:31:57'),(17,20161118212758,1,'2021-08-20 17:31:57'),(18,20161128234849,1,'2021-08-20 17:31:57'),(19,20161230162221,1,'2021-08-20 17:31:57'),(20,20170104113816,1,'2021-08-20 17:31:57'),(21,20170105151732,1,'2021-08-20 17:31:57'),(22,20170108191242,1,'2021-08-20 17:31:57'),(23,20170109094020,1,'2021-08-20 17:31:57'),(24,20170109130438,1,'2021-08-20 17:31:57'),(25,20170110202752,1,'2021-08-20 17:31:57'),(26,20170111133013,1,'2021-08-20 17:31:57'),(27,20170117025759,1,'2021-08-20 17:31:57'),(28,20170118191001,1,'2021-08-20 17:31:57'),(29,20170119234632,1,'2021-08-20 17:31:57'),(30,20170124230432,1,'2021-08-20 17:31:57'),(31,20170127014618,1,'2021-08-20 17:31:57'),(32,20170131232841,1,'2021-08-20 17:31:57'),(33,20170223094154,1,'2021-08-20 17:31:57'),(34,20170306075207,1,'2021-08-20 17:31:58'),(35,20170309100733,1,'2021-08-20 17:31:58'),(36,20170331111922,1,'2021-08-20 17:31:58'),(37,20170502143928,1,'2021-08-20 17:31:58'),(38,20170504130602,1,'2021-08-20 17:31:58'),(39,20170509132100,1,'2021-08-20 17:31:58'),(40,20170519105647,1,'2021-08-20 17:31:58'),(41,20170519105648,1,'2021-08-20 17:31:58'),(42,20170831234300,1,'2021-08-20 17:31:58'),(43,20170831234301,1,'2021-08-20 17:31:58'),(44,20170831234303,1,'2021-08-20 17:31:58'),(45,20171116163618,1,'2021-08-20 17:31:58'),(46,20171219164727,1,'2021-08-20 17:31:58'),(47,20180620164811,1,'2021-08-20 17:31:58'),(48,20180620175054,1,'2021-08-20 17:31:58'),(49,20180620175055,1,'2021-08-20 17:31:58'),(50,20191010101639,1,'2021-08-20 17:31:58'),(51,20191010155147,1,'2021-08-20 17:31:59'),(52,20191220130734,1,'2021-08-20 17:31:59'),(53,20200311140000,1,'2021-08-20 17:31:59'),(54,20200405120000,1,'2021-08-20 17:31:59'),(55,20200407120000,1,'2021-08-20 17:31:59'),(56,20200420120000,1,'2021-08-20 17:31:59'),(57,20200504120000,1,'2021-08-20 17:31:59'),(58,20200512120000,1,'2021-08-20 17:31:59'),(59,20200707120000,1,'2021-08-20 17:31:59'),(60,20201011162341,1,'2021-08-20 17:31:59'),(61,20201021104586,1,'2021-08-20 17:31:59'),(62,20201102112520,1,'2021-08-20 17:31:59'),(63,20201208121729,1,'2021-08-20 17:31:59'),(64,20201215091637,1,'2021-08-20 17:31:59'),(65,20210119174155,1,'2021-08-20 17:31:59'),(66,20210326182902,1,'2021-08-20 17:31:59'),(67,20210421112652,1,'2021-08-20 17:31:59'),(68,20210506095025,1,'2021-08-20 17:31:59'),(69,20210513115729,1,'2021-08-20 17:32:00'),(70,20210526113559,1,'2021-08-20 17:32:00'),(71,20210601000001,1,'2021-08-20 17:32:00'),(72,20210601000002,1,'2021-08-20 17:32:00'),(73,20210601000003,1,'2021-08-20 17:32:00'),(74,20210601000004,1,'2021-08-20 17:32:00'),(75,20210601000005,1,'2021-08-20 17:32:00'),(76,20210601000006,1,'2021-08-20 17:32:00'),(77,20210601000007,1,'2021-08-20 17:32:00'),(78,20210601000008,1,'2021-08-20 17:32:00'),(79,20210606151329,1,'2021-08-20 17:32:00'),(80,20210616163757,1,'2021-08-20 17:32:00'),(81,20210617174723,1,'2021-08-20 17:32:00'),(82,20210622160235,1,'2021-08-20 17:32:00'),(83,20210623100031,1,'2021-08-20 17:32:00'),(84,20210623133615,1,'2021-08-20 17:32:00'),(85,20210708143152,1,'2021-08-20 17:32:00'),(86,20210709124443,1,'2021-08-20 17:32:00'),(87,20210712155608,1,'2021-08-20 17:32:00'),(88,20210714102108,1,'2021-08-20 17:32:00'),(89,20210719153709,1,'2021-08-20 17:32:00'),(90,20210721171531,1,'2021-08-20 17:32:00'),(91,20210723135713,1,'2021-08-20 17:32:00'),(92,20210802135933,1,'2021-08-20 17:32:00'),(93,20210806112844,1,'2021-08-20 17:32:00'),(94,20210810095603,1,'2021-08-20 17:32:00'),(95,20210811150223,1,'2021-08-20 17:32:00'),(96,20210816141251,1,'2021-08-20 17:32:00'),(97,20210818151827,1,'2021-08-20 17:32:00'),(98,20210818182258,1,'2021-08-20 17:32:01'),(99,20210819131107,1,'2021-08-20 17:32:01');
|
|
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
|
|
|
CREATE TABLE `network_interfaces` (
|
|
|
|
|