-- MySQL dump 10.17  Distrib 10.3.15-MariaDB, for Linux (x86_64)
--
-- Host: localhost    Database: biblioteca
-- ------------------------------------------------------
-- Server version	10.3.15-MariaDB

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_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 */;

--
-- Dumping data for table `arriendo`
--

LOCK TABLES `arriendo` WRITE;
/*!40000 ALTER TABLE `arriendo` DISABLE KEYS */;
/*!40000 ALTER TABLE `arriendo` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `autor`
--

LOCK TABLES `autor` WRITE;
/*!40000 ALTER TABLE `autor` DISABLE KEYS */;
INSERT INTO `autor` VALUES (1,'Howard Philips','Lovecraft',NULL,'2019-06-12 16:18:57'),(2,'Stephen','King',NULL,'2019-06-12 16:18:57'),(3,'Brandon','Sanderson',NULL,'2019-06-12 16:18:57');
/*!40000 ALTER TABLE `autor` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `boleta`
--

LOCK TABLES `boleta` WRITE;
/*!40000 ALTER TABLE `boleta` DISABLE KEYS */;
/*!40000 ALTER TABLE `boleta` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `categoria`
--

LOCK TABLES `categoria` WRITE;
/*!40000 ALTER TABLE `categoria` DISABLE KEYS */;
INSERT INTO `categoria` VALUES (1,'Terror','2019-06-12 16:18:57'),(2,'Aventura','2019-06-12 16:18:57'),(3,'Fantasia','2019-06-12 16:18:57');
/*!40000 ALTER TABLE `categoria` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `cliente`
--

LOCK TABLES `cliente` WRITE;
/*!40000 ALTER TABLE `cliente` DISABLE KEYS */;
INSERT INTO `cliente` VALUES (1,'21786653-7','Cliente','1','1','2019-06-17','2019-06-13 16:01:33'),(2,'17181388-3','Cliente','2','2','2019-06-13','2019-06-13 16:04:02');
/*!40000 ALTER TABLE `cliente` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `cliente_correo`
--

LOCK TABLES `cliente_correo` WRITE;
/*!40000 ALTER TABLE `cliente_correo` DISABLE KEYS */;
/*!40000 ALTER TABLE `cliente_correo` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `cliente_direccion`
--

LOCK TABLES `cliente_direccion` WRITE;
/*!40000 ALTER TABLE `cliente_direccion` DISABLE KEYS */;
/*!40000 ALTER TABLE `cliente_direccion` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `cliente_telefono`
--

LOCK TABLES `cliente_telefono` WRITE;
/*!40000 ALTER TABLE `cliente_telefono` DISABLE KEYS */;
/*!40000 ALTER TABLE `cliente_telefono` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `compra`
--

LOCK TABLES `compra` WRITE;
/*!40000 ALTER TABLE `compra` DISABLE KEYS */;
/*!40000 ALTER TABLE `compra` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `correo`
--

LOCK TABLES `correo` WRITE;
/*!40000 ALTER TABLE `correo` DISABLE KEYS */;
/*!40000 ALTER TABLE `correo` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `direccion`
--

LOCK TABLES `direccion` WRITE;
/*!40000 ALTER TABLE `direccion` DISABLE KEYS */;
/*!40000 ALTER TABLE `direccion` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `distribuidor`
--

LOCK TABLES `distribuidor` WRITE;
/*!40000 ALTER TABLE `distribuidor` DISABLE KEYS */;
INSERT INTO `distribuidor` VALUES (2,1,'19763899-0','2019-06-13 03:08:17'),(3,2,'19763899-0','2019-06-13 03:08:23'),(4,1,'19763899-0','2019-06-13 03:08:25'),(5,1,'19763899-0','2019-06-13 03:08:27');
/*!40000 ALTER TABLE `distribuidor` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `distribuidor_correo`
--

LOCK TABLES `distribuidor_correo` WRITE;
/*!40000 ALTER TABLE `distribuidor_correo` DISABLE KEYS */;
/*!40000 ALTER TABLE `distribuidor_correo` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `distribuidor_direccion`
--

LOCK TABLES `distribuidor_direccion` WRITE;
/*!40000 ALTER TABLE `distribuidor_direccion` DISABLE KEYS */;
/*!40000 ALTER TABLE `distribuidor_direccion` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `distribuidor_telefono`
--

LOCK TABLES `distribuidor_telefono` WRITE;
/*!40000 ALTER TABLE `distribuidor_telefono` DISABLE KEYS */;
/*!40000 ALTER TABLE `distribuidor_telefono` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `editorial`
--

LOCK TABLES `editorial` WRITE;
/*!40000 ALTER TABLE `editorial` DISABLE KEYS */;
INSERT INTO `editorial` VALUES (1,'Editorial N1','2019-06-12 16:18:57'),(2,'Editorial N2','2019-06-12 16:18:57'),(3,'Editorial N3','2019-06-12 16:18:57');
/*!40000 ALTER TABLE `editorial` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `ejemplar`
--

LOCK TABLES `ejemplar` WRITE;
/*!40000 ALTER TABLE `ejemplar` DISABLE KEYS */;
/*!40000 ALTER TABLE `ejemplar` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `empresa`
--

LOCK TABLES `empresa` WRITE;
/*!40000 ALTER TABLE `empresa` DISABLE KEYS */;
INSERT INTO `empresa` VALUES (1,'Empresa 1','2019-06-13 00:39:50'),(2,'Empresa 2','2019-06-13 00:39:52');
/*!40000 ALTER TABLE `empresa` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `estado`
--

LOCK TABLES `estado` WRITE;
/*!40000 ALTER TABLE `estado` DISABLE KEYS */;
INSERT INTO `estado` VALUES (1,'Vendido','2019-06-12 16:18:57'),(2,'Arrendado','2019-06-12 16:18:57'),(3,'Disponible','2019-06-12 16:18:57');
/*!40000 ALTER TABLE `estado` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `factura`
--

LOCK TABLES `factura` WRITE;
/*!40000 ALTER TABLE `factura` DISABLE KEYS */;
/*!40000 ALTER TABLE `factura` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `idioma`
--

LOCK TABLES `idioma` WRITE;
/*!40000 ALTER TABLE `idioma` DISABLE KEYS */;
INSERT INTO `idioma` VALUES (1,'Español','2019-06-12 16:18:57'),(2,'Ingles','2019-06-12 16:18:57'),(3,'Portuges','2019-06-12 16:18:57'),(4,'Aleman','2019-06-12 16:18:57'),(5,'Ruso','2019-06-12 16:18:57'),(6,'Japones','2019-06-12 16:18:57');
/*!40000 ALTER TABLE `idioma` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `libro`
--

LOCK TABLES `libro` WRITE;
/*!40000 ALTER TABLE `libro` DISABLE KEYS */;
INSERT INTO `libro` VALUES (1,1,'0-765-31178-X',2006,541,'Mistborn: The Final Empire',10000,'2019-06-12 16:18:57'),(2,1,'0-765-31688-9',2007,590,'Mistborn: The Well of Ascension',10000,'2019-06-12 16:18:57'),(3,1,'978-0-7653-1689-9',2008,572,'Mistborn: The Hero of Ages',10000,'2019-06-12 16:18:57'),(4,2,'1231231231232',1931,100,'The Shadow over Innsmouth',10000,'2019-06-12 16:18:57'),(5,2,'1231231231232',1933,100,'The Dreams in the Witch House',10000,'2019-06-12 16:18:57'),(6,2,'1231231231232',1936,100,'At the Mountains of Madness',10000,'2019-06-12 16:18:57'),(7,3,'0385086954',1974,199,'Carrie',10000,'2019-06-12 16:18:57'),(8,3,'978-0-670-26077-5',1979,428,'The Dead Zone',10000,'2019-06-12 16:18:57'),(9,3,'0-670-81302-8',1986,1138,'It',10000,'2019-06-12 16:18:57');
/*!40000 ALTER TABLE `libro` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `libro_arriendo`
--

LOCK TABLES `libro_arriendo` WRITE;
/*!40000 ALTER TABLE `libro_arriendo` DISABLE KEYS */;
/*!40000 ALTER TABLE `libro_arriendo` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `libro_autor`
--

LOCK TABLES `libro_autor` WRITE;
/*!40000 ALTER TABLE `libro_autor` DISABLE KEYS */;
INSERT INTO `libro_autor` VALUES (1,3),(2,3),(3,3),(4,1),(5,1),(6,1),(7,2),(8,2),(9,2);
/*!40000 ALTER TABLE `libro_autor` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `libro_categoria`
--

LOCK TABLES `libro_categoria` WRITE;
/*!40000 ALTER TABLE `libro_categoria` DISABLE KEYS */;
INSERT INTO `libro_categoria` VALUES (1,3),(2,3),(3,3),(4,1),(5,1),(6,1),(7,1),(8,1),(9,1);
/*!40000 ALTER TABLE `libro_categoria` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `libro_compra`
--

LOCK TABLES `libro_compra` WRITE;
/*!40000 ALTER TABLE `libro_compra` DISABLE KEYS */;
/*!40000 ALTER TABLE `libro_compra` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `libro_idioma`
--

LOCK TABLES `libro_idioma` WRITE;
/*!40000 ALTER TABLE `libro_idioma` DISABLE KEYS */;
INSERT INTO `libro_idioma` VALUES (1,2),(2,2),(3,2),(4,2),(5,2),(6,2),(7,2),(8,2),(9,2);
/*!40000 ALTER TABLE `libro_idioma` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `libro_venta`
--

LOCK TABLES `libro_venta` WRITE;
/*!40000 ALTER TABLE `libro_venta` DISABLE KEYS */;
/*!40000 ALTER TABLE `libro_venta` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `telefono`
--

LOCK TABLES `telefono` WRITE;
/*!40000 ALTER TABLE `telefono` DISABLE KEYS */;
/*!40000 ALTER TABLE `telefono` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `trabajador`
--

LOCK TABLES `trabajador` WRITE;
/*!40000 ALTER TABLE `trabajador` DISABLE KEYS */;
INSERT INTO `trabajador` VALUES (2,'19763899-0','Daniel','Cortes','Pincheira','2019-06-13','2019-06-13 16:04:42'),(3,'10768789-0','Trabajador','N','2','2019-06-13','2019-06-13 16:05:17'),(4,'9717478-4','Trabajador','N','3','2019-06-13','2019-06-13 16:05:27');
/*!40000 ALTER TABLE `trabajador` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `trabajador_correo`
--

LOCK TABLES `trabajador_correo` WRITE;
/*!40000 ALTER TABLE `trabajador_correo` DISABLE KEYS */;
/*!40000 ALTER TABLE `trabajador_correo` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `trabajador_direccion`
--

LOCK TABLES `trabajador_direccion` WRITE;
/*!40000 ALTER TABLE `trabajador_direccion` DISABLE KEYS */;
/*!40000 ALTER TABLE `trabajador_direccion` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `trabajador_telefono`
--

LOCK TABLES `trabajador_telefono` WRITE;
/*!40000 ALTER TABLE `trabajador_telefono` DISABLE KEYS */;
/*!40000 ALTER TABLE `trabajador_telefono` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `usuario`
--

LOCK TABLES `usuario` WRITE;
/*!40000 ALTER TABLE `usuario` DISABLE KEYS */;
INSERT INTO `usuario` VALUES (2,'admin',0x243168097E0BA82B896F348BABCEB600A8DCA30488C6F238F97FD8737BD00B27,0x3564ECCCD85CF0583F9C090602E998B7,2,'2019-06-13 16:04:53');
/*!40000 ALTER TABLE `usuario` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping data for table `venta`
--

LOCK TABLES `venta` WRITE;
/*!40000 ALTER TABLE `venta` DISABLE KEYS */;
/*!40000 ALTER TABLE `venta` 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 */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2019-06-13 12:10:44
