diff --git a/database/dump/admv.sql b/database/dump/admv.sql index 6bed66f..f832a2b 100644 --- a/database/dump/admv.sql +++ b/database/dump/admv.sql @@ -44,7 +44,7 @@ CREATE TABLE `expense` ( KEY `expense_expenseTypeId_foreign_idx` (`expenseTypeId`), CONSTRAINT `expense_expenseTypeId_foreign_idx` FOREIGN KEY (`expenseTypeId`) REFERENCES `expenseType` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT `expense_providerId_foreign_idx` FOREIGN KEY (`providerId`) REFERENCES `provider` (`id`) ON DELETE SET NULL ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; +) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -71,7 +71,7 @@ CREATE TABLE `expenseType` ( `createdAt` datetime NOT NULL, `updatedAt` datetime NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; +) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -105,7 +105,7 @@ CREATE TABLE `income` ( KEY `income_incomeTypeId_foreign_idx` (`incomeTypeId`), CONSTRAINT `income_incomeTypeId_foreign_idx` FOREIGN KEY (`incomeTypeId`) REFERENCES `incomeType` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT `income_memberId_foreign_idx` FOREIGN KEY (`memberId`) REFERENCES `member` (`id`) ON DELETE SET NULL ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=78 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; +) ENGINE=InnoDB AUTO_INCREMENT=51 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -132,7 +132,7 @@ CREATE TABLE `incomeType` ( `createdAt` datetime NOT NULL, `updatedAt` datetime NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=285 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; +) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -159,7 +159,7 @@ CREATE TABLE `member` ( `createdAt` datetime NOT NULL, `updatedAt` datetime NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=138 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; +) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -188,7 +188,7 @@ CREATE TABLE `provider` ( `email` varchar(255) COLLATE utf8mb4_bin DEFAULT '', `phone` varchar(20) COLLATE utf8mb4_bin DEFAULT '', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; +) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -200,6 +200,34 @@ LOCK TABLES `provider` WRITE; INSERT INTO `provider` VALUES (1,'Teste','00.0000/0000-00','2019-03-10 16:52:31','2019-03-10 16:52:31','',''); /*!40000 ALTER TABLE `provider` 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` int(11) NOT NULL AUTO_INCREMENT, + `email` varchar(255) COLLATE utf8mb4_bin NOT NULL, + `name` varchar(255) COLLATE utf8mb4_bin NOT NULL, + `password` varchar(255) COLLATE utf8mb4_bin NOT NULL, + `createdAt` datetime NOT NULL, + `updatedAt` datetime NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; +/*!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 (5,'test@user.com','Test','$2a$08$ewgdInyIcjIEE1YhX6Kx3OvEixrNKbiyosR.s0WitR2zVd7ZBfNWG','2019-04-14 00:17:16','2019-04-14 00:17:16'); +/*!40000 ALTER TABLE `user` ENABLE KEYS */; +UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; @@ -210,4 +238,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2019-03-31 6:42:22 +-- Dump completed on 2019-04-14 1:10:52