text: -- MySQL dump 10.13  Distrib 5.7.18, for Linux (x86_64)
  --
  -- Host: 192.168.33.10    Database: inventario
  -- ------------------------------------------------------
  -- Server version	5.5.46-0ubuntu0.14.04.2
  
  /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  /*!40101 SET NAMES utf8 */;
  /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  /*!40103 SET TIME_ZONE='+00:00' */;
  /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  
  --
  -- Table structure for table `bodega`
  --
  
  DROP TABLE IF EXISTS `bodega`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `bodega` (
    `id_bodega` int(11) NOT NULL AUTO_INCREMENT,
    `nombre` varchar(45) NOT NULL,
    `direccion_bodega` varchar(45) NOT NULL,
    `telefono_bodega` varchar(8) NOT NULL,
    `codigo` varchar(45) DEFAULT NULL,
    PRIMARY KEY (`id_bodega`)
  ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `bodega`
  --
  
  LOCK TABLES `bodega` WRITE;
  /*!40000 ALTER TABLE `bodega` DISABLE KEYS */;
  INSERT INTO `bodega` VALUES (1,'La bodegona','Huehuetenango','1231234','0001'),(2,'La bodegona 2','Huehuetenango 2','12312342','0002'),(3,'Bodega No. 3','En algun lugar de un gran pais','34234234','BOD03'),(4,'Bodega No. 4','Huehuetenango','23948230','01929');
  /*!40000 ALTER TABLE `bodega` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `cliente`
  --
  
  DROP TABLE IF EXISTS `cliente`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `cliente` (
    `id_cliente` int(11) NOT NULL AUTO_INCREMENT,
    `nit_cliente` varchar(10) DEFAULT NULL,
    `nombre_cliente` varchar(45) NOT NULL,
    `apellido_cliente` varchar(45) NOT NULL,
    `direccion_cliente` varchar(45) NOT NULL,
    `telefono_cliente` varchar(8) NOT NULL,
    PRIMARY KEY (`id_cliente`)
  ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `cliente`
  --
  
  LOCK TABLES `cliente` WRITE;
  /*!40000 ALTER TABLE `cliente` DISABLE KEYS */;
  INSERT INTO `cliente` VALUES (1,'32897400','Andres','Alonzo','Huehuetenango','47668929'),(2,'23498','Hector','Hunapu','Huehuetenango','249837'),(3,'12313','Edvin','Garcia','Huehuetenango','12312312'),(4,'123123','Edvin P. ','Alonzo','Huehuetenango','12312422');
  /*!40000 ALTER TABLE `cliente` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `producto`
  --
  
  DROP TABLE IF EXISTS `producto`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `producto` (
    `id_producto` int(11) NOT NULL AUTO_INCREMENT,
    `codigo_producto` varchar(45) DEFAULT NULL,
    `nombre_producto` varchar(45) NOT NULL,
    `precio_venta` decimal(8,0) NOT NULL,
    `precio_compra` decimal(8,0) NOT NULL,
    `id_proveedor` int(11) DEFAULT NULL,
    `cantidad` int(11) DEFAULT '0',
    `id_bodega` int(11) DEFAULT NULL,
    PRIMARY KEY (`id_producto`)
  ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `producto`
  --
  
  LOCK TABLES `producto` WRITE;
  /*!40000 ALTER TABLE `producto` DISABLE KEYS */;
  INSERT INTO `producto` VALUES (1,'2131232149098','USB Kingston DT120 16GB',100,85,3,15,3),(2,'123871923','Ubiquiti Nano Loco M2',650,450,4,8,2);
  /*!40000 ALTER TABLE `producto` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `proveedor`
  --
  
  DROP TABLE IF EXISTS `proveedor`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `proveedor` (
    `id_proveedor` int(11) NOT NULL AUTO_INCREMENT,
    `nit` int(11) NOT NULL,
    `nombre_proveedor` varchar(45) NOT NULL,
    `direccion_proveedor` varchar(45) NOT NULL,
    `telefono_proveedor` varchar(45) NOT NULL,
    PRIMARY KEY (`id_proveedor`)
  ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `proveedor`
  --
  
  LOCK TABLES `proveedor` WRITE;
  /*!40000 ALTER TABLE `proveedor` DISABLE KEYS */;
  INSERT INTO `proveedor` VALUES (1,23847239,'IMEQMO','Guatemala, CA','13131313'),(2,2348739,'Intelli C.A','Guatemala, CA','23423432'),(3,238479,'INTCOMEX','Guatemala, CA','12312312'),(4,2943798,'Atlantic International S.A.','Guatemala','34142423');
  /*!40000 ALTER TABLE `proveedor` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `user`
  --
  
  DROP TABLE IF EXISTS `user`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `user` (
    `id_user` int(11) NOT NULL AUTO_INCREMENT,
    `username` varchar(45) DEFAULT NULL,
    `password` varchar(45) DEFAULT NULL,
    `name` varchar(100) DEFAULT NULL,
    PRIMARY KEY (`id_user`)
  ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `user`
  --
  
  LOCK TABLES `user` WRITE;
  /*!40000 ALTER TABLE `user` DISABLE KEYS */;
  INSERT INTO `user` VALUES (12,'lexo','lexoW0rd','Lexo Alonzo'),(13,'aalonzo','aalonzoW0rd','Andres Alonzo');
  /*!40000 ALTER TABLE `user` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `venta`
  --
  
  DROP TABLE IF EXISTS `venta`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `venta` (
    `id_venta` int(11) NOT NULL AUTO_INCREMENT,
    `user_id` int(11) DEFAULT NULL,
    `cliente_id` int(11) DEFAULT NULL,
    `fecha_venta` datetime DEFAULT NULL,
    `status` int(11) DEFAULT '1',
    PRIMARY KEY (`id_venta`)
  ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `venta`
  --
  
  LOCK TABLES `venta` WRITE;
  /*!40000 ALTER TABLE `venta` DISABLE KEYS */;
  INSERT INTO `venta` VALUES (12,12,1,'2017-06-01 22:40:00',1),(13,12,2,'2017-06-01 23:19:00',0),(14,12,4,'2017-06-01 23:24:00',0);
  /*!40000 ALTER TABLE `venta` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `venta_detalle`
  --
  
  DROP TABLE IF EXISTS `venta_detalle`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `venta_detalle` (
    `id_venta_detalle` int(11) NOT NULL AUTO_INCREMENT,
    `codigo_producto` varchar(100) NOT NULL,
    `id_producto` int(11) NOT NULL,
    `cantidad` int(11) NOT NULL,
    `precio_venta` decimal(8,0) NOT NULL,
    `precio_compra` decimal(8,0) NOT NULL,
    `descuento` decimal(8,0) NOT NULL DEFAULT '0',
    `id_venta` int(11) DEFAULT NULL,
    PRIMARY KEY (`id_venta_detalle`)
  ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `venta_detalle`
  --
  
  LOCK TABLES `venta_detalle` WRITE;
  /*!40000 ALTER TABLE `venta_detalle` DISABLE KEYS */;
  INSERT INTO `venta_detalle` VALUES (14,'123871923',2,10,650,450,0,12),(15,'2131232149098',1,5,100,85,0,12),(16,'123871923',2,1,650,450,0,13),(17,'2131232149098',1,2,100,85,0,14),(18,'2131232149098',1,10,100,85,0,0),(19,'123871923',2,1,650,450,0,0),(20,'2131232149098',1,5,100,85,0,0),(21,'123871923',2,1,650,450,0,0);
  /*!40000 ALTER TABLE `venta_detalle` ENABLE KEYS */;
  UNLOCK TABLES;
  /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  
  /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  
  -- Dump completed on 2017-06-02  1:25:19
  