text: CREATE DATABASE  IF NOT EXISTS `control_acceso_cdc_dbp` /*!40100 DEFAULT CHARACTER SET latin1 */;
  USE `control_acceso_cdc_dbp`;
  -- MySQL dump 10.13  Distrib 5.7.17, for Win64 (x86_64)
  --
  -- Host: 10.3.2.197    Database: control_acceso_cdc_dbp
  -- ------------------------------------------------------
  -- Server version	5.5.5-10.2.8-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 utf8 */;
  /*!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 `bitacora`
  --
  
  DROP TABLE IF EXISTS `bitacora`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `bitacora` (
    `id` char(36) NOT NULL,
    `idFormulario` char(36) NOT NULL,
    `idVisitante` char(36) DEFAULT NULL,
    `idTarjeta` char(36) DEFAULT NULL,
    `entrada` datetime DEFAULT NULL,
    `salida` datetime DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Table structure for table `dataCenter`
  --
  
  DROP TABLE IF EXISTS `dataCenter`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `dataCenter` (
    `id` char(36) NOT NULL,
    `nombre` varchar(100) NOT NULL,
    `direccionesIP` varchar(500) DEFAULT NULL,
    `imagen` varchar(128) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Table structure for table `estado`
  --
  
  DROP TABLE IF EXISTS `estado`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `estado` (
    `id` char(36) NOT NULL,
    `nombre` varchar(20) NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Table structure for table `eventosXRoll`
  --
  
  DROP TABLE IF EXISTS `eventosXRoll`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `eventosXRoll` (
    `id` char(36) NOT NULL,
    `nombre` varchar(100) DEFAULT NULL,
    `url` varchar(150) DEFAULT NULL,
    `menuPadre` varchar(100) DEFAULT NULL,
    `subMenuPadre` varchar(100) DEFAULT NULL,
    `icono` varchar(45) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Table structure for table `formulario`
  --
  
  DROP TABLE IF EXISTS `formulario`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `formulario` (
    `id` char(36) NOT NULL,
    `idTramitante` char(36) DEFAULT NULL,
    `idAutorizador` char(36) DEFAULT NULL,
    `idResponsable` char(36) DEFAULT NULL,
    `idEstado` char(36) NOT NULL DEFAULT '0',
    `idSala` char(36) NOT NULL,
    `consecutivo` int(11) NOT NULL AUTO_INCREMENT,
    `fechaSolicitud` datetime DEFAULT current_timestamp(),
    `fechaIngreso` datetime DEFAULT NULL,
    `fechaSalida` datetime DEFAULT NULL,
    `motivoVisita` varchar(1000) DEFAULT NULL,
    `otrosDetalles` varchar(500) DEFAULT NULL,
    PRIMARY KEY (`id`),
    KEY `consecutivo` (`consecutivo`)
  ) ENGINE=InnoDB AUTO_INCREMENT=2224 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Table structure for table `rol`
  --
  
  DROP TABLE IF EXISTS `rol`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `rol` (
    `id` char(36) NOT NULL,
    `nombre` varchar(20) NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Table structure for table `sala`
  --
  
  DROP TABLE IF EXISTS `sala`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `sala` (
    `id` char(36) NOT NULL,
    `idDataCenter` char(36) NOT NULL,
    `nombre` varchar(50) NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Table structure for table `tarjeta`
  --
  
  DROP TABLE IF EXISTS `tarjeta`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `tarjeta` (
    `id` char(36) NOT NULL,
    `idSala` char(36) NOT NULL,
    `estado` tinyint(1) NOT NULL DEFAULT 0,
    `consecutivo` varchar(4) DEFAULT NULL,
    PRIMARY KEY (`id`),
    KEY `consecutivo` (`consecutivo`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Table structure for table `usuario_n`
  --
  
  DROP TABLE IF EXISTS `usuario_n`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `usuario_n` (
    `id` char(36) NOT NULL,
    `usuario` varchar(60) DEFAULT NULL,
    `passwd` varchar(45) DEFAULT NULL,
    `cedula` varchar(45) DEFAULT NULL,
    `nombre` varchar(60) DEFAULT NULL,
    `correo` varchar(60) DEFAULT NULL,
    `empresa` varchar(100) DEFAULT NULL,
    `fechaCreacion` datetime DEFAULT current_timestamp(),
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Table structure for table `usuario_rol`
  --
  
  DROP TABLE IF EXISTS `usuario_rol`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `usuario_rol` (
    `idRol` char(36) NOT NULL,
    `idUsuario` char(36) NOT NULL,
    PRIMARY KEY (`idRol`,`idUsuario`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Table structure for table `visitante_formulario`
  --
  
  DROP TABLE IF EXISTS `visitante_formulario`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `visitante_formulario` (
    `id` int(10) NOT NULL AUTO_INCREMENT,
    `idVisitante` char(36) NOT NULL,
    `idFormulario` char(36) NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=10536 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  /*!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 2019-06-26 21:48:50
  