Exportación base de datos:
-- MariaDB dump 10.19 Distrib 10.4.24-MariaDB, for Win64 (AMD64)
--
-- Host: localhost Database: conexiones
-- ------------------------------------------------------
-- Server version 10.4.24-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 */;
CREATE DATABASE conexiones;
USE conexiones;
--
-- Table structure for table `equipos`
--
DROP TABLE IF EXISTS `equipos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `equipos` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`hostname` varchar(20) NOT NULL,
`ip` varchar(15) NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `equipos`
--
LOCK TABLES `equipos` WRITE;
/*!40000 ALTER TABLE `equipos` DISABLE KEYS */;
INSERT INTO `equipos` VALUES (1,'W7-1','192.168.0.1'),(2,'W7-2','192.168.0.2'),(3,'W7-3','192.168.0.3'),(29,'W7-ADMINISTRADOR','192.168.0.29');
/*!40000 ALTER TABLE `equipos` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `registro_actual`
--
DROP TABLE IF EXISTS `registro_actual`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `registro_actual` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`ID_equipo` int(11) NOT NULL,
`fecha_inicio` timestamp NOT NULL DEFAULT current_timestamp(),
`fecha_fin` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`ID`),
KEY `ID_equipo` (`ID_equipo`),
CONSTRAINT `registro_actual_ibfk_1` FOREIGN KEY (`ID_equipo`) REFERENCES `equipos` (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `registro_actual`
--
LOCK TABLES `registro_actual` WRITE;
/*!40000 ALTER TABLE `registro_actual` DISABLE KEYS */;
INSERT INTO `registro_actual` VALUES (1,3,'2022-04-11 20:56:41','2022-04-12 21:00:00');
/*!40000 ALTER TABLE `registro_actual` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `registro_historico`
--
DROP TABLE IF EXISTS `registro_historico`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `registro_historico` (
`ID` int(11) NOT NULL,
`ID_equipo` int(11) NOT NULL,
`fecha_inicio` timestamp NOT NULL DEFAULT current_timestamp(),
`fecha_fin` timestamp NULL DEFAULT NULL,
KEY `ID_equipo` (`ID_equipo`),
CONSTRAINT `registro_historico_ibfk_1` FOREIGN KEY (`ID_equipo`) REFERENCES `equipos` (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `registro_historico`
--
LOCK TABLES `registro_historico` WRITE;
/*!40000 ALTER TABLE `registro_historico` DISABLE KEYS */;
/*!40000 ALTER TABLE `registro_historico` 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 2022-04-25 10:33:00