-- Next World Telecom 
-- Sistema Control de Inventario 
-- Respaldo de base de datos: inventarionwt 
-- Fecha de creacion: 10-Jul-2016 - 10:41:25 PM 
-- Desarrollado por: gVictoria 


/*!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 */;
--
-- Esctructura de tabla 'acuses' -- 
--

DROP TABLE IF EXISTS `acuses`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `acuses` (
  `id_acuse` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `no_acuse` varchar(20) NOT NULL,
  `lugar_entrega` varchar(255) DEFAULT NULL,
  `nom_receptor` varchar(255) DEFAULT NULL,
  `no_guia` varchar(45) DEFAULT NULL,
  `coment_acuse` mediumtext,
  `adjunto_acuse` varchar(255) DEFAULT NULL,
  `fec_acuse` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fec_mod_acuse` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id_acuse`),
  UNIQUE KEY `no_acuse` (`no_acuse`)
) ENGINE=InnoDB AUTO_INCREMENT=116 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'acuses' -------------------- 
--

LOCK TABLES `acuses` WRITE; 
--
/*!40000 ALTER TABLE `acuses` DISABLE KEYS */;
INSERT INTO acuses(`id_acuse`, `no_acuse`, `lugar_entrega`, `nom_receptor`, `no_guia`, `coment_acuse`, `adjunto_acuse`, `fec_acuse`, `fec_mod_acuse`) VALUES
('30', '2300012', 'lugar', 'nombre receptor', 'n&uacute;mero de gu&igrave;a', 'comentarios probando salida de quotes &lt;script&gt;alert()&lt;/script&gt;', NULL, '2016-01-25 12:09:47', '2016-01-31 02:38:41'), 
('31', '1200016', 'lugar &lt;script&gt;alert(\'escapa\');&lt;/script&gt;', '&lt;script&gt;alert(\'escapa\');&lt;/script&gt;', '&lt;script&gt;alert(\'escapa\');&lt;/script&gt;', '&lt;script&gt;alert(\'escapa\');&lt;/script&gt;', NULL, '2016-01-25 12:09:51', '2016-01-31 04:23:05'), 
('35', '1200019', NULL, NULL, NULL, NULL, NULL, '2016-01-25 12:25:31', '0000-00-00 00:00:00'), 
('36', '1200020', NULL, NULL, NULL, NULL, NULL, '2016-01-25 12:25:55', '0000-00-00 00:00:00'), 
('37', '1200021', NULL, NULL, NULL, NULL, NULL, '2016-01-25 12:26:32', '0000-00-00 00:00:00'), 
('38', '1100007', NULL, NULL, NULL, NULL, NULL, '2016-01-25 20:33:15', '0000-00-00 00:00:00'), 
('39', '1200022', NULL, NULL, NULL, NULL, NULL, '2016-01-25 20:33:34', '0000-00-00 00:00:00'), 
('40', '1200023', NULL, NULL, NULL, NULL, NULL, '2016-01-25 20:35:53', '0000-00-00 00:00:00'), 
('41', '1100008', NULL, NULL, NULL, NULL, NULL, '2016-01-25 20:37:40', '0000-00-00 00:00:00'), 
('42', '11', NULL, NULL, NULL, NULL, NULL, '2016-01-25 21:21:55', '0000-00-00 00:00:00'), 
('43', '1100011', NULL, NULL, NULL, NULL, NULL, '2016-01-25 21:26:16', '0000-00-00 00:00:00'), 
('44', '1100012', NULL, NULL, NULL, NULL, NULL, '2016-01-25 21:26:16', '0000-00-00 00:00:00'), 
('45', '1200024', NULL, NULL, NULL, NULL, NULL, '2016-01-25 21:33:02', '0000-00-00 00:00:00'), 
('46', '1200025', NULL, NULL, NULL, NULL, NULL, '2016-01-25 21:33:02', '0000-00-00 00:00:00'), 
('47', '1200026', NULL, NULL, NULL, NULL, NULL, '2016-01-25 21:33:02', '0000-00-00 00:00:00'), 
('48', '1200027', NULL, NULL, NULL, NULL, NULL, '2016-01-25 21:33:03', '0000-00-00 00:00:00'), 
('49', '2300014', NULL, NULL, NULL, NULL, NULL, '2016-01-25 21:57:30', '0000-00-00 00:00:00'), 
('50', '2300015', NULL, NULL, NULL, NULL, NULL, '2016-01-25 21:57:30', '0000-00-00 00:00:00'), 
('51', '1100013', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:21:05', '0000-00-00 00:00:00'), 
('52', '1100014', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:21:06', '0000-00-00 00:00:00'), 
('53', '1100015', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:21:06', '0000-00-00 00:00:00'), 
('54', '1100016', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:21:06', '0000-00-00 00:00:00'), 
('55', '2300016', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:26:58', '0000-00-00 00:00:00'), 
('56', '2300017', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:26:58', '0000-00-00 00:00:00'), 
('57', '1200028', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:28:24', '0000-00-00 00:00:00'), 
('58', '1200029', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:28:25', '0000-00-00 00:00:00'), 
('59', '1200030', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:28:25', '0000-00-00 00:00:00'), 
('60', '1200031', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:28:25', '0000-00-00 00:00:00'), 
('61', '2300018', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:30:00', '0000-00-00 00:00:00'), 
('62', '2300019', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:30:00', '0000-00-00 00:00:00'), 
('63', '2300020', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:30:26', '0000-00-00 00:00:00'), 
('64', '2300021', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:30:26', '0000-00-00 00:00:00'), 
('65', '2300022', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:31:19', '0000-00-00 00:00:00'), 
('66', '2300023', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:31:19', '0000-00-00 00:00:00'), 
('67', '1100017', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:35:59', '0000-00-00 00:00:00'), 
('68', '1100018', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:35:59', '0000-00-00 00:00:00'), 
('69', '1100019', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:36:58', '0000-00-00 00:00:00'), 
('70', '1100020', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:36:58', '0000-00-00 00:00:00'), 
('71', '1100021', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:37:16', '0000-00-00 00:00:00'), 
('72', '1100022', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:37:16', '0000-00-00 00:00:00'), 
('73', '1100023', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:38:27', '0000-00-00 00:00:00'), 
('74', '1100024', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:38:28', '0000-00-00 00:00:00'), 
('75', '1100025', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:39:16', '0000-00-00 00:00:00'), 
('76', '1100026', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:39:16', '0000-00-00 00:00:00'), 
('77', '2300024', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:40:33', '0000-00-00 00:00:00'), 
('78', '2300025', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:40:34', '0000-00-00 00:00:00'), 
('79', '1200032', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:42:00', '0000-00-00 00:00:00'), 
('80', '1200033', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:42:00', '0000-00-00 00:00:00'), 
('81', '1200034', NULL, NULL, NULL, NULL, NULL, '2016-01-25 23:42:00', '0000-00-00 00:00:00'), 
('82', '1200035', NULL, NULL, NULL, NULL, NULL, '2016-01-26 04:26:32', '0000-00-00 00:00:00'), 
('83', '1200036', NULL, NULL, NULL, NULL, NULL, '2016-01-26 04:26:32', '0000-00-00 00:00:00'), 
('84', '1200037', NULL, NULL, NULL, NULL, NULL, '2016-01-26 04:26:32', '0000-00-00 00:00:00'), 
('85', '1200038', NULL, NULL, NULL, NULL, NULL, '2016-01-26 04:31:53', '0000-00-00 00:00:00'), 
('86', '1200039', NULL, NULL, NULL, NULL, NULL, '2016-01-26 04:31:53', '0000-00-00 00:00:00'), 
('87', '1200040', NULL, NULL, NULL, NULL, NULL, '2016-01-26 04:31:53', '0000-00-00 00:00:00'), 
('88', '1200041', NULL, NULL, NULL, NULL, NULL, '2016-01-26 04:31:54', '0000-00-00 00:00:00'), 
('89', '1200042', NULL, NULL, NULL, NULL, NULL, '2016-01-26 04:33:47', '0000-00-00 00:00:00'), 
('90', '1200043', NULL, NULL, NULL, NULL, NULL, '2016-01-26 04:35:34', '0000-00-00 00:00:00'), 
('91', '1200044', NULL, NULL, NULL, NULL, NULL, '2016-01-26 04:35:34', '0000-00-00 00:00:00'), 
('93', '1200046', NULL, NULL, NULL, NULL, NULL, '2016-01-26 04:35:35', '0000-00-00 00:00:00'), 
('94', '1200047', NULL, NULL, NULL, NULL, NULL, '2016-01-26 04:50:00', '0000-00-00 00:00:00'), 
('95', '1200048', NULL, NULL, NULL, NULL, NULL, '2016-01-26 04:50:00', '0000-00-00 00:00:00'), 
('96', '1200049', NULL, NULL, NULL, 'At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.', NULL, '2016-01-26 04:50:00', '2016-01-27 21:51:50'), 
('97', '1100027', NULL, NULL, NULL, NULL, NULL, '2016-01-26 15:50:20', '0000-00-00 00:00:00'), 
('98', '1100028', NULL, NULL, NULL, NULL, NULL, '2016-01-26 15:50:20', '0000-00-00 00:00:00'), 
('99', '1100029', NULL, NULL, NULL, NULL, NULL, '2016-01-26 15:50:20', '0000-00-00 00:00:00'), 
('100', '1100030', NULL, NULL, NULL, NULL, NULL, '2016-01-28 00:58:55', '0000-00-00 00:00:00'), 
('101', '1100031', NULL, NULL, NULL, NULL, NULL, '2016-01-28 00:58:56', '0000-00-00 00:00:00'), 
('107', '1100037', NULL, NULL, NULL, NULL, NULL, '2016-01-31 05:57:49', '0000-00-00 00:00:00'), 
('108', '1100038', NULL, NULL, NULL, NULL, NULL, '2016-01-31 05:58:53', '0000-00-00 00:00:00'), 
('109', '1100039', 'ADSFFSDF', 'ASDF', 'ASDFDSF', 'Este es un comentario general para n&uacute;mero de acuse presente...', NULL, '2016-02-01 00:10:35', '2016-02-05 00:11:54'), 
('110', '2300026', NULL, NULL, NULL, NULL, NULL, '2016-02-01 00:18:53', '0000-00-00 00:00:00'), 
('111', '1100040', NULL, NULL, NULL, 'el equipos con numero de serie &quot;1100040&quot; aplica garantia', NULL, '2016-02-01 00:20:18', '2016-02-01 03:01:50'), 
('112', '2300027', NULL, NULL, NULL, NULL, NULL, '2016-02-01 01:59:02', '2016-02-01 14:17:44'), 
('113', '2300028', NULL, NULL, NULL, NULL, NULL, '2016-02-05 01:44:42', '0000-00-00 00:00:00'), 
('114', '1100041', NULL, NULL, NULL, NULL, NULL, '2016-05-01 13:29:12', '0000-00-00 00:00:00'), 
('115', '1100042', NULL, NULL, NULL, 'acuse generado para envio', NULL, '2016-05-01 13:29:12', '2016-05-01 13:31:53');
/*!40000 ALTER TABLE `acuses` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'adjuntos_equipos' -- 
--

DROP TABLE IF EXISTS `adjuntos_equipos`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `adjuntos_equipos` (
  `id_adj_equi` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `id_equipo` int(10) unsigned NOT NULL,
  `adj_equi` mediumtext NOT NULL,
  `adj_equi_comen` varchar(255) DEFAULT NULL,
  `fec_adj_equi` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fec_mod_adj_equi` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id_adj_equi`),
  KEY `id_equipo` (`id_equipo`),
  CONSTRAINT `fk_adjuntos_equipos_equipos_id_equipo` FOREIGN KEY (`id_equipo`) REFERENCES `equipos` (`id_equipo`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'adjuntos_equipos' -------------------- 
--

LOCK TABLES `adjuntos_equipos` WRITE; 
--
/*!40000 ALTER TABLE `adjuntos_equipos` DISABLE KEYS */;
INSERT INTO adjuntos_equipos(`id_adj_equi`, `id_equipo`, `adj_equi`, `adj_equi_comen`, `fec_adj_equi`, `fec_mod_adj_equi`) VALUES
('11', '1', '02.11.2014 - 1.jpg', 'gfdsg dsfgsdf dfss dsfasd adsf adsf adsf adsf asdf adf asdf asdf adsf asfd af af af af f fffasdfsad sdf dsaf sf af af afasdf fsdfgsdf df 1', '2015-12-06 01:09:49', '2016-01-02 23:45:14'), 
('12', '1', '004.jpg', 'eliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminad', '2015-12-06 12:44:54', '2016-01-23 18:32:37'), 
('13', '1', '02.jpg', 'un comentario', '2015-12-19 12:16:10', '0000-00-00 00:00:00'), 
('15', '14', '1555531_531530757008694_2301003761341823308_n.jpg', 'gfdssssssssss', '2016-01-04 02:27:50', '0000-00-00 00:00:00'), 
('17', '14', '20155 - 1.jpg', NULL, '2016-01-04 02:29:55', '0000-00-00 00:00:00'), 
('18', '14', '15 - 1 (6).jpg', NULL, '2016-01-04 02:31:47', '0000-00-00 00:00:00'), 
('19', '14', '6.png', 'se verifica aplicacion con historial a este numero de serie blabla', '2016-01-04 02:32:29', '2016-05-01 13:16:11'), 
('20', '14', 'datosRegistro.pdf', NULL, '2016-01-04 02:33:42', '0000-00-00 00:00:00'), 
('24', '7', '12047168_904358759611993_1241868953303255070_n.jpg', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor i', '2016-01-10 00:04:43', '2016-01-10 00:05:21'), 
('25', '9', '04.01.16 - 1.jpg', 'un comentario para esta imagen sd', '2016-01-15 01:59:19', '2016-01-15 01:59:37'), 
('26', '4', '1-Dan Quintana.jpg', NULL, '2016-01-15 02:45:12', '0000-00-00 00:00:00'), 
('28', '43', '00d513db-3dbd-4620-8e66-47af214864cb.jpg', NULL, '2016-02-01 16:26:10', '0000-00-00 00:00:00'), 
('29', '28', '09.11.2015 - 1.jpg', NULL, '2016-02-01 23:21:33', '0000-00-00 00:00:00'), 
('30', '36', '07.01.2016 - 1 (1).jpg', NULL, '2016-02-26 21:34:07', '0000-00-00 00:00:00'), 
('31', '36', 'ec controller.docx', NULL, '2016-03-02 01:33:19', '0000-00-00 00:00:00'), 
('35', '14', 'cow.png', NULL, '2016-03-02 03:15:47', '0000-00-00 00:00:00'), 
('36', '14', '02.11.2014 - 1.jpg', NULL, '2016-03-02 03:18:40', '0000-00-00 00:00:00'), 
('37', '14', '02(1).11', NULL, '2016-03-02 03:19:03', '0000-00-00 00:00:00'), 
('38', '14', 'j(1).p', NULL, '2016-03-02 03:20:18', '0000-00-00 00:00:00'), 
('39', '14', 'Array(1).jpg', NULL, '2016-03-02 03:30:08', '0000-00-00 00:00:00'), 
('40', '36', '02(1).jpg', NULL, '2016-03-02 03:32:27', '0000-00-00 00:00:00'), 
('41', '36', '02112014 - 1(1).jpg', NULL, '2016-03-02 03:49:30', '0000-00-00 00:00:00'), 
('42', '36', '02.11.2014 - 1(1).jpg', NULL, '2016-03-02 03:50:48', '0000-00-00 00:00:00'), 
('43', '36', '07d2fd2062f746500b6de1d02bbe7e7f.jpg', NULL, '2016-03-02 03:51:28', '0000-00-00 00:00:00'), 
('44', '36', '07d2fd2062f746500b6de1d02bbe7e7f(1).jpg', NULL, '2016-03-02 03:52:07', '0000-00-00 00:00:00'), 
('45', '36', '1A6.jpg', 'fdsfadsfasdf', '2016-03-09 17:58:57', '0000-00-00 00:00:00'), 
('46', '68', 'Gustavo Victoria.pdf', 'ejemplo de archivo adjunto a este equipo', '2016-05-01 13:01:32', '0000-00-00 00:00:00'), 
('47', '68', '04.01.16 - 1.png', 'archivo adjunto', '2016-05-01 13:14:27', '0000-00-00 00:00:00');
/*!40000 ALTER TABLE `adjuntos_equipos` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'adjuntos_reportes' -- 
--

DROP TABLE IF EXISTS `adjuntos_reportes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `adjuntos_reportes` (
  `id_adj_report` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `id_reporte` bigint(20) unsigned NOT NULL,
  `adj_report` mediumtext NOT NULL,
  `adj_report_comen` varchar(255) DEFAULT NULL,
  `fec_adj_report` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fec_mod_adj_report` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id_adj_report`),
  KEY `id_reporte` (`id_reporte`),
  CONSTRAINT `fk_adjuntos_reportes_reportes_id_reporte` FOREIGN KEY (`id_reporte`) REFERENCES `reportes` (`id_reporte`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=136 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'adjuntos_reportes' -------------------- 
--

LOCK TABLES `adjuntos_reportes` WRITE; 
--
/*!40000 ALTER TABLE `adjuntos_reportes` DISABLE KEYS */;
INSERT INTO adjuntos_reportes(`id_adj_report`, `id_reporte`, `adj_report`, `adj_report_comen`, `fec_adj_report`, `fec_mod_adj_report`) VALUES
('2', '4', 'logo.png', 'hola que hace', '2016-01-01 06:10:57', '0000-00-00 00:00:00'), 
('3', '36', 'school(7).png', 'SDFASD', '2016-01-01 06:12:03', '0000-00-00 00:00:00'), 
('4', '37', 'yj.jpg', 'UN COMENTARIO', '2016-01-01 06:15:27', '0000-00-00 00:00:00'), 
('5', '38', '01.jpg', 'FFASDF', '2016-01-01 06:17:36', '0000-00-00 00:00:00'), 
('6', '38', '02.jpg', 'ADSFDSFAF', '2016-01-01 06:17:40', '0000-00-00 00:00:00'), 
('7', '38', '03.jpg', 'ADSFSDF', '2016-01-01 06:17:43', '0000-00-00 00:00:00'), 
('8', '39', '15 - 1 (10).jpg', 'affffdsf', '2016-01-01 06:29:40', '0000-00-00 00:00:00'), 
('9', '42', '15 - 1 (10)(1).jpg', 'affffdsf', '2016-01-01 06:34:51', '0000-00-00 00:00:00'), 
('10', '43', '15 - 1 (10)(2).jpg', 'affffdsf', '2016-01-01 06:38:34', '0000-00-00 00:00:00'), 
('11', '50', '02(1).08', NULL, '2016-01-01 06:59:44', '0000-00-00 00:00:00'), 
('12', '52', '02(2).08', NULL, '2016-01-01 07:02:03', '0000-00-00 00:00:00'), 
('13', '56', '02(3).08', 'das', '2016-01-01 13:09:09', '0000-00-00 00:00:00'), 
('14', '56', '004.jpg', 'adsf', '2016-01-01 13:09:12', '0000-00-00 00:00:00'), 
('15', '58', '0.jpg', 'ASDFSDF', '2016-01-01 16:31:03', '0000-00-00 00:00:00'), 
('16', '64', '004(1).jpg', 'fgsdfgdf', '2016-01-01 16:48:55', '0000-00-00 00:00:00'), 
('17', '68', '2015-08-03 03.16.11.png', 'sdff', '2016-01-01 20:39:27', '0000-00-00 00:00:00'), 
('18', '69', '044_silent.jpg', 'sdg', '2016-01-01 21:45:29', '0000-00-00 00:00:00'), 
('19', '70', '02.11.2014 - 1.jpg', 'dsaf', '2016-01-01 21:58:43', '0000-00-00 00:00:00'), 
('20', '71', '03(1).jpg', 'asfdsdf', '2016-01-01 22:01:48', '0000-00-00 00:00:00'), 
('21', '72', '06.jpg', 'sadf', '2016-01-01 22:03:53', '0000-00-00 00:00:00'), 
('22', '74', '02(1).jpg', 'adsff', '2016-01-01 22:09:26', '0000-00-00 00:00:00'), 
('23', '77', '004.jpg', 'fassdf', '2016-01-02 12:47:55', '0000-00-00 00:00:00'), 
('24', '78', '03.jpg', 'asdf', '2016-01-02 12:48:43', '0000-00-00 00:00:00'), 
('25', '78', '03(1).jpg', 'adsf', '2016-01-02 12:48:46', '0000-00-00 00:00:00'), 
('26', '79', '02.08.15 - 1 (1).jpg', 'asdffsd', '2016-01-02 12:50:20', '0000-00-00 00:00:00'), 
('27', '80', '0.jpg', 'dasfsdf', '2016-01-02 12:51:17', '0000-00-00 00:00:00'), 
('28', '81', '0(1).jpg', 'dasfsdf', '2016-01-02 13:05:36', '0000-00-00 00:00:00'), 
('29', '82', '0(2).jpg', 'dasfsdf', '2016-01-02 13:06:01', '0000-00-00 00:00:00'), 
('30', '83', '8-Chicas-rockeras-y-metaleras.jpg', 'dasfsdf', '2016-01-02 13:06:19', '0000-00-00 00:00:00'), 
('31', '83', '1958243_10203669484879588_9134981827849436068_n.jpg', NULL, '2016-01-02 13:06:23', '0000-00-00 00:00:00'), 
('32', '84', '59896jj.jpg', 'sdfafd', '2016-01-02 13:18:10', '0000-00-00 00:00:00'), 
('33', '84', '11102771_660863794067853_2577521651337621780_n.jpg', 'adfs', '2016-01-02 13:18:13', '0000-00-00 00:00:00'), 
('34', '84', '239805-1000-144608544110.png', 'asf', '2016-01-02 13:18:16', '0000-00-00 00:00:00'), 
('35', '86', '8-Chicas-rockeras-y-metaleras(1).jpg', 'asdfsfd', '2016-01-02 14:07:57', '0000-00-00 00:00:00'), 
('36', '86', '06.jpg', 'ddsasdaf', '2016-01-02 14:07:59', '0000-00-00 00:00:00'), 
('37', '86', '10.jpg', 'dasdffsd', '2016-01-02 14:08:02', '0000-00-00 00:00:00'), 
('38', '86', '241455-1000-1446085442blob.png', 'asdfsadf', '2016-01-02 14:08:04', '0000-00-00 00:00:00'), 
('39', '86', '1009885_10201880503956183_1710114971_n.jpg', 'asfdsad', '2016-01-02 14:08:06', '0000-00-00 00:00:00'), 
('40', '95', '4879y.jpg', 'FSASDF', '2016-01-02 18:24:13', '0000-00-00 00:00:00'), 
('41', '99', '8-Chicas-rockeras-y-metaleras(2).jpg', 'aaadfss', '2016-01-03 04:14:54', '0000-00-00 00:00:00'), 
('42', '99', '181276_10201073196974013_838980238_n.jpg', 'sadfa', '2016-01-03 04:14:57', '0000-00-00 00:00:00'), 
('43', '99', '240105-1000-144608543513.png', 'dasffff', '2016-01-03 04:14:59', '0000-00-00 00:00:00'), 
('44', '101', '02.11.2014 - 1.jpg', NULL, '2016-01-03 17:24:53', '0000-00-00 00:00:00'), 
('45', '101', '4e325fba028a2ca85c8068a6de99a6ed.jpg', NULL, '2016-01-03 17:24:55', '0000-00-00 00:00:00'), 
('46', '101', '181276_10201073196974013_838980238_n(1).jpg', NULL, '2016-01-03 17:24:57', '0000-00-00 00:00:00'), 
('47', '101', '240255-1000-144608544215.png', NULL, '2016-01-03 17:24:59', '0000-00-00 00:00:00'), 
('48', '101', '29617_10201916056604977_611161912_n.jpg', 'MTAx', '2016-01-03 17:25:01', '2016-01-03 18:41:05'), 
('49', '102', '01.jpg', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor i', '2016-01-03 19:39:47', '0000-00-00 00:00:00'), 
('50', '102', '03(2).jpg', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor i', '2016-01-03 19:39:49', '0000-00-00 00:00:00'), 
('55', '104', '047fd432503873.5688e6c7ef2dd_copiar.jpg', '\"Too many connections\" indicates, that your script is opening at least more than one connection to the database. Basically, to one server, only one connection is needed. Getting this error is either a misconfiguration of the server (which I assume isn\'t t', '2016-01-15 02:03:54', '0000-00-00 00:00:00'), 
('56', '104', '15 - 1 (4).jpg', '\"Too many connections\" indicates, that your script is opening at least more than one connection to the database. Basically, to one server, only one connection is needed. Getting this error is either a misconfiguration of the server (which I assume isn\'t t', '2016-01-15 02:03:56', '0000-00-00 00:00:00'), 
('57', '104', '06.01.2016 - 1.jpg', '\"Too many connections\" indicates, that your script is opening at least more than one connection to the database. Basically, to one server, only one connection is needed. Getting this error is either a misconfiguration of the server (which I assume isn\'t t', '2016-01-15 02:03:59', '0000-00-00 00:00:00'), 
('58', '4', 'logo.png', 'hola que hace', '2016-01-15 23:12:29', '0000-00-00 00:00:00'), 
('63', '107', 'yj.jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:00', '0000-00-00 00:00:00'), 
('64', '107', 'y0 (1).jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:02', '0000-00-00 00:00:00'), 
('65', '107', 'xz.jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:04', '0000-00-00 00:00:00'), 
('66', '107', 'yj(1).jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:06', '0000-00-00 00:00:00'), 
('67', '107', 'xm.jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:09', '0000-00-00 00:00:00'), 
('68', '107', 'xetobyte.jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:11', '0000-00-00 00:00:00'), 
('69', '107', 'xdxa.jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:13', '0000-00-00 00:00:00'), 
('70', '107', 'wdf3.jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:15', '0000-00-00 00:00:00'), 
('71', '107', 'WALEE_blakrylic_02.jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:17', '0000-00-00 00:00:00'), 
('72', '107', 'w90.jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:19', '0000-00-00 00:00:00'), 
('73', '107', 'vikings_video.jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:21', '0000-00-00 00:00:00'), 
('74', '107', 'Vikings_saison2_poster_002.jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:23', '0000-00-00 00:00:00'), 
('75', '107', 'Vikings_S02P12,_cast.png', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:25', '0000-00-00 00:00:00'), 
('76', '107', 'vikings.jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:27', '0000-00-00 00:00:00'), 
('77', '107', 'Vikings-Tv-Series-Bloody-Sword-Logo-HD-Wallpaper_Vvallpaper.Net_.jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:29', '0000-00-00 00:00:00'), 
('78', '107', 'vikings-theme.jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:31', '0000-00-00 00:00:00'), 
('79', '107', 'uu500.jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:33', '0000-00-00 00:00:00'), 
('80', '107', 'tumblr_nzom3x4APz1sfie3io1_500.jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:35', '0000-00-00 00:00:00'), 
('81', '107', 'tumblr_nzgppcLzet1sfie3io1_1280.jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:38', '0000-00-00 00:00:00'), 
('82', '107', 'tumblr_nwefolzbpe1rlitzfo1_500.jpg', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:29:40', '0000-00-00 00:00:00'), 
('92', '117', '05.03.2016 - 1.jpg', 'afdfasdfadsf', '2016-03-22 01:26:53', '0000-00-00 00:00:00'), 
('93', '117', 'Û²Û¶ Ù&zwj;.Ø´. - 1 (8).jpg', 'afdsfasdfsdf', '2016-03-22 01:30:24', '0000-00-00 00:00:00'), 
('94', '117', '028c695a847864c9356104ba871266a8.jpg', NULL, '2016-03-22 01:35:56', '0000-00-00 00:00:00'), 
('95', '117', '028c695a847864c9356104ba871266a8.jpg', 'bat', '2016-03-22 01:35:59', '2016-03-22 23:44:51'), 
('96', '117', '2e2821b8ea73d80556cb14f263eb6c0a.jpg', 'sadfsdfasddsf', '2016-03-22 01:37:22', '0000-00-00 00:00:00'), 
('97', '117', '10981868_794705743957619_8251239449495610583_n.jpg', 'sadfsdfasddsf adsfasdf dsf222', '2016-03-22 01:37:42', '0000-00-00 00:00:00'), 
('98', '117', '10981868_794705743957619_8251239449495610583_n.jpg', 'sadfsdfasddsf adsfasdf dsf222', '2016-03-22 01:37:45', '0000-00-00 00:00:00'), 
('99', '117', 'Vikings_S02P12,_cast.png', 'sadfsdfasddsf adsfasdf dsf222 3333', '2016-03-22 01:38:04', '0000-00-00 00:00:00'), 
('100', '117', 'Vikings_S02P12,_cast.png', 'sadfsdfasddsf adsfasdf dsf222 3333', '2016-03-22 01:38:08', '0000-00-00 00:00:00'), 
('101', '117', 'Vikings_S02P12,_cast.png', 'sadfsdfasddsf adsfasdf dsf222 3333', '2016-03-22 01:38:11', '0000-00-00 00:00:00'), 
('102', '117', 'Vikings_S02P12,_cast.png', 'sadfsdfasddsf adsfasdf dsf222 3333', '2016-03-22 01:38:14', '0000-00-00 00:00:00'), 
('103', '115', '06fa166e080292ddb9a304e9d54d1d80.jpg', 'imagen 1', '2016-03-22 02:53:52', '2016-03-23 01:55:27'), 
('104', '115', '2ac70c78591ceed1bcc69f79ef75b512.jpg', 'imagen 2', '2016-03-22 03:01:55', '2016-03-23 01:55:27'), 
('105', '115', '3e2b1776c7a148c46d3eb7b21905589d.jpg', 'imagen 3', '2016-03-22 03:02:54', '2016-03-23 01:55:27'), 
('106', '115', '3e66ecce8484b2e0d7761b930879a283.jpg', 'imagen 4', '2016-03-22 03:05:31', '2016-03-23 01:55:27'), 
('107', '115', '5ef4064a845ab120bf6de2ff84ce0b25.jpg', 'imagen 5', '2016-03-22 03:07:04', '2016-03-23 01:55:27'), 
('108', '115', '7E011A1CE.jpg', 'imagen 6', '2016-03-22 03:08:59', '2016-03-23 01:55:27'), 
('109', '115', '8d310012473eac8d0a8498816c121de3.jpg', 'imagen 7', '2016-03-22 03:10:19', '2016-03-23 01:55:27'), 
('111', '115', '9.jpg', 'imagen 8', '2016-03-22 03:13:09', '2016-03-23 01:55:27'), 
('112', '115', '9a120a9b91adc6b37c61cb94ded385ed.jpg', 'imagen 9', '2016-03-22 03:14:14', '2016-03-23 01:55:27'), 
('113', '115', '10.01.2016 - 1.jpg', 'imagen 10', '2016-03-22 03:15:39', '2016-03-23 01:55:27'), 
('114', '115', '10.03.15 - 3.jpg', 'imagen 11', '2016-03-22 03:26:54', '2016-03-23 01:55:27'), 
('116', '115', '12.12.2015 - 1.jpg', 'imagen 12', '2016-03-22 03:29:16', '2016-03-23 01:55:27'), 
('121', '116', '13 - 1.jpg', 'bat', '2016-03-22 04:02:51', '2016-03-22 23:31:38'), 
('122', '116', '13.jpg', 'bat', '2016-03-22 04:03:07', '2016-03-22 23:43:47'), 
('123', '116', '14 - 1 (1).jpg', 'bat', '2016-03-22 04:04:02', '2016-03-22 23:43:47'), 
('126', '119', '06.01.2016 - 1(1).jpg', 'fgsdfff', '2016-03-24 11:52:34', '0000-00-00 00:00:00'), 
('127', '119', 'Ghotic-Kingdome-.jpg', 'gssssssfdgdsf', '2016-03-24 11:52:36', '0000-00-00 00:00:00'), 
('128', '119', 'de1fb86.jpg', 'gsdfgdfgdf', '2016-03-24 11:52:38', '0000-00-00 00:00:00'), 
('129', '119', 'plaground_web.jpg', 'fgsdfgdf sfaafs', '2016-03-24 11:52:41', '2016-03-24 11:53:13'), 
('130', '120', '047fd432503873.5688e6c7ef2dd_copiar(1).jpg', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor i', '2016-05-01 13:19:18', '0000-00-00 00:00:00'), 
('131', '120', '78db2ad16792a06a7d308dbf112c5bbc.jpg', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor i', '2016-05-01 13:19:20', '0000-00-00 00:00:00'), 
('132', '120', '12294663_889594701128441_924465738412438409_n.jpg', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor i', '2016-05-01 13:19:22', '0000-00-00 00:00:00'), 
('133', '120', '12806134_744707048962369_32498927917873636_n.jpg', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor i', '2016-05-01 13:19:24', '0000-00-00 00:00:00'), 
('134', '120', 'f0c2a110a8ba81ebe9b5c537d671958d.jpg', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor i', '2016-05-01 13:21:12', '0000-00-00 00:00:00'), 
('135', '4', 'logo.png', 'hola que hace', '2016-06-25 18:33:01', '0000-00-00 00:00:00');
/*!40000 ALTER TABLE `adjuntos_reportes` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'clientes' -- 
--

DROP TABLE IF EXISTS `clientes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `clientes` (
  `id_cliente` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
  `nom_cliente` varchar(45) NOT NULL,
  `razon_social_cliente` varchar(255) DEFAULT NULL,
  `nom_contact_principal` varchar(100) DEFAULT NULL,
  `tel_contact_principal` varchar(45) DEFAULT NULL,
  `email_contact_principal` varchar(60) DEFAULT NULL,
  `fec_reg_cliente` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fec_mod_cliente` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `activo_cliente` enum('0','1') NOT NULL DEFAULT '1',
  PRIMARY KEY (`id_cliente`),
  UNIQUE KEY `nom_cliente` (`nom_cliente`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'clientes' -------------------- 
--

LOCK TABLES `clientes` WRITE; 
--
/*!40000 ALTER TABLE `clientes` DISABLE KEYS */;
INSERT INTO clientes(`id_cliente`, `nom_cliente`, `razon_social_cliente`, `nom_contact_principal`, `tel_contact_principal`, `email_contact_principal`, `fec_reg_cliente`, `fec_mod_cliente`, `activo_cliente`) VALUES
('1', 'Axtel', 'AXTEL S.A DE C.V.', 'Pedro Almaraz', '5421315645', 'palmaraz@axtel.com.mx', '2015-12-04 17:41:59', '2016-05-31 13:31:53', '1'), 
('2', 'Bestel', 'BESTEL S.A DE C.V.', 'Contacto Bestel', '546132165', 'contacto@bestel.com', '2016-01-09 20:07:40', '0000-00-00 00:00:00', '1');
/*!40000 ALTER TABLE `clientes` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'departamentos' -- 
--

DROP TABLE IF EXISTS `departamentos`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `departamentos` (
  `id_dept` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
  `nom_dept` varchar(45) NOT NULL,
  PRIMARY KEY (`id_dept`),
  UNIQUE KEY `nom_dept` (`nom_dept`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'departamentos' -------------------- 
--

LOCK TABLES `departamentos` WRITE; 
--
/*!40000 ALTER TABLE `departamentos` DISABLE KEYS */;
INSERT INTO departamentos(`id_dept`, `nom_dept`) VALUES
('2', 'Departamento Prueba'), 
('1', 'Prueba');
/*!40000 ALTER TABLE `departamentos` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'dir_cliente' -- 
--

DROP TABLE IF EXISTS `dir_cliente`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `dir_cliente` (
  `id_dir_client` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
  `id_cliente` tinyint(3) unsigned NOT NULL,
  `calle` varchar(60) DEFAULT NULL,
  `numero` varchar(45) DEFAULT NULL,
  `colonia` varchar(60) DEFAULT NULL,
  `del_mun` varchar(60) DEFAULT NULL,
  `cp` varchar(10) DEFAULT NULL,
  `email_client` varchar(60) DEFAULT NULL,
  `tel_client` varchar(45) DEFAULT NULL,
  `localidad` varchar(45) NOT NULL,
  `cont_dir_cli` varchar(45) DEFAULT NULL,
  `activo_dir_client` enum('0','1') NOT NULL DEFAULT '1',
  PRIMARY KEY (`id_dir_client`),
  KEY `id_cliente` (`id_cliente`),
  CONSTRAINT `fk_dir_cliente_clientes_id_cliente` FOREIGN KEY (`id_cliente`) REFERENCES `clientes` (`id_cliente`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'dir_cliente' -------------------- 
--

LOCK TABLES `dir_cliente` WRITE; 
--
/*!40000 ALTER TABLE `dir_cliente` DISABLE KEYS */;
INSERT INTO dir_cliente(`id_dir_client`, `id_cliente`, `calle`, `numero`, `colonia`, `del_mun`, `cp`, `email_client`, `tel_client`, `localidad`, `cont_dir_cli`, `activo_dir_client`) VALUES
('1', '1', 'Calle', 'Int. 5 Ext. 6', 'Cualquier Colonia', 'Municipio', '94656', 'contacto@gmail.com', '5156444648', 'Monterrey', 'Algun Otro Contacto', '1'), 
('2', '1', 'Calle 1', 'Otro Cualquier Numero', 'Cualquier Colonia', 'Delegacion', '216546', 'contacto@gmail.com', '551216542565', 'MÃ©xico', 'Algun Otro Contacto', '1'), 
('3', '2', 'Calle Bestel', 'Dasf46545', 'Colonia', 'Delegacion', '66654', 'contacto@secundario.bestel', '15145611', 'Distrito Federal', 'Contacto Secundario', '1');
/*!40000 ALTER TABLE `dir_cliente` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'empaquetados' -- 
--

DROP TABLE IF EXISTS `empaquetados`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `empaquetados` (
  `id_empaq` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
  `status_empaq` varchar(45) NOT NULL,
  PRIMARY KEY (`id_empaq`),
  UNIQUE KEY `status_empaq` (`status_empaq`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'empaquetados' -------------------- 
--

LOCK TABLES `empaquetados` WRITE; 
--
/*!40000 ALTER TABLE `empaquetados` DISABLE KEYS */;
INSERT INTO empaquetados(`id_empaq`, `status_empaq`) VALUES
('4', 'Listo A Enviar'), 
('5', 'Proceso De EnvÃ­o'), 
('2', 'Proceso Empaquetado'), 
('3', 'Proceso Etiquetado'), 
('1', 'Proceso Limpieza');
/*!40000 ALTER TABLE `empaquetados` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'empleados' -- 
--

DROP TABLE IF EXISTS `empleados`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `empleados` (
  `id_emp` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `id_puesto` tinyint(3) unsigned DEFAULT NULL,
  `id_dept` tinyint(3) unsigned DEFAULT NULL,
  `nom_emp` varchar(45) NOT NULL,
  `apellido_pat_emp` varchar(45) NOT NULL,
  `apellido_mat_emp` varchar(45) DEFAULT NULL,
  `fec_nac_emp` date DEFAULT NULL,
  `tel_emp` varchar(45) DEFAULT NULL,
  `domicilio_emp` varchar(255) DEFAULT NULL,
  `email_emp` varchar(60) DEFAULT NULL,
  `sexo_emp` char(1) DEFAULT NULL,
  `fec_reg_emp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fec_mod_emp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `activo_emp` enum('0','1') NOT NULL DEFAULT '1',
  PRIMARY KEY (`id_emp`),
  KEY `id_puesto` (`id_puesto`),
  KEY `id_dept` (`id_dept`),
  CONSTRAINT `fk_empleados_departamentos_id_dept` FOREIGN KEY (`id_dept`) REFERENCES `departamentos` (`id_dept`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_empleados_puestos_id_puesto` FOREIGN KEY (`id_puesto`) REFERENCES `puestos` (`id_puesto`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'empleados' -------------------- 
--

LOCK TABLES `empleados` WRITE; 
--
/*!40000 ALTER TABLE `empleados` DISABLE KEYS */;
INSERT INTO empleados(`id_emp`, `id_puesto`, `id_dept`, `nom_emp`, `apellido_pat_emp`, `apellido_mat_emp`, `fec_nac_emp`, `tel_emp`, `domicilio_emp`, `email_emp`, `sexo_emp`, `fec_reg_emp`, `fec_mod_emp`, `activo_emp`) VALUES
('1', NULL, NULL, 'Empleado', 'De Prueba', NULL, '1983-01-03', '414132165', 'asdffsad sdf adf asf asdf asdf asdf', 'correo@empleado.com', 'M', '2016-01-03 00:04:45', '0000-00-00 00:00:00', '1'), 
('2', NULL, NULL, 'Segundo', 'Empleado', 'Materno', '1942-01-07', '541561465', '&lt;script&gt;alert();&lt;/script&gt;', 'empleado@nextworldtelecom.com.mx', 'M', '2016-01-31 01:42:53', '0000-00-00 00:00:00', '1'), 
('3', NULL, NULL, 'Santiago', 'Celis', 'Najera', '1965-07-13', '41105165', 'fsd dsaf asdfasd dafa adf adf', 'scelis@nextworldtelecom.com.mx', 'M', '2016-03-23 19:54:31', '2016-04-05 18:40:47', '1'), 
('4', NULL, NULL, 'Erick Jovany', 'Paz', 'Galindo', '1995-05-16', '5512345678', 'calle tal numero 5 colonia x delegacion tlalpan', 'epaz@nextworldtelecom.com.mx', 'M', '2016-03-24 10:47:22', '0000-00-00 00:00:00', '1'), 
('5', NULL, NULL, 'Jaime', 'Argueta', NULL, '1974-02-13', '5578621567', 'af df adffasdf  dsfsd fasdfasdf asdfasd &lt;br&gt;
avasdf dsfjasfdadsfdsf', 'jargueta@nextworldtelecom.com.mx', 'M', '2016-03-24 10:55:55', '0000-00-00 00:00:00', '1'), 
('6', NULL, '1', 'Empleado', 'De Prueba', 'Usuario', '1937-04-06', '5512345678', 'asdfsd', 'adsf@sdafsd.com', 'M', '2016-04-08 00:17:24', '2016-06-25 18:33:07', '1');
/*!40000 ALTER TABLE `empleados` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'equipos' -- 
--

DROP TABLE IF EXISTS `equipos`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `equipos` (
  `id_equipo` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_emp` smallint(5) unsigned DEFAULT NULL,
  `id_emp_regresa` smallint(5) unsigned DEFAULT NULL,
  `id_ord_rma` int(10) unsigned DEFAULT NULL,
  `id_ord_comp` int(10) unsigned DEFAULT NULL,
  `id_acuse` int(10) unsigned DEFAULT NULL,
  `id_dir_client` tinyint(3) unsigned DEFAULT NULL,
  `id_stat` tinyint(3) unsigned DEFAULT NULL,
  `id_ingreso` tinyint(3) unsigned DEFAULT NULL,
  `id_ubicacion` tinyint(3) unsigned DEFAULT NULL,
  `id_tecnologia` tinyint(3) unsigned DEFAULT NULL,
  `id_empaq` tinyint(3) unsigned DEFAULT NULL,
  `id_prioridad` tinyint(3) unsigned DEFAULT NULL,
  `no_serie_fisico` varchar(45) NOT NULL,
  `no_parte` varchar(45) NOT NULL,
  `no_serie_reporte` varchar(45) DEFAULT NULL,
  `descripcion` varchar(255) DEFAULT NULL,
  `fec_ingreso` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fec_salida_alm` datetime DEFAULT NULL,
  `fec_ingreso_alm` datetime DEFAULT NULL,
  `no_sap` varchar(25) DEFAULT NULL,
  `modelo` varchar(45) DEFAULT NULL,
  `obs_equip` mediumtext,
  `dias_contabilizados` smallint(6) DEFAULT NULL,
  PRIMARY KEY (`id_equipo`),
  KEY `id_emp` (`id_emp`),
  KEY `id_emp_regresa` (`id_emp_regresa`),
  KEY `id_ord_rma` (`id_ord_rma`),
  KEY `id_ord_comp` (`id_ord_comp`),
  KEY `id_acuse` (`id_acuse`),
  KEY `id_dir_client` (`id_dir_client`),
  KEY `id_stat` (`id_stat`),
  KEY `id_ingreso` (`id_ingreso`),
  KEY `id_ubicacion` (`id_ubicacion`),
  KEY `id_tecnologia` (`id_tecnologia`),
  KEY `id_empaq` (`id_empaq`),
  KEY `id_prioridad` (`id_prioridad`),
  CONSTRAINT `fk_equipos_acuses_id_acuse` FOREIGN KEY (`id_acuse`) REFERENCES `acuses` (`id_acuse`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_equipos_dir_cliente_id_dir_client` FOREIGN KEY (`id_dir_client`) REFERENCES `dir_cliente` (`id_dir_client`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_equipos_empaquetados_id_empaq` FOREIGN KEY (`id_empaq`) REFERENCES `empaquetados` (`id_empaq`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_equipos_empleados_id_emp` FOREIGN KEY (`id_emp`) REFERENCES `empleados` (`id_emp`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_equipos_ingresos_id_ingreso` FOREIGN KEY (`id_ingreso`) REFERENCES `ingresos` (`id_ingreso`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_equipos_orden_compra_id_ord_comp` FOREIGN KEY (`id_ord_comp`) REFERENCES `orden_compra` (`id_ord_comp`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_equipos_orden_rma_id_ord_rma` FOREIGN KEY (`id_ord_rma`) REFERENCES `orden_rma` (`id_ord_rma`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_equipos_prioridades_id_prioridad` FOREIGN KEY (`id_prioridad`) REFERENCES `prioridades` (`id_prioridad`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_equipos_statu_id_stat` FOREIGN KEY (`id_stat`) REFERENCES `statu` (`id_stat`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_equipos_tecnologias_id_tecnologia` FOREIGN KEY (`id_tecnologia`) REFERENCES `tecnologias` (`id_tecnologia`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_equipos_ubicaciones_id_ubicacion` FOREIGN KEY (`id_ubicacion`) REFERENCES `ubicaciones` (`id_ubicacion`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=72 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'equipos' -------------------- 
--

LOCK TABLES `equipos` WRITE; 
--
/*!40000 ALTER TABLE `equipos` DISABLE KEYS */;
INSERT INTO equipos(`id_equipo`, `id_emp`, `id_emp_regresa`, `id_ord_rma`, `id_ord_comp`, `id_acuse`, `id_dir_client`, `id_stat`, `id_ingreso`, `id_ubicacion`, `id_tecnologia`, `id_empaq`, `id_prioridad`, `no_serie_fisico`, `no_parte`, `no_serie_reporte`, `descripcion`, `fec_ingreso`, `fec_salida_alm`, `fec_ingreso_alm`, `no_sap`, `modelo`, `obs_equip`, `dias_contabilizados`) VALUES
('1', '1', '1', '1', NULL, '99', '1', '2', '2', '1', NULL, '4', NULL, 'NÃMERO DE SERIE', 'INGRESO PARTE', 'SERIE DE REPORTE', 'CON DESCRIPCION', '2015-12-04 18:06:18', '2016-01-06 15:46:52', '2016-01-20 23:13:40', NULL, NULL, 'alert();', '36'), 
('2', '5', '5', NULL, NULL, '97', '1', '1', NULL, '1', NULL, '4', NULL, 'NUMERO DE SERIE', 'NÃMERO DE PARTE', NULL, 'DESCRIPCION', '2015-12-04 18:07:20', '2016-03-09 04:01:34', '2016-03-22 04:03:14', NULL, NULL, NULL, '36'), 
('3', '1', '1', '2', NULL, '98', '1', '4', NULL, '1', NULL, '4', NULL, 'NUMERO DE SEREI', 'NÃMERO DE PARTE', NULL, 'CON DESCRIPCION', '2015-12-04 18:07:52', '2016-01-03 01:23:32', '2016-01-03 01:23:10', NULL, NULL, NULL, '36'), 
('4', '1', '5', '3', NULL, '97', '1', '1', NULL, '1', '1', '4', NULL, 'SERIE', 'PARTE', 'FSAFSDF', 'ASDFFD', '2015-11-09 18:08:20', '2016-01-11 17:59:47', '2016-01-27 04:04:55', NULL, NULL, 'asdfasdf sdaf asdf asdfsadfasdf asdfasdf adsf asdf sdaf adsf adsf asdf asdf dasf asf', '55'), 
('5', '1', '5', NULL, NULL, '96', '2', '2', NULL, '1', NULL, '4', NULL, 'ASFDDSF', 'AFSDFSADFASDF', NULL, 'DESCRIPCIÃN', '2015-11-09 18:08:32', '2016-01-01 05:10:51', '2016-01-12 16:31:25', NULL, NULL, NULL, '55'), 
('6', '1', '5', NULL, NULL, '96', '2', '2', NULL, '1', NULL, '4', NULL, 'GUARDAR CANCELAR', 'ASDFASDFSDDF', NULL, NULL, '2015-11-09 18:08:36', '2016-01-06 02:46:30', '2016-01-29 04:03:51', NULL, NULL, NULL, '55'), 
('7', '1', '5', NULL, NULL, '96', '2', '2', '1', '1', NULL, '4', NULL, 'ASDFSDFSADFDF', 'SADFSDAFDD', NULL, NULL, '2015-11-09 18:08:39', '2016-03-08 04:01:43', '2016-04-04 04:04:00', NULL, NULL, 'gothic noisuf x rxasdf  klsjdflajs ldjf ljsadfjaslf lsadjf ljsa jkdjf kjsdakfjlasdkf jsadfj kajf kjaskdflkajf kljasfj lkasjf ljsadfjakfj asdf 1231456789 asdfsd 1a2df1316544884121321646132132111 123456789 1', '55'), 
('8', '5', '1', '2', NULL, '94', '2', '2', '2', '1', NULL, '4', NULL, 'DDDDD', 'DADS', 'SERIE TAL', 'DESCRIPCION', '2015-12-01 00:47:21', '2015-12-07 00:42:25', '2015-12-11 00:43:31', NULL, NULL, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '39'), 
('9', '5', '3', NULL, NULL, '96', '2', '2', NULL, '1', NULL, '4', NULL, 'S/N', 'SADDSAFD', NULL, NULL, '2015-11-09 18:08:47', '2016-04-06 04:01:46', '2016-04-07 04:04:10', NULL, NULL, 'sadff sdafas sdaf asdf sdfas dsdaf asdf sdaf asdf asdf asdf af sdf adsf asdf asdf adsf asdf d 2', '55'), 
('10', '4', '4', NULL, NULL, '96', '2', '2', NULL, '1', NULL, '4', NULL, 'S/N', 'S/N', NULL, NULL, '2015-11-12 18:03:41', '2016-02-03 23:11:04', '2016-03-08 23:11:11', NULL, NULL, NULL, '51'), 
('11', '1', '5', NULL, NULL, '96', '2', '2', NULL, '1', NULL, '4', NULL, 'DSG', 'DSFGSDFF', NULL, 'SDFFD', '2016-01-03 04:07:52', '2016-01-03 01:12:56', '2016-04-08 04:03:04', NULL, NULL, NULL, '16'), 
('14', '4', '4', NULL, NULL, '97', '1', '1', NULL, '1', '1', '4', NULL, 'GSDFG', 'SDFFDF', NULL, 'DFSSSSF', '2016-01-03 04:03:25', '2016-03-11 23:13:51', '2016-03-29 23:14:10', NULL, NULL, NULL, '17'), 
('15', '2', '2', '3', NULL, '113', '3', '2', '2', '1', NULL, '4', '4', 'DA', 'AAAAA', NULL, 'BESTEL', '2016-01-09 20:08:22', '2016-01-12 23:14:37', '2016-01-31 02:55:02', NULL, NULL, NULL, '20'), 
('16', '2', '2', NULL, NULL, '113', '3', '2', NULL, '1', NULL, '4', NULL, '2165412156', '1ADS516514', NULL, 'DASDSFD', '2016-01-09 20:08:33', '2016-01-12 05:17:47', '2016-01-29 19:04:43', NULL, NULL, NULL, '20'), 
('21', '3', '3', '4', '1', '109', '1', '2', '2', '1', '2', '4', NULL, '201-550080-0061000067526070215', '201-550080-006', '1000067526070215', 'BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW', '2016-01-01 00:10:33', '2016-02-01 19:12:05', '2016-02-29 19:12:12', NULL, NULL, NULL, '19'), 
('22', NULL, NULL, NULL, NULL, NULL, '1', '2', '1', '2', '2', '1', '4', '201-550080-0061000069654070315', '201-550080-006', '1000069654070315', 'BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW', '2016-02-01 17:23:14', NULL, NULL, NULL, NULL, 'equipo que ingresa como garant&iacute;a, observaciones del equipo mostradas a cliente.', '114'), 
('23', '3', '3', '4', '1', '109', '1', '2', '2', '1', '2', '4', NULL, '201-550080-0060995058632060811', '201-550080-006', '995058632060811', 'BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW', '2016-01-01 00:00:53', '2016-02-10 19:12:17', '2016-02-19 19:12:26', NULL, NULL, NULL, '19'), 
('24', '3', '3', '4', '1', '100', '1', '3', '2', '1', '2', '4', NULL, '201-550080-0060995052533060429', '201-550080-006', '995052533060429', 'BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW', '2016-01-01 00:01:38', '2016-01-06 19:19:00', '2016-04-04 19:19:05', NULL, NULL, NULL, '19'), 
('25', '3', '3', '4', '1', '109', '1', '2', '2', '1', '2', '4', NULL, '201-550080-0060995251378060601', '201-550080-006', '995251378060601', 'BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW', '2016-01-01 00:02:37', '2016-02-25 19:13:12', '2016-02-29 19:13:18', NULL, NULL, NULL, '19'), 
('26', '4', '4', '4', '1', '109', '1', '2', '2', '1', '2', '4', NULL, '201-550080-0061000066831070126', '201-550080-006', '1000066831070126', 'BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW', '2016-01-01 00:04:43', '2016-01-05 19:13:57', '2016-01-07 19:14:03', NULL, NULL, NULL, '19'), 
('27', '1', '4', '4', '1', '100', '1', '3', '2', '1', '2', '4', NULL, '201-550080-0061000067516070215', '201-550080-006', '1000067516070215', 'BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW', '2016-01-01 00:05:29', '2016-01-20 19:17:56', '2016-03-21 19:18:04', NULL, NULL, NULL, '19'), 
('28', '2', '2', '4', '1', '100', '1', '3', '2', '1', '2', '4', NULL, '201-550080-0060995052555060429', '201-550080-006', '995052555060429', 'BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW', '2016-01-01 00:06:34', '2016-03-09 19:18:23', '2016-04-04 19:18:29', NULL, NULL, NULL, '19'), 
('29', '1', '1', '4', '1', '100', '1', '3', '2', '1', '2', '4', NULL, '201-550080-0061000066862070126', '201-550080-006', '1000066862070126', 'BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW', '2016-01-01 00:07:29', '2016-01-01 19:18:10', '2016-04-11 19:18:14', NULL, NULL, NULL, '19'), 
('30', '3', '3', '4', '1', '100', '1', '3', '2', '1', '2', '4', NULL, '201-550080-0060995052474060429', '201-550080-006', '995052474060429', 'BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW', '2016-01-01 00:08:21', '2016-01-13 19:19:16', '2016-01-26 19:19:28', NULL, NULL, NULL, '19'), 
('31', '1', '1', '4', '1', '109', '1', '2', '2', '1', '2', '4', NULL, '201-550080-0061000066534070122', '201-550080-006', '1000066534070122', 'BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW', '2016-01-01 00:09:39', '2016-01-07 00:41:29', '2016-02-18 19:11:48', NULL, NULL, NULL, '20'), 
('32', '2', '2', '4', '1', '100', '1', '3', '2', '1', '2', '4', NULL, 'ASY23235010995058153060804', 'S/N', '995058153060804', 'WAVEFORM PROC', '2016-01-01 00:12:19', '2016-03-10 19:18:34', '2016-03-14 19:18:41', NULL, NULL, NULL, '19'), 
('33', '4', '4', '4', '1', '100', '1', '3', '2', '1', '2', '4', NULL, 'ASY23235010995062245061113', 'S/N', '995062245061113', 'WAVEFORM PROC', '2016-01-01 00:13:14', '2016-01-01 23:12:37', '2016-01-13 23:12:45', NULL, NULL, NULL, '19'), 
('34', '4', '4', '4', '1', '100', '1', '3', '2', '1', '2', '4', NULL, '101-550200-0010992070998070409', 'S/N', '992070998070409', 'BASE CONTROL PROC PCA (BCP2)', '2016-01-01 00:13:45', '2016-01-15 23:12:58', '2016-04-11 23:13:03', NULL, NULL, NULL, '19'), 
('35', '4', '4', '4', '1', '109', '1', '2', '2', '1', '2', '4', NULL, '191-550206-0020995061921061106', 'S/N', '995061921061106', 'TRANSCEIVER', '2016-01-01 00:14:14', '2016-01-18 19:14:10', '2016-01-28 19:14:16', NULL, NULL, NULL, '19'), 
('36', '2', NULL, '4', '1', '115', '1', '3', '2', '2', '2', '4', NULL, '101-550200-0010995057108060725', 'S/N', '995057108060725', 'BASE CONTROL PROC PCA (BCP2)', '2016-01-01 00:14:39', NULL, NULL, NULL, NULL, 'gothic batc-caver`s', '85'), 
('37', '4', '4', '4', '1', '109', '1', '2', '2', '1', '2', '4', NULL, 'ASY23235011000067012070206', 'S/N', '1000067012070206', 'WAVEFORM PROC', '2016-01-01 00:15:18', '2016-01-12 19:16:40', '2016-01-27 19:16:49', NULL, NULL, NULL, '19'), 
('38', '4', '3', '4', '1', '109', '1', '2', '2', '1', '2', '4', NULL, '191-550206-0020995055728060630', 'S/N', '995055728060630', 'TRANSCEIVER', '2016-01-01 00:15:48', '2016-02-01 19:16:58', '2016-03-09 19:17:03', NULL, NULL, NULL, '19'), 
('39', '4', '4', '4', '1', '107', '1', '2', '2', '1', '2', '4', NULL, 'ASY23235011000069212070307', 'S/N', '1000069212070307', 'WAVEFORM PROC', '2016-01-01 00:16:18', '2016-02-09 19:17:26', '2016-02-10 19:17:31', NULL, NULL, NULL, '19'), 
('40', '3', '3', '4', '1', '109', '1', '2', '2', '1', '2', '4', NULL, '191-550206-0020995049490060221', 'S/N', '995049490060221', 'TRANSCEIVER', '2016-01-01 00:16:55', '2016-02-10 19:13:27', '2016-02-24 19:13:36', NULL, NULL, NULL, '19'), 
('41', '3', '3', '4', '1', '109', '1', '2', '2', '1', '2', '4', NULL, '191-550206-0020995049482060221', 'S/N', '995049482060221', 'TRANSCEIVER', '2016-01-01 00:17:48', '2016-01-12 19:13:46', '2016-02-10 19:13:51', NULL, NULL, NULL, '19'), 
('42', NULL, NULL, NULL, NULL, NULL, '1', NULL, NULL, '2', '3', NULL, NULL, '3426705427', '732-101/01 186F', '3426705427', 'IDU,SRAL,WIRED SUBRACK,UP TO 8E1', '2016-02-01 17:21:08', NULL, NULL, NULL, NULL, NULL, '114'), 
('43', '3', '3', '4', '1', '111', '1', '2', '2', '1', '3', '4', NULL, '4786706717', '143732-221/23B207', '4786706717', 'ODU,SRAL,23GHZ,ALTA', '2016-01-01 00:20:37', '2016-02-02 19:10:55', '2016-03-09 19:11:02', NULL, NULL, NULL, '19'), 
('44', '3', '3', '4', '1', '111', '1', '2', '2', '1', '3', '4', NULL, '1956208970', '143612-314/03E', '1956208970', 'IDU,SRAL,RTM,UP TO 4E1', '2016-01-01 00:23:12', '2016-02-08 19:11:12', '2016-02-29 19:11:20', NULL, NULL, NULL, '19'), 
('45', '2', '2', '4', '1', '111', '1', '2', '2', '1', '3', '4', NULL, '3346701068', '143732-221/23B207', '3346701068', 'ODU,SRAL,23GHZ,ALTA', '2016-01-01 00:53:59', '2016-01-05 19:10:40', '2016-01-28 19:10:50', NULL, NULL, NULL, '0'), 
('46', '3', '3', '4', '1', '100', '1', '3', '2', '1', '3', '4', NULL, '3456706382', '143732-221/23B208', '3456706382', 'ODU,SRAL,23GHZ,BAJA', '2016-01-01 00:24:27', '2016-02-02 19:19:43', '2016-02-02 19:19:47', NULL, NULL, NULL, '19'), 
('47', '3', '3', '4', '1', '100', '1', '3', '2', '1', '3', '4', NULL, '4446205112', '143612-314/15', '4446205112', 'IDU,SRAL,RTM,8-16E1', '2016-01-01 00:24:49', '2016-02-03 19:19:53', '2016-04-06 19:20:01', NULL, NULL, NULL, '19'), 
('48', '2', '3', '4', '1', '100', '1', '3', '2', '1', '3', '4', NULL, '4856706537', '143732-221/23B208', '4856706537', 'ODU,SRAL,23GHZ,BAJA', '2016-01-01 00:25:33', '2016-02-03 19:18:47', '2016-02-18 19:18:53', NULL, NULL, NULL, '19'), 
('49', '1', '1', '4', '1', '111', '1', '2', '2', '1', '3', '4', NULL, '4596706540', '143732-221/23B207', '4596706540', 'ODU,SRAL,23GHZ,ALTA', '2016-01-01 00:26:05', '2016-01-06 19:09:48', '2016-02-01 19:10:00', NULL, NULL, NULL, '19'), 
('50', '1', '1', '4', '1', '111', '1', '2', '2', '1', '3', '4', NULL, '4606705035', '143732-221/23B208', '4606705035', 'ODU,SRAL,23GHZ,BAJA', '2016-01-01 00:26:44', '2016-01-11 19:10:07', '2016-01-29 19:10:16', NULL, NULL, NULL, '19'), 
('51', '3', '2', '4', '1', '100', '1', '3', '2', '1', '3', '4', NULL, '3376216148', 'S/N', '3376216148', 'IDU,SRAL,INTERFACE G.703,UP TO 8E1', '2016-01-01 00:27:17', '2016-02-02 23:12:23', '2016-02-29 23:12:30', NULL, NULL, NULL, '19'), 
('52', NULL, NULL, NULL, NULL, NULL, '1', NULL, NULL, '2', '3', NULL, NULL, '3476218293', '143634-001/68', '3476218293', 'IDU,SRAL,CONTROLLER CARD', '2016-02-01 02:57:44', NULL, NULL, NULL, NULL, 'garantia', '114'), 
('53', '1', '1', '4', '1', '111', '1', '2', '2', '1', '3', '4', NULL, '4676206519', '143634-001/68', '4676206519', 'IDU,SRAL,CONTROLLER CARD', '2016-01-01 00:29:37', '2016-01-01 19:10:25', '2016-03-02 19:10:31', NULL, NULL, NULL, '19'), 
('54', '4', '4', '4', '1', '100', '1', '3', '2', '1', '3', '4', NULL, '3256205551', '612-404/01 009', '3256205551', 'IDU,SRAL,INTERFACE G.703,UP TO 8E1', '2016-01-01 00:30:17', '2016-03-08 23:13:22', '2016-03-16 23:13:29', NULL, NULL, NULL, '19'), 
('55', '5', '5', '4', '1', '100', '1', '3', '2', '1', '3', '4', NULL, '3556213715', 'S/N', '3556213715', 'IDU,SRAL,INTERFACE G.703,UP TO 8E1', '2016-01-01 00:30:38', '2016-02-03 03:58:30', '2016-03-08 04:01:58', NULL, NULL, NULL, '19'), 
('56', '5', '5', '4', '1', '100', '1', '3', '2', '1', '3', '4', NULL, '3286208234', '143612-314/03E', '3286208234', 'IDU,SRAL,RTM,UP TO 4E1', '2016-01-01 00:31:08', '2016-01-05 03:59:35', '2016-02-02 04:02:04', NULL, NULL, NULL, '19'), 
('57', '5', '5', '4', '1', '100', '1', '3', '2', '1', '3', '4', NULL, '3406211300', '143612-314/03E', '3406211300', 'IDU,SRAL,RTM,UP TO 4E1', '2016-01-01 00:31:31', '2016-01-06 03:59:48', '2016-02-10 04:02:22', NULL, NULL, NULL, '19'), 
('58', '5', '5', '4', '1', '100', '1', '3', '2', '1', '3', '4', NULL, '3456706001', 'S/N', '3456706001', 'IDU,SRAL,WIRED SUBRACK,8-16E1', '2016-01-01 00:31:56', '2016-01-05 04:00:52', '2016-02-02 04:02:40', NULL, NULL, NULL, '19'), 
('59', '5', '5', '4', '1', '100', '1', '3', '2', '1', '4', '4', NULL, 'IF6210776', '400039', 'IF6210776', 'IF MUX 8R 3.5 GHZ/10.5', '2016-01-01 00:34:32', '2016-02-09 04:01:00', '2016-04-01 04:02:54', NULL, NULL, NULL, '19'), 
('60', '5', '5', '4', '1', '100', '1', '3', '2', '1', '4', '4', NULL, '90013251', '400320', '90013251', 'TERMINAL STATION 1300 3.5/10.5 AC /E', '2016-01-01 00:35:00', '2016-02-16 04:01:06', '2016-04-01 04:02:59', NULL, NULL, NULL, '19'), 
('61', '3', '3', '4', '1', '101', '1', '3', '2', '1', '4', '4', NULL, '6081945', '400310', '6081945', 'TERMINAL STATION MODULE W /2E INTERFACE', '2016-01-01 00:35:50', '2016-03-01 19:17:38', '2016-04-11 19:17:45', NULL, NULL, NULL, '19'), 
('62', '4', '4', '4', '1', '108', '1', '2', '2', '1', '4', '4', NULL, '6526968', '400314', '6526968', 'TERMINAL STATION BU 3.5/10.5 GHZ 220V E1-75 NC', '2016-01-01 00:36:20', '2016-01-06 19:17:09', '2016-02-08 19:17:19', NULL, NULL, NULL, '19'), 
('63', NULL, NULL, '4', NULL, NULL, '3', '13', NULL, '2', NULL, '1', NULL, 'ADSFADSF', 'DSAF', 'ADSFDSF', 'ADSDSF', '2016-01-31 01:29:21', NULL, NULL, 'SELECT * FROM USUARIOS WH', NULL, 'select usuarios from INFORMATION_SCHEMA.tables', '115'), 
('64', '3', '3', NULL, NULL, '112', '3', '3', NULL, '1', NULL, '4', NULL, 'FSDGFDG4546456', 'DFG', 'FDSSS', 'GF', '2016-01-31 01:48:39', '2015-12-10 19:05:00', '2015-12-31 19:05:17', NULL, NULL, 'SELECT * FROM usuarios WHERE usuario LIKE &quot;%&quot;;', '0'), 
('65', '3', '3', NULL, NULL, '112', '3', '2', NULL, '1', NULL, '4', NULL, '14894516', '498498', NULL, NULL, '2016-01-31 02:27:44', '2016-01-01 19:09:21', '2016-04-01 19:09:36', NULL, NULL, 'SELECT * FROM usuarios WHERE usuario LIKE &quot;%&quot;;', '0'), 
('66', '1', '2', NULL, NULL, '110', '3', '2', NULL, '1', NULL, '4', NULL, 'OTRO NUM', 'ADSF', 'FDS', 'FFFFADSF', '2016-01-31 02:37:37', '2016-02-22 19:11:29', '2016-03-17 19:11:35', NULL, NULL, 'NULL', '0'), 
('67', NULL, NULL, NULL, NULL, NULL, '2', NULL, NULL, '2', '2', NULL, NULL, '54165165', 'FGDSG', 'DFGASDFDSF', 'SDFGS', '2016-02-01 17:15:55', NULL, NULL, NULL, NULL, NULL, '114'), 
('68', NULL, NULL, '4', NULL, NULL, '3', NULL, NULL, '1', '3', '4', NULL, 'SERIE 1233&Eacute;', 'PARTE', 'SERIE REPORTE 123', 'Con La Misma Descripcion', '2016-05-01 13:00:02', NULL, NULL, '21231545', NULL, 'esta es una observacion de ejemplo con mas explicaciones', '50'), 
('69', NULL, NULL, '4', NULL, '114', '1', NULL, NULL, '1', '4', '4', NULL, 'OTRO NUMERO DE SERI', 'PARTE', 'NUMERO DE SERIE', 'Con La Misma Descripcion', '2016-05-01 13:03:44', NULL, NULL, '21231545', NULL, 'con una nueva observacion para este equipos.  ();', '0'), 
('70', NULL, NULL, NULL, NULL, '114', '1', NULL, NULL, '1', '4', '4', NULL, 'EQUIPO NO ASIGNAREMOS', 'NUEVOS DATOS', 'SERIE REPORTE', 'DESCRIPCION &lt;SCRIPT&gt; ALERT();&lt;/SCRIPT&gt;', '2016-04-01 13:04:43', NULL, NULL, NULL, NULL, 'sin observacion alguna. &lt;script&gt; alert(); &lt;/script&gt;', '20'), 
('71', NULL, NULL, NULL, NULL, NULL, '2', NULL, NULL, '1', NULL, NULL, NULL, 'NU-MERO', 'ASDFSD', 'DSAFDSF', 'FDSAFSDF', '2016-06-17 06:03:47', NULL, NULL, NULL, NULL, NULL, '15');
/*!40000 ALTER TABLE `equipos` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'generar_num' -- 
--

DROP TABLE IF EXISTS `generar_num`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `generar_num` (
  `id_generar_num` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
  `id_cliente` tinyint(3) unsigned NOT NULL,
  `iniciales` varchar(7) DEFAULT NULL,
  `num_acuse` varchar(10) DEFAULT NULL,
  `num_report` varchar(10) DEFAULT NULL,
  `num_rma` varchar(10) DEFAULT NULL,
  `garantia` tinyint(3) unsigned NOT NULL DEFAULT '6',
  PRIMARY KEY (`id_generar_num`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'generar_num' -------------------- 
--

LOCK TABLES `generar_num` WRITE; 
--
/*!40000 ALTER TABLE `generar_num` DISABLE KEYS */;
INSERT INTO generar_num(`id_generar_num`, `id_cliente`, `iniciales`, `num_acuse`, `num_report`, `num_rma`, `garantia`) VALUES
('1', '1', 'NWT', '00043', '00074', '13', '6'), 
('2', '2', 'NWT', '00050', '00089', '13', '6'), 
('3', '3', 'NWT', '00029', '00013', '13', '6');
/*!40000 ALTER TABLE `generar_num` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'historiales' -- 
--

DROP TABLE IF EXISTS `historiales`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `historiales` (
  `id_historial` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `id_equipo` int(10) unsigned NOT NULL,
  `historial` mediumtext NOT NULL,
  `fec_hist` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fec_mod_hist` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `generado_por` int(11) NOT NULL,
  PRIMARY KEY (`id_historial`),
  KEY `id_equipo` (`id_equipo`),
  CONSTRAINT `fk_historiales_equipos_id_equipo` FOREIGN KEY (`id_equipo`) REFERENCES `equipos` (`id_equipo`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'historiales' -------------------- 
--

LOCK TABLES `historiales` WRITE; 
--
/*!40000 ALTER TABLE `historiales` DISABLE KEYS */;
INSERT INTO historiales(`id_historial`, `id_equipo`, `historial`, `fec_hist`, `fec_mod_hist`, `generado_por`) VALUES
('1', '8', 'afsdfd', '2015-12-04 19:51:39', '2015-12-07 16:59:11', '0'), 
('3', '7', 'este es un comentari ode historial', '2015-12-05 13:33:16', '2015-12-05 13:33:16', '7'), 
('4', '7', 'Lorem ipsum ad his scripta blandit partiendo, eum fastidii accumsan euripidis in, eum liber hendrerit an. Qui ut wisi vocibus suscipiantur, quo dicit ridens inciderint id. Quo mundi lobortis reformidans eu, legimus senserit definiebas an eos. Eu sit tincidunt incorrupte definitionem, vis mutat affert percipit cu, eirmod consectetuer signiferumque eu per. In usu latine equidem dolores. Quo no falli viris intellegam, ut fugit veritus placerat per.
Ius id vidit volumus mandamus, vide veritus democritum te nec, ei eos debet libris consulatu. No mei ferri graeco dicunt, ad cum veri accommodare. Sed at malis omnesque delicata, usu et iusto zzril meliore. Dicunt maiorum eloquentiam cum cu, sit summo dolor essent te. Ne quodsi nusquam legendos has, ea dicit voluptua eloquentiam pro, ad sit quas qualisque. Eos vocibus deserunt quaestio ei.
Blandit incorrupte quaerendum in quo, nibh impedit id vis, vel no nullam semper audiam. Ei populo graeci consulatu mei, has ea stet modus phaedrum. Inani oblique ne has, duo et veritus detraxit. Tota ludus oratio ea mel, offendit persequeris ei vim. Eos dicat oratio partem ut, id cum ignota senserit intellegat. Sit inani ubique graecis ad, quando graecis liberavisse et cum, dicit option eruditi at duo. Homero salutatus suscipiantur eum id, tamquam voluptaria expetendis ad sed, nobis feugiat similique usu ex.
Eum hinc argumentum te, no sit percipit adversarium, ne qui feugiat persecuti. Odio omnes scripserit ad est, ut vidit lorem maiestatis his, putent mandamus gloriatur ne pro. Oratio iriure rationibus ne his, ad est corrumpit splendide. Ad duo appareat moderatius, ei falli tollit denique eos. Dicant evertitur mei in, ne his deserunt perpetua sententiae, ea sea omnes similique vituperatoribus. Ex mel errem intellegebat comprehensam, vel ad tantas antiopam delicatissimi, tota ferri affert eu nec. Legere expetenda pertinacia ne pro, et pro impetus persius assueverit.
Ea mei nullam facete, omnis oratio offendit ius cu. Doming takimata repudiandae usu an, mei dicant takimata id, pri eleifend inimicus euripidis at. His vero singulis ea, quem euripidis abhorreant mei ut, et populo iriure vix. Usu ludus affert voluptaria ei, vix ea error definitiones, movet fastidii signiferumque in qui.
Vis prodesset adolescens adipiscing te, usu mazim perfecto recteque at, assum putant erroribus mea in. Vel facete imperdiet id, cum an libris luptatum perfecto, vel fabellas inciderint ut. Veri facete debitis ea vis, ut eos oratio erroribus. Sint facete perfecto no vel, vim id omnium insolens. Vel dolores perfecto pertinacia ut, te mel meis ullum dicam, eos assum facilis corpora in.
Mea te unum viderer dolores, nostrum detracto nec in, vis no partem definiebas constituam. Dicant utinam philosophia has cu, hendrerit prodesset at nam, eos an bonorum dissentiet. Has ad placerat intellegam consectetuer, no adipisci mandamus senserit pro, torquatos similique percipitur est ex. Pro ex putant deleniti repudiare, vel an aperiam sensibus suavitate. Ad vel epicurei convenire, ea soluta aliquid deserunt ius, pri in errem putant feugiat.
Sed iusto nihil populo an, ex pro novum homero cotidieque. Te utamur civibus eleifend qui, nam ei brute doming concludaturque, modo aliquam facilisi nec no. Vidisse maiestatis constituam eu his, esse pertinacia intellegam ius cu. Eos ei odio veniam, eu sumo altera adipisci eam, mea audiam prodesset persequeris ea. Ad vitae dictas vituperata sed, eum posse labore postulant id. Te eligendi principes dignissim sit, te vel dicant officiis repudiandae.
Id vel sensibus honestatis omittantur, vel cu nobis commune patrioque. In accusata definiebas qui, id tale malorum dolorem sed, solum clita phaedrum ne his. Eos mutat ullum forensibus ex, wisi perfecto urbanitas cu eam, no vis dicunt impetus. Assum novum in pri, vix an suavitate moderatius, id has reformidans referrentur. Elit inciderint omittantur duo ut, dicit democritum signiferumque eu est, ad suscipit delectus mandamus duo. An harum equidem maiestatis nec.
At has veri feugait placerat, in semper offendit praesent his. Omnium impetus facilis sed at, ex viris tincidunt ius. Unum eirmod dignissim id quo. Sit te atomorum quaerendum neglegentur, his primis tamquam et. Eu quo quot veri alienum, ea eos nullam luptatum accusamus. Ea mel causae phaedrum reprimique, at vidisse dolores ocurreret nam.', '2015-12-05 13:36:42', '2015-12-12 15:15:02', '7'), 
('8', '8', '\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\"', '2015-12-06 18:15:15', '2015-12-06 18:15:43', '7'), 
('10', '6', 'GUARDAR CANCELAR', '2016-01-04 02:23:42', '0000-00-00 00:00:00', '7'), 
('11', '9', 'dsaffasd  asd fsd sadfsdf', '2016-01-15 01:59:56', '0000-00-00 00:00:00', '7'), 
('12', '4', 'eliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjuntoeliminadjunto', '2016-01-22 19:14:07', '2016-01-23 18:33:41', '7'), 
('14', '21', 'Serie de Reporte : 1000067526070215, Serie Fisica : 201-550080-0061000067526070215, Numero de Parte : 201-550080-006, DescripciÃ³n : BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW, Fecha Ingreso : 01-Ene-2016 - 11:59:28 PM, No. de SAP : , Fecha salida para reparaciÃ³n : , Responsable de equipo : , Entrego Equipo : , Fecha de entrega status final : , DÃ­as con el equipo : , Status : , Fecha Envio : , No. de Acuse : , Dias Dentro de Instalaciones : , Cliente: Axtel - Monterrey, Ingreso Para : , No. RMA : , No. Orden Compra : , Tecnologia : Symetry, Observaciones :', '2016-01-28 00:10:33', '0000-00-00 00:00:00', '0'), 
('15', '52', 'Serie de Reporte : 3476218293, Serie Fisica : 3476218293, Numero de Parte : 143634-001/68, Descripci&oacute;n : IDU,SRAL,CONTROLLER CARD, Fecha Ingreso : 01-Ene-2016 - 00:29:13 AM, No. de SAP : , Fecha salida para reparaci&oacute;n : , Responsable de equipo : , Entrego Equipo : , Fecha de entrega status final : , D&iacute;as con el equipo : , Status : Reparado, Fecha Envio : 01-Feb-2016 - 00:20:18 AM, No. de Acuse : 1100040, Dias Dentro de Instalaciones : 19, Cliente: Axtel - Monterrey, Ingreso Para : Reparaci&oacute;n, No. RMA : NWTAXT10280116, No. Orden Compra : COMPRAAXTEL260116, Tecnologia : Siemens, Observaciones :', '2016-02-01 02:57:44', '0000-00-00 00:00:00', '0'), 
('16', '42', 'Serie de Reporte : 3426705427, Serie Fisica : 3426705427, Numero de Parte : 732-101/01 186F, Descripci&oacute;n : IDU,SRAL,WIRED SUBRACK,UP TO 8E1, Fecha Ingreso : 01-Ene-2016 - 00:19:17 AM, No. de SAP : , Fecha salida para reparaci&oacute;n : , Responsable de equipo : , Entrego Equipo : , Fecha de entrega status final : , D&iacute;as con el equipo : , Status : Reparado, Fecha Envio : 01-Feb-2016 - 00:20:18 AM, No. de Acuse : 1100040, Dias Dentro de Instalaciones : 19, Cliente: Axtel - Monterrey, Ingreso Para : Reparaci&oacute;n, No. RMA : NWTAXT10280116, No. Orden Compra : COMPRAAXTEL260116, Tecnologia : Siemens, Observaciones :', '2016-02-01 17:21:08', '0000-00-00 00:00:00', '0'), 
('17', '22', 'Serie de Reporte : 1000069654070315, Serie Fisica : 201-550080-0061000069654070315, Numero de Parte : 201-550080-006, Descripci&oacute;n : BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW, Fecha Ingreso : 01-Ene-2016 - 00:00:11 AM, No. de SAP : , Fecha salida para reparaci&oacute;n : , Responsable de equipo : , Entrego Equipo : , Fecha de entrega status final : , D&iacute;as con el equipo : , Status : Irreparable, Fecha Envio : 28-Ene-2016 - 00:58:55 AM, No. de Acuse : 1100030, Dias Dentro de Instalaciones : 19, Cliente: Axtel - Monterrey, Ingreso Para : Reparaci&oacute;n, No. RMA : NWTAXT10280116, No. Orden Compra : COMPRAAXTEL260116, Tecnologia : Symetry, Observaciones :', '2016-02-01 17:23:14', '0000-00-00 00:00:00', '0'), 
('18', '36', 'MD5 Checksum', '2016-03-02 01:29:35', '0000-00-00 00:00:00', '7'), 
('19', '68', 'se verifica aplicacion con historial a este numero de serie', '2016-05-01 13:15:52', '0000-00-00 00:00:00', '7');
/*!40000 ALTER TABLE `historiales` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'inf_facturacion' -- 
--

DROP TABLE IF EXISTS `inf_facturacion`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `inf_facturacion` (
  `id_inf_facturacion` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `id_equipo` int(10) unsigned NOT NULL,
  `precio` decimal(10,2) NOT NULL DEFAULT '0.00',
  `no_factura` varchar(20) NOT NULL,
  `no_sr` varchar(45) DEFAULT NULL,
  `fecha_factura` date DEFAULT NULL,
  `comentarios_inf_facturacion` mediumtext,
  PRIMARY KEY (`id_inf_facturacion`),
  KEY `id_equipo` (`id_equipo`),
  CONSTRAINT `fk_inf_facturacion_equipos_id_equipo` FOREIGN KEY (`id_equipo`) REFERENCES `equipos` (`id_equipo`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Esctructura de tabla 'ingresos' -- 
--

DROP TABLE IF EXISTS `ingresos`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `ingresos` (
  `id_ingreso` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
  `ingresa_para` varchar(45) NOT NULL,
  PRIMARY KEY (`id_ingreso`),
  UNIQUE KEY `ingresa_para` (`ingresa_para`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'ingresos' -------------------- 
--

LOCK TABLES `ingresos` WRITE; 
--
/*!40000 ALTER TABLE `ingresos` DISABLE KEYS */;
INSERT INTO ingresos(`id_ingreso`, `ingresa_para`) VALUES
('1', 'GarantÃ­a'), 
('4', 'Maqueta'), 
('3', 'PrÃ©stamo'), 
('5', 'Reacondicionamiento'), 
('2', 'ReparaciÃ³n');
/*!40000 ALTER TABLE `ingresos` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'mensajes' -- 
--

DROP TABLE IF EXISTS `mensajes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `mensajes` (
  `id_mensaje` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `enviado_a` int(10) unsigned NOT NULL,
  `recibido_de` int(10) unsigned NOT NULL,
  `asunto_mensaje` varchar(255) NOT NULL,
  `mensaje` mediumtext NOT NULL,
  `fec_mensaje` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `mensaje_visto` enum('0','1') NOT NULL DEFAULT '0',
  `eliminado_por` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_mensaje`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'mensajes' -------------------- 
--

LOCK TABLES `mensajes` WRITE; 
--
/*!40000 ALTER TABLE `mensajes` DISABLE KEYS */;
INSERT INTO mensajes(`id_mensaje`, `enviado_a`, `recibido_de`, `asunto_mensaje`, `mensaje`, `fec_mensaje`, `mensaje_visto`, `eliminado_por`) VALUES
('1', '7', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 10Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservacionesASFDDSFASFSADFASDFASDFSDFSADFDFDDDDDS/NS/NSERIEASDFFDNÃMERO DE SERIECON DESCRIPCIONNUMERO DE SEREICON DESCRIPCIONNUMERO DE SERIEDESCRIPCION', '2015-12-04 19:41:02', '1', '0'), 
('2', '7', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 1Equipos de Garantia: 1Serie FisicoDescripci&oacutenObservacionesDDDDD * Aplica Garantia *', '2015-12-06 00:41:53', '1', '0'), 
('3', '7', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 2Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservacionesFASDSDAFFDSGSDFFD', '2016-01-02 23:45:53', '1', '0'), 
('4', '7', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 2Equipos de Garantia: 1Serie FisicoDescripci&oacutenObservacionesASDFDescripcion * Aplica Garantia * GSDFGDFSSSSF', '2016-01-03 01:18:21', '1', '0'), 
('5', '7', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 1Equipos de Garantia: 1Serie FisicoDescripci&oacutenObservacionesASDFDescripcion * Aplica Garantia *', '2016-01-03 02:16:00', '1', '0'), 
('6', '7', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 3Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservaciones000000ASDFASDFASDDABESTEL2165412156DASDSFD', '2016-01-09 20:09:17', '1', '0'), 
('7', '8', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 3Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservaciones000000ASDFASDFASDDABESTEL2165412156DASDSFD', '2016-01-09 20:09:17', '0', '0'), 
('8', '7', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 11Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservacionesASFDDSFGUARDAR CANCELARS/Nsadff sdafas sdaf asdf sdfas dsdaf asdf sdaf asdf asdf asdf af sdf adsf asdf asdf adsf asdf d 2S/N000000ASDFASDFASDSERIEASDFFDasdfasdf sdaf asdf asdfsadfasdf asdfasdf adsf asdf sdaf adsf adsf asdf asdf dasf asfNUMERO DE SEREICON DESCRIPCION2165412156DASDSFDNUMERO DE SERIEDESCRIPCIONGSDFGDFSSSSFDSGSDFFD', '2016-01-12 16:53:18', '1', '0'), 
('9', '8', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 11Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservacionesASFDDSFGUARDAR CANCELARS/Nsadff sdafas sdaf asdf sdfas dsdaf asdf sdaf asdf asdf asdf af sdf adsf asdf asdf adsf asdf d 2S/N000000ASDFASDFASDSERIEASDFFDasdfasdf sdaf asdf asdfsadfasdf asdfasdf adsf asdf sdaf adsf adsf asdf asdf dasf asfNUMERO DE SEREICON DESCRIPCION2165412156DASDSFDNUMERO DE SERIEDESCRIPCIONGSDFGDFSSSSFDSGSDFFD', '2016-01-12 16:53:18', '0', '0'), 
('10', '7', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 2Equipos de Garantia: 2Serie FisicoDescripci&oacutenObservacionesDDASDADSSDF * Aplica Garantia * ASDFDescripcion * Aplica Garantia *', '2016-01-27 22:23:36', '1', '0'), 
('11', '8', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 2Equipos de Garantia: 2Serie FisicoDescripci&oacutenObservacionesDDASDADSSDF * Aplica Garantia * ASDFDescripcion * Aplica Garantia *', '2016-01-27 22:23:36', '0', '0'), 
('12', '7', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 1Equipos de Garantia: 1Serie FisicoDescripci&oacutenObservaciones54165165ASDF * Aplica Garantia *', '2016-01-27 22:48:11', '1', '0'), 
('13', '8', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 1Equipos de Garantia: 1Serie FisicoDescripci&oacutenObservaciones54165165ASDF * Aplica Garantia *', '2016-01-27 22:48:11', '0', '0'), 
('14', '7', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 42Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservaciones101-550200-0010992070998070409BASE CONTROL PROC PCA (BCP2)101-550200-0010995057108060725BASE CONTROL PROC PCA (BCP2)201-550080-0061000067526070215BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0061000069654070315BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0060995058632060811BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0060995052533060429BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0060995251378060601BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0061000066831070126BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0061000067516070215BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0060995052555060429BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0061000066862070126BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0060995052474060429BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0061000066534070122BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW3476218293IDU,SRAL,CONTROLLER CARD4676206519IDU,SRAL,CONTROLLER CARD3376216148IDU,SRAL,INTERFACE G.703,UP TO 8E13256205551IDU,SRAL,INTERFACE G.703,UP TO 8E13556213715IDU,SRAL,INTERFACE G.703,UP TO 8E14446205112IDU,SRAL,RTM,8-16E11956208970IDU,SRAL,RTM,UP TO 4E13286208234IDU,SRAL,RTM,UP TO 4E13406211300IDU,SRAL,RTM,UP TO 4E13456706001IDU,SRAL,WIRED SUBRACK,8-16E13426705427IDU,SRAL,WIRED SUBRACK,UP TO 8E1IF6210776IF MUX 8R 3.5 GHZ/10.54786706717ODU,SRAL,23GHZ,ALTA3346701068ODU,SRAL,23GHZ,ALTA4596706540ODU,SRAL,23GHZ,ALTA3456706382ODU,SRAL,23GHZ,BAJA4856706537ODU,SRAL,23GHZ,BAJA4606705035ODU,SRAL,23GHZ,BAJA90013251TERMINAL STATION 1300 3.5/10.5 AC /E6526968TERMINAL STATION BU 3.5/10.5 GHZ 220V E1-75 NC6081945TERMINAL STATION MODULE W /2E INTERFACE191-550206-0020995061921061106TRANSCEIVER191-550206-0020995055728060630TRANSCEIVER191-550206-0020995049490060221TRANSCEIVER191-550206-0020995049482060221TRANSCEIVERASY23235010995058153060804WAVEFORM PROCASY23235010995062245061113WAVEFORM PROCASY23235011000067012070206WAVEFORM PROCASY23235011000069212070307WAVEFORM PROC', '2016-01-28 00:38:47', '1', '0'), 
('15', '8', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 42Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservaciones101-550200-0010992070998070409BASE CONTROL PROC PCA (BCP2)101-550200-0010995057108060725BASE CONTROL PROC PCA (BCP2)201-550080-0061000067526070215BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0061000069654070315BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0060995058632060811BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0060995052533060429BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0060995251378060601BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0061000066831070126BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0061000067516070215BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0060995052555060429BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0061000066862070126BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0060995052474060429BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW201-550080-0061000066534070122BRU BS RADIO DE 3.5GHZ PARA 30MHZ BW3476218293IDU,SRAL,CONTROLLER CARD4676206519IDU,SRAL,CONTROLLER CARD3376216148IDU,SRAL,INTERFACE G.703,UP TO 8E13256205551IDU,SRAL,INTERFACE G.703,UP TO 8E13556213715IDU,SRAL,INTERFACE G.703,UP TO 8E14446205112IDU,SRAL,RTM,8-16E11956208970IDU,SRAL,RTM,UP TO 4E13286208234IDU,SRAL,RTM,UP TO 4E13406211300IDU,SRAL,RTM,UP TO 4E13456706001IDU,SRAL,WIRED SUBRACK,8-16E13426705427IDU,SRAL,WIRED SUBRACK,UP TO 8E1IF6210776IF MUX 8R 3.5 GHZ/10.54786706717ODU,SRAL,23GHZ,ALTA3346701068ODU,SRAL,23GHZ,ALTA4596706540ODU,SRAL,23GHZ,ALTA3456706382ODU,SRAL,23GHZ,BAJA4856706537ODU,SRAL,23GHZ,BAJA4606705035ODU,SRAL,23GHZ,BAJA90013251TERMINAL STATION 1300 3.5/10.5 AC /E6526968TERMINAL STATION BU 3.5/10.5 GHZ 220V E1-75 NC6081945TERMINAL STATION MODULE W /2E INTERFACE191-550206-0020995061921061106TRANSCEIVER191-550206-0020995055728060630TRANSCEIVER191-550206-0020995049490060221TRANSCEIVER191-550206-0020995049482060221TRANSCEIVERASY23235010995058153060804WAVEFORM PROCASY23235010995062245061113WAVEFORM PROCASY23235011000067012070206WAVEFORM PROCASY23235011000069212070307WAVEFORM PROC', '2016-01-28 00:38:47', '0', '0'), 
('16', '7', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 4Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservaciones14894516SELECT * FROM usuarios WHERE usuario LIKE &quot;%&quot;;ADSFADSFADSDSFselect usuarios from INFORMATION_SCHEMA.tablesOTRO NUMFFFFADSF&lt;script&gt;alert();&lt;/script&gt;FSDGFDG4546456GFSELECT * FROM usuarios WHERE usuario LIKE &quot;%&quot;;', '2016-01-31 23:00:46', '1', '0'), 
('17', '8', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 4Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservaciones14894516SELECT * FROM usuarios WHERE usuario LIKE &quot;%&quot;;ADSFADSFADSDSFselect usuarios from INFORMATION_SCHEMA.tablesOTRO NUMFFFFADSF&lt;script&gt;alert();&lt;/script&gt;FSDGFDG4546456GFSELECT * FROM usuarios WHERE usuario LIKE &quot;%&quot;;', '2016-01-31 23:00:46', '0', '0'), 
('18', '7', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 1Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservaciones3476218293IDU,SRAL,CONTROLLER CARDgarantia', '2016-02-01 02:57:53', '1', '0'), 
('19', '8', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 1Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservaciones3476218293IDU,SRAL,CONTROLLER CARDgarantia', '2016-02-01 02:57:53', '0', '0'), 
('20', '7', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 1Equipos de Garantia: 1Serie FisicoDescripci&oacutenObservaciones201-550080-0061000069654070315BRU BS RADIO DE 3.5GHZ PARA 30MHZ BWequipo que ingresa como garant&iacute;a * Aplica Garantia *', '2016-02-01 17:23:52', '1', '0'), 
('21', '8', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 1Equipos de Garantia: 1Serie FisicoDescripci&oacutenObservaciones201-550080-0061000069654070315BRU BS RADIO DE 3.5GHZ PARA 30MHZ BWequipo que ingresa como garant&iacute;a * Aplica Garantia *', '2016-02-01 17:23:52', '1', '0'), 
('22', '7', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 2Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservaciones3426705427IDU,SRAL,WIRED SUBRACK,UP TO 8E154165165SDFGS', '2016-02-01 17:23:59', '1', '0'), 
('23', '8', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 2Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservaciones3426705427IDU,SRAL,WIRED SUBRACK,UP TO 8E154165165SDFGS', '2016-02-01 17:23:59', '1', '0'), 
('24', '8', '7', 'hola', 'usuarios standar', '2016-02-04 00:19:38', '1', '0'), 
('25', '7', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 3Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservacionesSERIE 1233Con La Misma Descripcionesta es una observacion de ejemplo con mas explicacionesOTRO NUMERO DE SERICon La Misma Descripcioncon una nueva observacion para este equipos.EQUIPO NO ASIGNAREMOSDESCRIPCIONsin observacion alguna.', '2016-05-01 13:06:23', '1', '0'), 
('26', '8', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 3Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservacionesSERIE 1233Con La Misma Descripcionesta es una observacion de ejemplo con mas explicacionesOTRO NUMERO DE SERICon La Misma Descripcioncon una nueva observacion para este equipos.EQUIPO NO ASIGNAREMOSDESCRIPCIONsin observacion alguna.', '2016-05-01 13:06:23', '0', '0'), 
('27', '9', '7', 'mensaje tal', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2016-05-01 13:41:34', '1', '0'), 
('28', '7', '9', 'contestando mensaje', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2016-05-01 13:42:52', '1', '0'), 
('29', '7', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 1Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservacionesNU-MEROFDSAFSDF', '2016-07-10 22:26:10', '0', '0'), 
('30', '8', '0', 'Equipos de Nuevo Ingreso', 'Equipos Registrados: 1Equipos de Garantia: 0Serie FisicoDescripci&oacutenObservacionesNU-MEROFDSAFSDF', '2016-07-10 22:26:10', '0', '0');
/*!40000 ALTER TABLE `mensajes` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'orden_compra' -- 
--

DROP TABLE IF EXISTS `orden_compra`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `orden_compra` (
  `id_ord_comp` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `no_ord_comp` varchar(20) NOT NULL,
  `fec_ord_comp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id_ord_comp`),
  UNIQUE KEY `no_ord_comp` (`no_ord_comp`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'orden_compra' -------------------- 
--

LOCK TABLES `orden_compra` WRITE; 
--
/*!40000 ALTER TABLE `orden_compra` DISABLE KEYS */;
INSERT INTO orden_compra(`id_ord_comp`, `no_ord_comp`, `fec_ord_comp`) VALUES
('1', 'COMPRAAXTEL260116', '2016-01-28 00:37:59');
/*!40000 ALTER TABLE `orden_compra` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'orden_rma' -- 
--

DROP TABLE IF EXISTS `orden_rma`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `orden_rma` (
  `id_ord_rma` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `no_ord_rma` varchar(20) NOT NULL,
  `fec_ord_rma` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id_ord_rma`),
  UNIQUE KEY `no_ord_rma` (`no_ord_rma`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'orden_rma' -------------------- 
--

LOCK TABLES `orden_rma` WRITE; 
--
/*!40000 ALTER TABLE `orden_rma` DISABLE KEYS */;
INSERT INTO orden_rma(`id_ord_rma`, `no_ord_rma`, `fec_ord_rma`) VALUES
('1', 'NWTAXT7061215', '2015-12-06 12:39:10'), 
('2', 'NWTAXT8061215', '2015-12-06 12:39:39'), 
('3', 'NWTAXT9020116', '2016-01-02 23:52:06'), 
('4', 'NWTAXT10280116', '2016-01-28 00:36:59'), 
('5', 'NWTAXT11040416', '2016-04-04 18:26:38'), 
('6', 'NWTAXT12010516', '2016-05-01 13:32:44');
/*!40000 ALTER TABLE `orden_rma` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'prioridades' -- 
--

DROP TABLE IF EXISTS `prioridades`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `prioridades` (
  `id_prioridad` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
  `prioridad` varchar(20) NOT NULL,
  PRIMARY KEY (`id_prioridad`),
  UNIQUE KEY `prioridad` (`prioridad`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'prioridades' -------------------- 
--

LOCK TABLES `prioridades` WRITE; 
--
/*!40000 ALTER TABLE `prioridades` DISABLE KEYS */;
INSERT INTO prioridades(`id_prioridad`, `prioridad`) VALUES
('3', 'Alta'), 
('1', 'Baja'), 
('2', 'Media'), 
('4', 'Urgente');
/*!40000 ALTER TABLE `prioridades` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'puestos' -- 
--

DROP TABLE IF EXISTS `puestos`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `puestos` (
  `id_puesto` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
  `nom_puesto` varchar(45) NOT NULL,
  PRIMARY KEY (`id_puesto`),
  UNIQUE KEY `nom_puesto` (`nom_puesto`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'puestos' -------------------- 
--

LOCK TABLES `puestos` WRITE; 
--
/*!40000 ALTER TABLE `puestos` DISABLE KEYS */;
INSERT INTO puestos(`id_puesto`, `nom_puesto`) VALUES
('1', 'TÃ©cnico');
/*!40000 ALTER TABLE `puestos` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'reporte_prueba' -- 
--

DROP TABLE IF EXISTS `reporte_prueba`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `reporte_prueba` (
  `id_rep_pru` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `id_reporte` bigint(20) unsigned NOT NULL,
  `torn_comp` enum('0','1') DEFAULT NULL,
  `golp` enum('0','1') DEFAULT NULL,
  `interv` enum('0','1') DEFAULT NULL,
  `falta_comp` enum('0','1') DEFAULT NULL,
  `desc_elec` enum('0','1') DEFAULT NULL,
  `residuos` enum('0','1') DEFAULT NULL,
  `reemp_comp` enum('0','1') DEFAULT NULL,
  `mantto_gral` enum('0','1') DEFAULT NULL,
  `rehabilita_ext` enum('0','1') DEFAULT NULL,
  `enciende` enum('0','1') DEFAULT NULL,
  `ind_visual` enum('0','1') DEFAULT NULL,
  `ini_rut` enum('0','1') DEFAULT NULL,
  `perm_gest` enum('0','1') DEFAULT NULL,
  `desp_inf` enum('0','1') DEFAULT NULL,
  `prueb_hrs` enum('0','1') DEFAULT NULL,
  `linkup` enum('0','1') DEFAULT NULL,
  PRIMARY KEY (`id_rep_pru`),
  KEY `id_reporte` (`id_reporte`),
  CONSTRAINT `fk_reporte_prueba_reportes_id_reporte` FOREIGN KEY (`id_reporte`) REFERENCES `reportes` (`id_reporte`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'reporte_prueba' -------------------- 
--

LOCK TABLES `reporte_prueba` WRITE; 
--
/*!40000 ALTER TABLE `reporte_prueba` DISABLE KEYS */;
INSERT INTO reporte_prueba(`id_rep_pru`, `id_reporte`, `torn_comp`, `golp`, `interv`, `falta_comp`, `desc_elec`, `residuos`, `reemp_comp`, `mantto_gral`, `rehabilita_ext`, `enciende`, `ind_visual`, `ini_rut`, `perm_gest`, `desp_inf`, `prueb_hrs`, `linkup`) VALUES
('1', '8', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), 
('2', '8', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), 
('3', '8', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'), 
('4', '8', NULL, NULL, NULL, '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'), 
('5', '91', '0', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'), 
('6', '92', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'), 
('7', '93', '1', '1', '1', '1', '1', '1', '0', '0', '1', '0', '0', '0', '1', '0', '1', '1'), 
('8', '94', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1'), 
('9', '96', '1', '1', '1', '0', '0', '0', '1', '0', '1', '0', '1', '1', '0', '0', '1', '1'), 
('10', '97', '0', '0', '0', '0', '0', '1', '1', '0', '1', '0', '0', '1', '1', '0', '0', '0'), 
('11', '98', '1', '0', '0', '1', '0', '0', '0', '0', '1', '1', '0', '0', '0', '0', '0', '1'), 
('12', '100', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'), 
('13', '8', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'), 
('14', '8', NULL, NULL, NULL, '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'), 
('15', '105', '0', '1', '0', '1', '0', '0', '0', '1', '1', '0', '0', '1', '1', '1', '1', '0'), 
('16', '109', '1', '1', '0', '1', '1', '1', '0', '1', '1', '1', '1', '0', '0', '0', '1', '1'), 
('18', '112', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1'), 
('20', '114', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1'), 
('21', '118', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'), 
('22', '121', '1', '1', '1', '1', '1', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0'), 
('23', '8', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'), 
('24', '8', NULL, NULL, NULL, '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');
/*!40000 ALTER TABLE `reporte_prueba` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'reportes' -- 
--

DROP TABLE IF EXISTS `reportes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `reportes` (
  `id_reporte` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `id_equipo` int(10) unsigned NOT NULL,
  `no_reporte` varchar(20) NOT NULL,
  `tipo_reporte` varchar(45) NOT NULL,
  `desc_falla` mediumtext,
  `accion_correct` mediumtext,
  `obs_reporte` mediumtext,
  `fec_reporte` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fec_mod_reporte` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id_reporte`),
  UNIQUE KEY `no_reporte` (`no_reporte`),
  KEY `id_equipo` (`id_equipo`),
  CONSTRAINT `fk_reportes_equipos_id_equipo` FOREIGN KEY (`id_equipo`) REFERENCES `equipos` (`id_equipo`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=122 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'reportes' -------------------- 
--

LOCK TABLES `reportes` WRITE; 
--
/*!40000 ALTER TABLE `reportes` DISABLE KEYS */;
INSERT INTO reportes(`id_reporte`, `id_equipo`, `no_reporte`, `tipo_reporte`, `desc_falla`, `accion_correct`, `obs_reporte`, `fec_reporte`, `fec_mod_reporte`) VALUES
('1', '1', '0', 'captura', 'falla  hola 
 alert();', 'alert();', 'observaciones  alert();', '2016-01-01 04:26:39', '2016-05-31 13:28:16'), 
('4', '3', 'NWT100007', 'captura', 'asdfd', 'adsfsdf', 'asdfsdf', '2016-01-01 04:45:09', '0000-00-00 00:00:00'), 
('6', '5', 'NWT200016', 'captura', 'asdff', 'asdfsdf', 'adsfsdf', '2016-01-01 05:32:53', '0000-00-00 00:00:00'), 
('7', '8', 'NWT200017', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 05:33:39', '0000-00-00 00:00:00'), 
('8', '8', 'NWT200018', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 05:35:05', '0000-00-00 00:00:00'), 
('9', '8', 'NWT200019', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 05:35:06', '0000-00-00 00:00:00'), 
('10', '8', 'NWT200020', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 05:35:08', '0000-00-00 00:00:00'), 
('11', '8', 'NWT200021', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 05:35:11', '0000-00-00 00:00:00'), 
('12', '5', 'NWT200022', 'captura', 'fdsf', 'sdg', 'sdff', '2016-01-01 05:35:58', '0000-00-00 00:00:00'), 
('13', '3', 'NWT100019', 'captura', 'asdfd', 'adsfsdf', 'asdfsdf', '2016-01-01 05:38:39', '0000-00-00 00:00:00'), 
('14', '3', 'NWT100020', 'captura', 'asdfd', 'adsfsdf', 'asdfsdf', '2016-01-01 05:40:08', '0000-00-00 00:00:00'), 
('15', '3', 'NWT100021', 'captura', 'efsdafdasf', 'asdfds', 'sdaf', '2016-01-01 05:40:51', '0000-00-00 00:00:00'), 
('16', '2', 'NWT100022', 'captura', 'dsadsdaf', 'asdfsdf', 'asdfsdf', '2016-01-01 05:43:10', '0000-00-00 00:00:00'), 
('17', '8', 'NWT200023', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 05:43:28', '0000-00-00 00:00:00'), 
('18', '2', 'NWT100023', 'captura', 'asdfasd', 'adsfdf', 'asdfds', '2016-01-01 05:43:57', '0000-00-00 00:00:00'), 
('19', '2', 'NWT100024', 'captura', 'fadsf', 'dsfdf', 'afadsf', '2016-01-01 05:44:59', '0000-00-00 00:00:00'), 
('20', '8', 'NWT200024', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 05:47:53', '0000-00-00 00:00:00'), 
('21', '8', 'NWT200025', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 05:48:33', '0000-00-00 00:00:00'), 
('22', '2', 'NWT100025', 'captura', 'cxvv', 'fdddd', 'dfss', '2016-01-01 05:49:47', '0000-00-00 00:00:00'), 
('23', '8', 'NWT200026', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 05:50:20', '0000-00-00 00:00:00'), 
('24', '3', 'NWT100026', 'captura', 'asdfd', 'adsfsdf', 'asdfsdf', '2016-01-01 05:51:35', '0000-00-00 00:00:00'), 
('25', '8', 'NWT200027', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 05:51:41', '0000-00-00 00:00:00'), 
('26', '8', 'NWT200028', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 05:56:28', '0000-00-00 00:00:00'), 
('27', '1', 'NWT100027', 'captura', 'dffdsg', 'dfs', 'fggg', '2016-01-01 05:56:49', '0000-00-00 00:00:00'), 
('28', '8', 'NWT200029', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 05:58:49', '0000-00-00 00:00:00'), 
('29', '1', 'NWT100028', 'captura', 'dasfsdf', 'asdfdf', 'asdfdf', '2016-01-01 05:59:12', '0000-00-00 00:00:00'), 
('30', '8', 'NWT200030', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 05:59:55', '0000-00-00 00:00:00'), 
('31', '1', 'NWT100029', 'captura', 'dasfsdf', 'asdfdf', 'asdfdf', '2016-01-01 06:00:08', '0000-00-00 00:00:00'), 
('32', '8', 'NWT200031', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 06:02:38', '0000-00-00 00:00:00'), 
('33', '3', 'NWT100030', 'captura', 'asdfd', 'adsfsdf', 'asdfsdf', '2016-01-01 06:03:59', '0000-00-00 00:00:00'), 
('34', '8', 'NWT200032', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 06:06:36', '0000-00-00 00:00:00'), 
('35', '2', 'NWT100031', 'captura', 'dsd', 'SD', 'AAAD', '2016-01-01 06:07:02', '0000-00-00 00:00:00'), 
('36', '3', 'NWT100032', 'captura', 'FASDF', 'SDFSDF', 'ASDFSDF', '2016-01-01 06:12:00', '0000-00-00 00:00:00'), 
('37', '10', 'NWT200033', 'captura', 'SDF', 'SDAF', 'ADSF', '2016-01-01 06:15:24', '0000-00-00 00:00:00'), 
('38', '1', 'NWT100033', 'captura', 'DSAFSDF', 'ADSFSDF', 'ADSFDFS', '2016-01-01 06:17:33', '0000-00-00 00:00:00'), 
('39', '2', 'NWT100034', 'captura', 'rrrrrrrrrrrrrrr', 'asdfdsf', 'afddasf', '2016-01-01 06:29:37', '0000-00-00 00:00:00'), 
('40', '8', 'NWT200034', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 06:30:33', '0000-00-00 00:00:00'), 
('41', '3', 'NWT100035', 'captura', 'asdfd', 'adsfsdf', 'asdfsdf', '2016-01-01 06:30:39', '0000-00-00 00:00:00'), 
('42', '2', 'NWT100036', 'captura', 'rrrrrrrrrrrrrrr', 'asdfdsf', 'afddasf', '2016-01-01 06:34:48', '0000-00-00 00:00:00'), 
('43', '2', 'NWT100037', 'captura', 'rrrrrrrrrrrrrrr', 'asdfdsf', 'afddasf', '2016-01-01 06:38:31', '0000-00-00 00:00:00'), 
('44', '2', 'NWT100038', 'captura', 'rrrrrrrrrrrrrrr', 'asdfdsf', 'afddasf', '2016-01-01 06:44:58', '0000-00-00 00:00:00'), 
('45', '2', 'NWT100039', 'captura', 'rrrrrrrrrrrrrrr', 'asdfdsf', 'afddasf', '2016-01-01 06:46:53', '0000-00-00 00:00:00'), 
('46', '2', 'NWT100040', 'captura', 'rrrrrrrrrrrrrrr', 'asdfdsf', 'afddasf', '2016-01-01 06:47:07', '0000-00-00 00:00:00'), 
('47', '2', 'NWT100041', 'captura', 'rrrrrrrrrrrrrrr', 'asdfdsf', 'afddasf', '2016-01-01 06:52:20', '0000-00-00 00:00:00'), 
('48', '2', 'NWT100042', 'captura', 'fdas', 'asdfdaf', 'asdffsd', '2016-01-01 06:53:22', '0000-00-00 00:00:00'), 
('49', '2', 'NWT100043', 'captura', 'fsdd', 'asdd', 'sdadsf', '2016-01-01 06:54:05', '0000-00-00 00:00:00'), 
('50', '2', 'NWT100044', 'captura', 'fsdd', 'asdd', 'sdadsf', '2016-01-01 06:59:41', '0000-00-00 00:00:00'), 
('51', '8', 'NWT200035', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 06:59:50', '0000-00-00 00:00:00'), 
('52', '2', 'NWT100045', 'captura', 'fsdd', 'asdd', 'sdadsf', '2016-01-01 07:02:00', '0000-00-00 00:00:00'), 
('53', '2', 'NWT100046', 'captura', 'fsdd', 'asdd', 'sdadsf', '2016-01-01 13:06:13', '0000-00-00 00:00:00'), 
('55', '8', 'NWT200036', 'captura', 'FASDF', 'SADFDFS', 'SADF', '2016-01-01 13:07:44', '0000-00-00 00:00:00'), 
('56', '1', 'NWT100047', 'captura', 'sfdasd', 'asdfsdf', 'sdfdf', '2016-01-01 13:09:05', '0000-00-00 00:00:00'), 
('58', '1', 'NWT100048', 'captura', 'DSFA', 'ASDFSDF', 'ASDFASDF', '2016-01-01 16:31:00', '0000-00-00 00:00:00'), 
('59', '1', 'NWT100049', 'captura', 'sfdasd', 'asdfsdf', 'sdfdf', '2016-01-01 16:33:27', '0000-00-00 00:00:00'), 
('60', '1', 'NWT100050', 'captura', 'sfdasd', 'asdfsdf', 'sdfdf', '2016-01-01 16:33:58', '0000-00-00 00:00:00'), 
('61', '1', 'NWT100051', 'captura', 'sfdasd', 'asdfsdf', 'sdfdf', '2016-01-01 16:43:32', '0000-00-00 00:00:00'), 
('62', '7', 'NWT200037', 'captura', 'errrrrrr', 'etwrt', 'wete', '2016-01-01 16:46:48', '0000-00-00 00:00:00'), 
('64', '5', 'NWT200038', 'captura', 'fdsgsfd', 'fdssdaf', 'asdfdsf', '2016-01-01 16:48:52', '0000-00-00 00:00:00'), 
('66', '5', 'NWT200039', 'captura', 'fdsgsfd', 'fdssdaf', 'asdfdsf', '2016-01-01 16:49:21', '0000-00-00 00:00:00'), 
('67', '9', 'NWT200040', 'captura', 'eaaa', 'fsadf', 'asdfsdf', '2016-01-01 16:55:10', '0000-00-00 00:00:00'), 
('68', '9', 'NWT200041', 'captura', 'sdfaf', 'sdaf', 'dfsa', '2016-01-01 20:39:24', '0000-00-00 00:00:00'), 
('69', '1', 'NWT100052', 'captura', 'gfdgsdf', 'sfdfss', 'sdfgdf', '2016-01-01 21:45:26', '0000-00-00 00:00:00'), 
('70', '7', 'NWT200042', 'captura', 'asdff', 'sd', 'sadf', '2016-01-01 21:58:40', '0000-00-00 00:00:00'), 
('71', '5', 'NWT200043', 'captura', 'fdsg', 'sfg', 'sdg', '2016-01-01 22:01:45', '0000-00-00 00:00:00'), 
('72', '6', 'NWT200044', 'captura', 'afd', 'adsf', 'adf', '2016-01-01 22:03:50', '0000-00-00 00:00:00'), 
('73', '9', 'NWT200045', 'captura', 'eaaa', 'fsadf', 'asdfsdf', '2016-01-01 22:06:58', '0000-00-00 00:00:00'), 
('74', '10', 'NWT200046', 'captura', 'fsaad', 'afds', 'asdf', '2016-01-01 22:09:23', '0000-00-00 00:00:00'), 
('76', '5', 'NWT200047', 'captura', 'sfad', 'adsf', 'asfd', '2016-01-02 12:47:25', '0000-00-00 00:00:00'), 
('77', '6', 'NWT200048', 'captura', 'asdf', 'asdf', 'asdff', '2016-01-02 12:47:52', '0000-00-00 00:00:00'), 
('78', '7', 'NWT200049', 'captura', 'dasf', 'asdf', 'dsaf', '2016-01-02 12:48:40', '0000-00-00 00:00:00'), 
('79', '4', 'NWT100053', 'captura', 'adsf', 'asdf', 'asdf', '2016-01-02 12:50:17', '0000-00-00 00:00:00'), 
('80', '7', 'NWT200050', 'captura', 'adsf', 'sdf', 'asdf', '2016-01-02 12:51:14', '0000-00-00 00:00:00'), 
('81', '7', 'NWT200051', 'captura', 'adsf', 'sdf', 'asdf', '2016-01-02 13:05:33', '0000-00-00 00:00:00'), 
('82', '7', 'NWT200052', 'captura', 'adsf', 'sdf', 'asdf', '2016-01-02 13:05:58', '0000-00-00 00:00:00'), 
('83', '7', 'NWT200053', 'captura', 'adsf', 'sdf', 'asdf', '2016-01-02 13:06:16', '0000-00-00 00:00:00'), 
('84', '7', 'NWT200054', 'captura', 'sdfa', 'sdfasdf', 'sadf', '2016-01-02 13:18:07', '0000-00-00 00:00:00'), 
('85', '10', 'NWT200055', 'prueba', 'fasdf', 'asdfdfs', 'adfsasdf', '2016-01-02 14:06:33', '0000-00-00 00:00:00'), 
('86', '8', 'NWT200056', 'captura', 'dsfa', 'sdfsadf', 'asdf', '2016-01-02 14:07:55', '0000-00-00 00:00:00'), 
('87', '7', 'NWT200057', 'prueba', 'das', 'ssaa', 'AAA', '2016-01-02 14:13:03', '0000-00-00 00:00:00'), 
('89', '8', 'NWT200078', 'prueba', 'fd', 'aasdf', 'ds', '2016-01-02 14:52:16', '0000-00-00 00:00:00'), 
('90', '4', 'NWT100055', 'prueba', 'adsf', 'asdf', 'dfsadfs', '2016-01-02 14:58:09', '0000-00-00 00:00:00'), 
('91', '4', 'NWT100056', 'prueba', 'adsf', 'asdf', 'dfsadfs', '2016-01-02 14:58:40', '0000-00-00 00:00:00'), 
('92', '4', 'NWT100057', 'prueba', 'asdf', 'sdaadsf', 'asdf', '2016-01-02 14:59:18', '0000-00-00 00:00:00'), 
('93', '10', 'NWT200079', 'prueba', 'f', 'assdd', 'dsadf', '2016-01-02 15:11:58', '0000-00-00 00:00:00'), 
('94', '9', 'NWT200080', 'prueba', 'rew', 'sdf', 'sdf', '2016-01-02 15:15:41', '0000-00-00 00:00:00'), 
('95', '5', 'NWT200081', 'captura', 'FAS', 'SDAF', 'ASFD', '2016-01-02 18:24:11', '0000-00-00 00:00:00'), 
('96', '7', 'NWT200082', 'prueba', 'sdf', 'ffasdf', 'sdfa', '2016-01-02 18:24:36', '0000-00-00 00:00:00'), 
('97', '8', 'NWT200083', 'prueba', 'asdf', 'adsf', 'fds', '2016-01-02 23:42:25', '0000-00-00 00:00:00'), 
('98', '7', 'NWT200084', 'prueba', 'fdsaf', 'sdaf', 'safddsf', '2016-01-02 23:50:32', '0000-00-00 00:00:00'), 
('99', '6', 'NWT200085', 'captura', 'fsdf', 'fsdaf', 'asdf', '2016-01-03 04:14:52', '0000-00-00 00:00:00'), 
('100', '6', 'NWT200086', 'prueba', 'rr', 'rewfdsf', 'sdf', '2016-01-03 04:15:35', '0000-00-00 00:00:00'), 
('101', '8', 'NWT200087', 'captura', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2016-01-03 17:24:51', '0000-00-00 00:00:00'), 
('102', '1', 'NWT100058', 'captura', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2016-01-03 19:39:45', '0000-00-00 00:00:00'), 
('104', '9', 'NWT200088', 'captura', '\"Too many connections\" indicates, that your script is opening at least more than one connection to the database. Basically, to one server, only one connection is needed. Getting this error is either a misconfiguration of the server (which I assume isn\'t the case because max connections = zero isn\'t an option) or some programming errors in your script.', '\"Too many connections\" indicates, that your script is opening at least more than one connection to the database. Basically, to one server, only one connection is needed. Getting this error is either a misconfiguration of the server (which I assume isn\'t the case because max connections = zero isn\'t an option) or some programming errors in your script.', '\"Too many connections\" indicates, that your script is opening at least more than one connection to the database. Basically, to one server, only one connection is needed. Getting this error is either a misconfiguration of the server (which I assume isn\'t the case because max connections = zero isn\'t an option) or some programming errors in your script.', '2016-01-15 02:03:52', '0000-00-00 00:00:00'), 
('105', '15', 'NWT300008', 'prueba', 'On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain.', 'On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain.', 'On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain.', '2016-01-28 01:42:48', '2016-03-24 11:51:28'), 
('107', '28', 'NWT100059', 'captura', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', 'Este tipo de reporte se utiliza para aquellos equipos que se pueden gestionar y obtener una captura de 
pantalla del sistema de pruebas o para indicar las falla de un equipo inservible.', '2016-02-01 23:28:58', '0000-00-00 00:00:00'), 
('109', '22', 'NWT100061', 'prueba', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.', '2016-02-05 00:30:05', '0000-00-00 00:00:00'), 
('112', '36', 'NWT100064', 'prueba', 'hola gente he visto por el foro sistemas para borrar archivos de una carpeta ... si le doy a borrar extenciones php, que me borre solamente los archivos php y nada mas. .... Igual en el foro hay varios temas relacionados \' hola &quot;batcaver&quot;', 'hola gente he visto por el foro sistemas para borrar archivos de una carpeta ... si le doy a borrar extenciones php, que me borre solamente los archivos php y nada mas. .... Igual en el foro hay varios temas relacionados', 'hola gente he visto por el foro sistemas para borrar archivos de una carpeta ... si le doy a borrar extenciones php, que me borre solamente los archivos php y nada mas. .... Igual en el foro hay varios temas relacionados', '2016-02-27 12:19:56', '2016-05-30 02:42:19'), 
('114', '36', 'NWT100066', 'prueba', 'hola gente he visto por el foro sistemas para borrar archivos de una carpeta ... si le doy a borrar extenciones php, que me borre solamente los archivos php y nada mas. .... Igual en el foro hay varios temas relacionados', 'hola gente he visto por el foro sistemas para borrar archivos de una carpeta ... si le doy a borrar extenciones php, que me borre solamente los archivos php y nada mas. .... Igual en el foro hay varios temas relacionados', 'hola gente he visto por el foro sistemas para borrar archivos de una carpeta ... si le doy a borrar extenciones php, que me borre solamente los archivos php y nada mas. .... Igual en el foro hay varios temas relacionados', '2016-02-27 12:22:26', '0000-00-00 00:00:00'), 
('115', '36', 'NWT100070', 'captura', 'descripcion de la falla NWT100070', 'accion correctiva de la falla NWT100', 'observaciones de la falla NWT100070', '2016-03-02 03:54:30', '2016-04-04 18:26:10'), 
('116', '36', 'NWT100071', 'captura', 'ds', 'd', 'd', '2016-03-02 03:58:53', '0000-00-00 00:00:00'), 
('117', '36', 'NWT100072', 'captura', 'ff', 'f', 'f', '2016-03-02 04:00:52', '0000-00-00 00:00:00'), 
('118', '36', 'NWT100073', 'prueba', 'Descripcion de la falla', 'Accion Correctiva', 'Observaciones', '2016-03-11 19:48:38', '2016-03-23 01:53:30'), 
('119', '15', 'NWT300010', 'captura', 'fgggsdgsss', 'sdfsgsd', 'fgsdfgs', '2016-03-24 11:52:32', '0000-00-00 00:00:00'), 
('120', '68', 'NWT300011', 'captura', 'falla', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2016-05-01 13:19:16', '2016-05-01 13:21:35'), 
('121', '68', 'NWT300012', 'prueba', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '2016-05-01 13:22:17', '2016-05-01 13:23:20');
/*!40000 ALTER TABLE `reportes` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'statu' -- 
--

DROP TABLE IF EXISTS `statu`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `statu` (
  `id_stat` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
  `stat` varchar(45) NOT NULL,
  PRIMARY KEY (`id_stat`),
  UNIQUE KEY `stat` (`stat`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'statu' -------------------- 
--

LOCK TABLES `statu` WRITE; 
--
/*!40000 ALTER TABLE `statu` DISABLE KEYS */;
INSERT INTO statu(`id_stat`, `stat`) VALUES
('13', 'BÃ¡tcave'), 
('8', 'DaÃ±ado'), 
('10', 'GarantÃ­a'), 
('5', 'Incosteable'), 
('3', 'Irreparable'), 
('12', 'MÃ©xic'), 
('11', 'MÃ©xico'), 
('6', 'Pendiente'), 
('1', 'Proceso'), 
('4', 'Pruebas'), 
('9', 'Reacondicionado'), 
('2', 'Reparado');
/*!40000 ALTER TABLE `statu` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'tecnologias' -- 
--

DROP TABLE IF EXISTS `tecnologias`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `tecnologias` (
  `id_tecnologia` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
  `nom_tec` varchar(45) NOT NULL,
  PRIMARY KEY (`id_tecnologia`),
  UNIQUE KEY `nom_tec` (`nom_tec`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'tecnologias' -------------------- 
--

LOCK TABLES `tecnologias` WRITE; 
--
/*!40000 ALTER TABLE `tecnologias` DISABLE KEYS */;
INSERT INTO tecnologias(`id_tecnologia`, `nom_tec`) VALUES
('4', 'Alvarion'), 
('6', 'BÃ¡tcaver'), 
('5', 'Gothic'), 
('3', 'Siemens'), 
('2', 'Symetry'), 
('1', 'tecnologia');
/*!40000 ALTER TABLE `tecnologias` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'ubicaciones' -- 
--

DROP TABLE IF EXISTS `ubicaciones`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `ubicaciones` (
  `id_ubicacion` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
  `ubicacion` varchar(45) NOT NULL,
  PRIMARY KEY (`id_ubicacion`),
  UNIQUE KEY `ubicacion` (`ubicacion`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'ubicaciones' -------------------- 
--

LOCK TABLES `ubicaciones` WRITE; 
--
/*!40000 ALTER TABLE `ubicaciones` DISABLE KEYS */;
INSERT INTO ubicaciones(`id_ubicacion`, `ubicacion`) VALUES
('1', 'AlmacÃ©n'), 
('3', 'Entregado Al Cliente'), 
('2', 'Laboratorio');
/*!40000 ALTER TABLE `ubicaciones` ENABLE KEYS */;

--
UNLOCK TABLES; 

--
-- Esctructura de tabla 'usuarios' -- 
--

DROP TABLE IF EXISTS `usuarios`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;

-- 

CREATE TABLE `usuarios` (
  `id_usr` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_emp` smallint(5) unsigned DEFAULT NULL,
  `id_cliente` tinyint(3) unsigned DEFAULT NULL,
  `nom_usr` varchar(45) NOT NULL,
  `apellido_pat_usr` varchar(45) NOT NULL,
  `apellido_mat_usr` varchar(45) DEFAULT NULL,
  `fec_nac_usr` date DEFAULT NULL,
  `sexo_usr` char(1) DEFAULT NULL,
  `email_usr` varchar(60) NOT NULL,
  `usuario` varchar(20) NOT NULL,
  `usuario_cod` varchar(60) NOT NULL,
  `pass` varchar(60) NOT NULL,
  `tipo_usr` varchar(20) NOT NULL,
  `activo` enum('0','1') NOT NULL DEFAULT '0',
  `ult_ini_ses` datetime DEFAULT NULL,
  `fec_reg_usr` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fec_mod_usr` datetime DEFAULT NULL,
  PRIMARY KEY (`id_usr`),
  UNIQUE KEY `usuario` (`usuario`),
  UNIQUE KEY `id_emp` (`id_emp`),
  KEY `id_cliente` (`id_cliente`),
  CONSTRAINT `fk_usuarios_clientes_id_cliente` FOREIGN KEY (`id_cliente`) REFERENCES `clientes` (`id_cliente`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fk_usuarios_empleados_id_emp` FOREIGN KEY (`id_emp`) REFERENCES `empleados` (`id_emp`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;


--
-- --------------- Volcado de tabla 'usuarios' -------------------- 
--

LOCK TABLES `usuarios` WRITE; 
--
/*!40000 ALTER TABLE `usuarios` DISABLE KEYS */;
INSERT INTO usuarios(`id_usr`, `id_emp`, `id_cliente`, `nom_usr`, `apellido_pat_usr`, `apellido_mat_usr`, `fec_nac_usr`, `sexo_usr`, `email_usr`, `usuario`, `usuario_cod`, `pass`, `tipo_usr`, `activo`, `ult_ini_ses`, `fec_reg_usr`, `fec_mod_usr`) VALUES
('7', NULL, NULL, 'Gustavo', 'Victoria', 'RamÃ­rez', '1990-02-07', 'M', 'batcaver7@gmail.com', 'root', 'dc76e9f0c0006e8f919e0c515c66dbba3982f785', '4644ea980cecbb878eeb2f902789ccd421bacd93', 'Administrador', '1', '2016-07-10 11:34:40', '2015-12-04 17:08:19', '2016-01-22 18:43:24'), 
('8', NULL, NULL, 'Usuario', 'Standar', 'Materno', '1958-02-04', 'M', 'standar@usuario.com', 'standar', 'd8ecf4af0173462181b63428d9e989291e5f99d1', '7c222fb2927d828af22f592134e8932480637c0d', 'Standar', '1', '2016-02-04 00:21:36', '2016-01-09 19:44:07', '2016-05-01 12:53:09'), 
('9', NULL, '1', 'Usuario', 'Invitado', 'D', '1977-08-23', 'M', 'invitado@usuario.com', 'invitado', '0c0438a2d770051789cbafdd47fe25a9d7f74587', '7c222fb2927d828af22f592134e8932480637c0d', 'Invitado', '1', '2016-05-01 13:41:54', '2016-01-09 19:45:27', '2016-05-01 13:54:16'), 
('10', '1', NULL, 'Usuario', 'Limitado', NULL, '1986-04-02', 'M', 'limitado@usuario.com', 'limitado', 'deb484cd6a2fb96eaf2aeba7ceb11cb2033861fa', '7c222fb2927d828af22f592134e8932480637c0d', 'Limitado', '1', NULL, '2016-01-09 19:46:42', NULL), 
('11', NULL, '2', 'Usuario', 'Bestel', 'Invitado', '1983-03-08', 'M', 'invitado@bestel.com', 'bestel', '90f8637cd60d40c9fd83b11e14d6ca12d8d4ed1f', '7c222fb2927d828af22f592134e8932480637c0d', 'Invitado', '1', '2016-04-29 01:24:16', '2016-01-10 00:56:05', NULL);
/*!40000 ALTER TABLE `usuarios` ENABLE KEYS */;

--
UNLOCK TABLES; 

CREATE TRIGGER insertagennum AFTER INSERT ON dir_cliente FOR EACH ROW INSERT INTO generar_num VALUES(NULL, (SELECT MAX(id_dir_client) FROM dir_cliente), 'NWT', '00007', '00007', '7', DEFAULT); 
/*!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 */;
