-- MySQL Administrator dump 1.4
--
-- ------------------------------------------------------
-- Server version	5.6.22-log


/*!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 */;

/*!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' */;


--
-- Definition of table `contactos`
--

DROP TABLE IF EXISTS `contactos`;
CREATE TABLE `contactos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `rfc_cliente` varchar(25) COLLATE utf8_spanish_ci NOT NULL,
  `nombre` varchar(255) COLLATE utf8_spanish_ci NOT NULL,
  `email` varchar(50) COLLATE utf8_spanish_ci NOT NULL,
  `telefono` varchar(25) COLLATE utf8_spanish_ci NOT NULL,
  `puesto` varchar(50) COLLATE utf8_spanish_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;

--
-- Definition of table `doctosexp`
--

DROP TABLE IF EXISTS `doctosexp`;
CREATE TABLE `doctosexp` (
  `referencia` char(30) COLLATE utf8_spanish_ci NOT NULL,
  `tdocto_exp` int(10) unsigned NOT NULL,
  `nombre_archivo` char(200) COLLATE utf8_spanish_ci NOT NULL,
  `nombre_docto` char(200) COLLATE utf8_spanish_ci NOT NULL,
  `iddocto` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `fecha_docto` date NOT NULL,
  `rfc_cliente` char(20) COLLATE utf8_spanish_ci NOT NULL,
  PRIMARY KEY (`referencia`,`tdocto_exp`,`iddocto`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;


--
-- Definition of table `expediente`
--

DROP TABLE IF EXISTS `expediente`;
CREATE TABLE `expediente` (
  `referencia` char(20) COLLATE utf8_spanish_ci NOT NULL,
  `rfc_cliente` char(20) COLLATE utf8_spanish_ci NOT NULL,
  `nombre_cliente` char(250) COLLATE utf8_spanish_ci NOT NULL,
  `fechaPedimento` date,
  `fechaExp` date NOT NULL,
  `completo` int(10) unsigned default 0,
  `fecha_completo` datetime,
  `usuario_marca_completo` varchar(50) COLLATE utf8_spanish_ci default '',
  `fecha_envio` datetime,
  `correos_envio` varchar(255) COLLATE utf8_spanish_ci default '',
  `planta` varchar(150) COLLATE utf8_spanish_ci default '',
  PRIMARY KEY (`referencia`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;


--
-- Definition of table `tdoctos_exp`
--

DROP TABLE IF EXISTS `tdoctos_exp`;
CREATE TABLE `tdoctos_exp` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `nombre` char(100) COLLATE utf8_spanish_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;

--
-- Dumping data for table `tdoctos_exp`
--

/*!40000 ALTER TABLE `tdoctos_exp` DISABLE KEYS */;
INSERT INTO `tdoctos_exp` (`id`,`nombre`) VALUES 
 (1,'Pedimento'),
 (2,'CTA DE GTOS'),
 (7,'ANEXOS'),
 (8,'VU'),
 (9,'FACTURACION');
/*!40000 ALTER TABLE `tdoctos_exp` ENABLE KEYS */;

ALTER TABLE usuariosweb ADD completar_exp int(10) not null default 0;
ALTER TABLE usuariosweb ADD elimina_archivos int(10) not null default 0;
ALTER TABLE usuariosweb ADD tipousuario int(10) not null default 0;


/*!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 */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
