139 lines
6.1 KiB
SQL
139 lines
6.1 KiB
SQL
-- MariaDB dump 10.19 Distrib 10.5.16-MariaDB, for Linux (x86_64)
|
|
--
|
|
-- Host: localhost Database: registry
|
|
-- ------------------------------------------------------
|
|
-- Server version 10.5.16-MariaDB
|
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
|
/*!40101 SET NAMES utf8mb4 */;
|
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
|
|
|
--
|
|
-- Table structure for table `hosts`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `hosts`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `hosts` (
|
|
`host_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`hostname` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`host_id`),
|
|
UNIQUE KEY `hosts_UN` (`hostname`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `hosts`
|
|
--
|
|
|
|
LOCK TABLES `hosts` WRITE;
|
|
/*!40000 ALTER TABLE `hosts` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `hosts` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `labels`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `labels`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `labels` (
|
|
`label_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`host_id` int(11) NOT NULL,
|
|
`label_name` text NOT NULL,
|
|
`label_value` text NOT NULL,
|
|
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
|
`last_modified` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(),
|
|
PRIMARY KEY (`label_id`),
|
|
KEY `labels_FK` (`host_id`),
|
|
CONSTRAINT `labels_FK` FOREIGN KEY (`host_id`) REFERENCES `hosts` (`host_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `labels`
|
|
--
|
|
|
|
LOCK TABLES `labels` WRITE;
|
|
/*!40000 ALTER TABLE `labels` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `labels` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `targets`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `targets`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `targets` (
|
|
`target_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`target` varchar(255) NOT NULL,
|
|
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
|
`modified_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(),
|
|
`y` int(11) NOT NULL DEFAULT 1,
|
|
PRIMARY KEY (`target_id`),
|
|
UNIQUE KEY `targets_UN` (`target`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `targets`
|
|
--
|
|
|
|
LOCK TABLES `targets` WRITE;
|
|
/*!40000 ALTER TABLE `targets` DISABLE KEYS */;
|
|
INSERT INTO `targets` VALUES (3,'expired.badssl.com:443','2023-06-24 14:58:41','2023-06-24 18:31:00',0),(4,'self-signed.badssl.com:443','2023-06-24 17:25:25','2023-06-24 18:31:00',0),(5,'8.8.8.8:443','2023-06-24 18:28:57',NULL,1),(6,'8.8.4.4:443','2023-06-24 18:28:57',NULL,1);
|
|
/*!40000 ALTER TABLE `targets` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `targets_lables`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `targets_lables`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `targets_lables` (
|
|
`label_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`target_id` int(11) NOT NULL,
|
|
`label_key` text NOT NULL,
|
|
`label_value` text NOT NULL,
|
|
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
|
`modified_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(),
|
|
PRIMARY KEY (`label_id`),
|
|
KEY `targets_lables_FK` (`target_id`),
|
|
CONSTRAINT `targets_lables_FK` FOREIGN KEY (`target_id`) REFERENCES `targets` (`target_id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `targets_lables`
|
|
--
|
|
|
|
LOCK TABLES `targets_lables` WRITE;
|
|
/*!40000 ALTER TABLE `targets_lables` DISABLE KEYS */;
|
|
INSERT INTO `targets_lables` VALUES (5,3,'hostname','expired.badssl.com','2023-06-24 14:58:56','2023-06-24 17:48:04'),(6,3,'target_type','blackbox-tcp_connect_tls','2023-06-24 14:59:36','2023-06-24 17:45:15'),(8,4,'target_type','blackbox-tcp_connect_tls','2023-06-24 17:25:58','2023-06-24 17:45:15'),(9,4,'hostname','self-signed.badssl.com','2023-06-24 17:26:01','2023-06-24 17:48:04'),(10,3,'datacenter','ASN','2023-06-24 17:48:36',NULL),(11,4,'datacenter','ASN','2023-06-24 17:48:36',NULL),(12,4,'target_type','blackbox-tcp','2023-06-24 17:50:47','2023-06-24 17:51:30'),(13,3,'target_type','blackbox-tcp','2023-06-24 17:50:47','2023-06-24 17:51:30'),(14,4,'target_type','blackbox-http_2xx_3xx_403','2023-06-24 17:51:30',NULL),(15,3,'target_type','blackbox-http_2xx_3xx_403','2023-06-24 17:51:30',NULL),(16,4,'target_type','blackbox-icmp','2023-06-24 17:52:20',NULL),(17,3,'target_type','blackbox-icmp','2023-06-24 17:52:20',NULL),(18,4,'target_type','blackbox-tcp','2023-06-24 17:52:53',NULL),(19,3,'target_type','blackbox-tcp','2023-06-24 17:52:53',NULL),(20,5,'target_type','blackbox-icmp','2023-06-24 18:29:42',NULL),(21,5,'hostname','8.8.8.8','2023-06-24 18:29:42',NULL),(22,6,'target_type','blackbox-icmp','2023-06-24 18:29:42',NULL),(23,6,'hostname','8.8.4.4','2023-06-24 18:29:42',NULL);
|
|
/*!40000 ALTER TABLE `targets_lables` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
|
|
|
-- Dump completed on 2023-06-24 18:32:06
|