Tecnicamente esto es la version final ya
No hay mucho ams que hacer, la entrega es en una hora aprox
This commit is contained in:
116
db/data.sql
116
db/data.sql
@@ -1,119 +1,7 @@
|
||||
start transaction;
|
||||
|
||||
set foreign_key_checks = 0;
|
||||
set autocommit = 0;
|
||||
|
||||
INSERT INTO `autor`
|
||||
VALUES (1, 'Howard Philips', 'Lovecraft', NULL, '2019-06-12 20:18:57'),
|
||||
(2, 'Stephen', 'King', NULL, '2019-06-12 20:18:57'),
|
||||
(3, 'Brandon', 'Sanderson', NULL, '2019-06-12 20:18:57');
|
||||
|
||||
INSERT INTO `categoria`
|
||||
VALUES (1, 'Terror', '2019-06-12 20:18:57'),
|
||||
(2, 'Aventura', '2019-06-12 20:18:57'),
|
||||
(3, 'Fantasia', '2019-06-12 20:18:57');
|
||||
|
||||
INSERT INTO `cliente`
|
||||
VALUES (1, '21786653-7', 'Cliente', '1', '1', '2019-06-17', '2019-06-13 20:01:33'),
|
||||
(2, '17181388-3', 'Cliente', '2', '2', '2019-06-13', '2019-06-13 20:04:02');
|
||||
|
||||
INSERT INTO `compra`
|
||||
VALUES (1, 1, 2, '2019-07-03 23:03:36');
|
||||
|
||||
INSERT INTO `correo`
|
||||
VALUES (1, 'HOOLA', '2019-06-13 21:25:41'),
|
||||
(2, 'skrd159@gmail.com', '2019-06-13 21:32:13');
|
||||
INSERT INTO `distribuidor`
|
||||
VALUES (2, 1, '14166920-6', '2019-06-13 07:08:17'),
|
||||
(3, 2, '8425080-5', '2019-06-13 07:08:23'),
|
||||
(4, 1, '21629388-6', '2019-06-13 07:08:25'),
|
||||
(5, 1, '13510176-1', '2019-06-13 07:08:27');
|
||||
INSERT INTO `editorial`
|
||||
VALUES (1, 'Editorial N1', '2019-06-12 20:18:57'),
|
||||
(2, 'Editorial N2', '2019-06-12 20:18:57'),
|
||||
(3, 'Editorial N3', '2019-06-12 20:18:57');
|
||||
INSERT INTO `ejemplar`
|
||||
VALUES (1, 1, 3, '123', '2019-07-03 23:03:36');
|
||||
INSERT INTO `ejemplar_compra`
|
||||
VALUES (1, 1);
|
||||
INSERT INTO `empresa`
|
||||
VALUES (1, 'Empresa 1', '2019-06-13 04:39:50'),
|
||||
(2, 'Empresa 2', '2019-06-13 04:39:52');
|
||||
INSERT INTO `estado`
|
||||
VALUES (1, 'Vendido', '2019-06-12 20:18:57'),
|
||||
(2, 'Arrendado', '2019-06-12 20:18:57'),
|
||||
(3, 'Disponible', '2019-06-12 20:18:57');
|
||||
INSERT INTO `factura`
|
||||
VALUES (1, '159', 5000, '2019-07-03 00:00:00', '2019-07-03 23:03:36');
|
||||
INSERT INTO `idioma`
|
||||
VALUES (1, 'Español', '2019-06-12 20:18:57'),
|
||||
(2, 'Ingles', '2019-06-12 20:18:57'),
|
||||
(3, 'Portuges', '2019-06-12 20:18:57'),
|
||||
(4, 'Aleman', '2019-06-12 20:18:57'),
|
||||
(5, 'Ruso', '2019-06-12 20:18:57'),
|
||||
(6, 'Japones', '2019-06-12 20:18:57');
|
||||
INSERT INTO `libro`
|
||||
VALUES (1, 1, '0-765-31178-X', 2006, 541, 'Mistborn: The Final Empire', 10000,
|
||||
'2019-06-12 20:18:57'),
|
||||
(2, 1, '0-765-31688-9', 2007, 590, 'Mistborn: The Well of Ascension', 10000,
|
||||
'2019-06-12 20:18:57'),
|
||||
(3, 1, '978-0-7653-1689-9', 2008, 572, 'Mistborn: The Hero of Ages', 10000,
|
||||
'2019-06-12 20:18:57'),
|
||||
(4, 2, '1231231231232', 1931, 100, 'The Shadow over Innsmouth', 10000,
|
||||
'2019-06-12 20:18:57'),
|
||||
(5, 2, '1231231231232', 1933, 100, 'The Dreams in the Witch House', 10000,
|
||||
'2019-06-12 20:18:57'),
|
||||
(6, 2, '1231231231232', 1936, 100, 'At the Mountains of Madness', 10000,
|
||||
'2019-06-12 20:18:57'),
|
||||
(7, 3, '0385086954', 1974, 199, 'Carrie', 10000, '2019-06-12 20:18:57'),
|
||||
(8, 3, '978-0-670-26077-5', 1979, 428, 'The Dead Zone', 10000, '2019-06-12 20:18:57'),
|
||||
(9, 3, '0-670-81302-8', 1986, 1138, 'It', 10000, '2019-06-12 20:18:57');
|
||||
INSERT INTO `libro_autor`
|
||||
VALUES (1, 3),
|
||||
(2, 3),
|
||||
(3, 3),
|
||||
(4, 1),
|
||||
(5, 1),
|
||||
(6, 1),
|
||||
(7, 2),
|
||||
(8, 2),
|
||||
(9, 2);
|
||||
INSERT INTO `libro_categoria`
|
||||
VALUES (1, 3),
|
||||
(2, 3),
|
||||
(3, 3),
|
||||
(4, 1),
|
||||
(5, 1),
|
||||
(6, 1),
|
||||
(7, 1),
|
||||
(8, 1),
|
||||
(9, 1);
|
||||
INSERT INTO `libro_idioma`
|
||||
VALUES (1, 2),
|
||||
(2, 2),
|
||||
(3, 2),
|
||||
(4, 2),
|
||||
(5, 2),
|
||||
(6, 2),
|
||||
(7, 2),
|
||||
(8, 2),
|
||||
(9, 2);
|
||||
INSERT INTO `libro_orden_compra`
|
||||
VALUES (1, 1);
|
||||
INSERT INTO `orden_compra`
|
||||
VALUES (1, 'Recibida', 1, 2, '2019-07-03 23:03:36');
|
||||
INSERT INTO `trabajador`
|
||||
VALUES (2, '19763899-0', 'Daniel', 'Cortes', 'Pincheira', '2019-06-13', '2019-06-13 20:04:42'),
|
||||
(3, '10768789-0', 'Trabajador', 'N', '2', '2019-06-13', '2019-06-13 20:05:17'),
|
||||
(4, '9717478-4', 'Trabajador', 'N', '3', '2019-06-13', '2019-06-13 20:05:27');
|
||||
INSERT INTO `trabajador_correo`
|
||||
VALUES (4, 1),
|
||||
(2, 2);
|
||||
INSERT INTO `usuario`
|
||||
VALUES (2, 'admin', 0x243168097E0BA82B896F348BABCEB600A8DCA30488C6F238F97FD8737BD00B27,
|
||||
0x3564ECCCD85CF0583F9C090602E998B7, 2, '2019-06-13 20:04:53');
|
||||
|
||||
INSERT INTO `arriendo` VALUES (1,2,1,500,'2019-07-07','2019-07-23','2019-07-07',100,'2019-07-07 18:28:15'); INSERT INTO `autor` VALUES (1,'Howard Philips','Lovecraft',NULL,'2019-06-13 00:18:57'),(2,'Stephen','King',NULL,'2019-06-13 00:18:57'),(3,'Brandon','Sanderson',NULL,'2019-06-13 00:18:57'); INSERT INTO `boleta` VALUES (1,'b1595951-87dd-4b4c-9d02-777f9be98ea2',10000,'2019-07-07 00:00:00','2019-07-07 18:40:52'); INSERT INTO `categoria` VALUES (1,'Terror','2019-06-13 00:18:57'),(2,'Aventura','2019-06-13 00:18:57'),(3,'Fantasia','2019-06-13 00:18:57'); INSERT INTO `cliente` VALUES (1,'21786653-7','Cliente','1','1','2019-06-17','2019-06-14 00:01:33'),(2,'17181388-3','Cliente','2','2','2019-06-13','2019-06-14 00:04:02'); INSERT INTO `compra` VALUES (1,1,2,'2019-07-04 03:03:36'),(2,2,4,'2019-07-09 22:35:37'); INSERT INTO `correo` VALUES (1,'HOOLA','2019-06-14 01:25:41'),(2,'skrd159@gmail.com','2019-06-14 01:32:13'); INSERT INTO `distribuidor` VALUES (2,1,'14166920-6','2019-06-13 11:08:17'),(3,2,'8425080-5','2019-06-13 11:08:23'),(4,1,'21629388-6','2019-06-13 11:08:25'),(5,1,'13510176-1','2019-06-13 11:08:27'); INSERT INTO `editorial` VALUES (1,'Editorial N1','2019-06-13 00:18:57'),(2,'Editorial N2','2019-06-13 00:18:57'),(3,'Editorial N3','2019-06-13 00:18:57'); INSERT INTO `ejemplar` VALUES (1,1,1,'123','2019-07-04 03:03:36'),(2,3,3,'a','2019-07-09 22:35:37'),(3,3,3,'b','2019-07-09 22:35:37'),(4,3,3,'c','2019-07-09 22:35:37'),(5,3,3,'d','2019-07-09 22:35:37'),(6,3,3,'e','2019-07-09 22:35:37'),(7,3,3,'f','2019-07-09 22:35:37'),(8,3,3,'g','2019-07-09 22:35:37'),(9,3,3,'h','2019-07-09 22:35:37'),(10,3,3,'i','2019-07-09 22:35:37'),(11,3,3,'j','2019-07-09 22:35:37'); INSERT INTO `ejemplar_arriendo` VALUES (1,1); INSERT INTO `ejemplar_compra` VALUES (1,1),(2,2),(3,2),(4,2),(5,2),(6,2),(7,2),(8,2),(9,2),(10,2),(11,2); INSERT INTO `ejemplar_venta` VALUES (1,1); INSERT INTO `empresa` VALUES (1,'Empresa 1','2019-06-13 08:39:50'),(2,'Empresa 2','2019-06-13 08:39:52'); INSERT INTO `estado` VALUES (1,'Vendido','2019-06-13 00:18:57'),(2,'Arrendado','2019-06-13 00:18:57'),(3,'Disponible','2019-06-13 00:18:57'); INSERT INTO `factura` VALUES (1,'159',5000,'2019-07-03 00:00:00','2019-07-04 03:03:36'),(2,'1000',15000,'2019-07-09 00:00:00','2019-07-09 22:35:37'); INSERT INTO `idioma` VALUES (1,'Español','2019-06-13 00:18:57'),(2,'Ingles','2019-06-13 00:18:57'),(3,'Portuges','2019-06-13 00:18:57'),(4,'Aleman','2019-06-13 00:18:57'),(5,'Ruso','2019-06-13 00:18:57'),(6,'Japones','2019-06-13 00:18:57'); INSERT INTO `libro` VALUES (1,1,'0-765-31178-X',2006,541,'Mistborn: The Final Empire',10000,'2019-06-13 00:18:57'),(2,1,'0-765-31688-9',2007,590,'Mistborn: The Well of Ascension',10000,'2019-06-13 00:18:57'),(3,1,'978-0-7653-1689-9',2008,572,'Mistborn: The Hero of Ages',10000,'2019-06-13 00:18:57'),(4,2,'1231231231232',1931,100,'The Shadow over Innsmouth',10000,'2019-06-13 00:18:57'),(5,2,'1231231231232',1933,100,'The Dreams in the Witch House',10000,'2019-06-13 00:18:57'),(6,2,'1231231231232',1936,100,'At the Mountains of Madness',10000,'2019-06-13 00:18:57'),(7,3,'0385086954',1974,199,'Carrie',10000,'2019-06-13 00:18:57'),(8,3,'978-0-670-26077-5',1979,428,'The Dead Zone',10000,'2019-06-13 00:18:57'),(9,3,'0-670-81302-8',1986,1138,'It',10000,'2019-06-13 00:18:57'); INSERT INTO `libro_autor` VALUES (1,3),(2,3),(3,3),(4,1),(5,1),(6,1),(7,2),(8,2),(9,2); INSERT INTO `libro_categoria` VALUES (1,3),(2,3),(3,3),(4,1),(5,1),(6,1),(7,1),(8,1),(9,1); INSERT INTO `libro_idioma` VALUES (1,2),(2,2),(3,2),(4,2),(5,2),(6,2),(7,2),(8,2),(9,2); INSERT INTO `libro_orden_compra` VALUES (1,1),(3,2),(3,2),(3,2),(3,2),(3,2),(3,2),(3,2),(3,2),(3,2),(3,2); INSERT INTO `orden_compra` VALUES (1,'Recibida',1,2,'2019-07-04 03:03:36'),(2,'Recibida',2,4,'2019-07-09 22:35:37'); INSERT INTO `trabajador` VALUES (2,'19763899-0','Daniel','Cortes','Pincheira','2019-06-13','2019-06-14 00:04:42'),(3,'10768789-0','Trabajador','N','2','2019-06-13','2019-06-14 00:05:17'),(4,'9717478-4','Trabajador','N','3','2019-06-13','2019-06-14 00:05:27'),(5,'10232662-8','Profe','Profe','Profe','2019-07-09','2019-07-09 22:36:25'); INSERT INTO `trabajador_correo` VALUES (4,1),(2,2); INSERT INTO `usuario` VALUES (2,'admin',0x243168097E0BA82B896F348BABCEB600A8DCA30488C6F238F97FD8737BD00B27,0x3564ECCCD85CF0583F9C090602E998B7,2,'2019-06-14 00:04:53'),(3,'profe',0xC73B34E9EBCFC48BAF2578FF9C863980B09414391C768406AA38CC46479B01F5,0xECAE61B1271D610C178F26F261BC116C,5,'2019-07-09 22:36:41'); INSERT INTO `venta` VALUES (1,1,2,1,'2019-07-07 18:40:52');
|
||||
set autocommit = 1;
|
||||
set foreign_key_checks = 1;
|
||||
|
||||
commit;
|
||||
commit;
|
||||
|
||||
Reference in New Issue
Block a user