db.sql 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. -- MySQL dump 10.13 Distrib 5.7.28, for Linux (x86_64)
  2. --
  3. -- Host: localhost Database: webApp
  4. -- ------------------------------------------------------
  5. -- Server version 5.7.28
  6. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  7. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  8. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  9. /*!40101 SET NAMES utf8 */;
  10. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  11. /*!40103 SET TIME_ZONE='+00:00' */;
  12. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  13. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  14. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  15. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  16. --
  17. -- Table structure for table `usuarios`
  18. --
  19. DROP TABLE IF EXISTS `usuarios`;
  20. /*!40101 SET @saved_cs_client = @@character_set_client */;
  21. /*!40101 SET character_set_client = utf8 */;
  22. CREATE TABLE `usuarios` (
  23. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  24. `usuario` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  25. `pass` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  26. `nombre` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  27. `email` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  28. `role` varchar(1) COLLATE utf8mb4_unicode_ci NOT NULL,
  29. `token` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
  30. `ultimoLogin` datetime DEFAULT NULL,
  31. PRIMARY KEY (`id`),
  32. UNIQUE KEY `usuario` (`usuario`),
  33. KEY `token` (`token`)
  34. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  35. /*!40101 SET character_set_client = @saved_cs_client */;
  36. --
  37. -- Dumping data for table `usuarios`
  38. --
  39. LOCK TABLES `usuarios` WRITE;
  40. /*!40000 ALTER TABLE `usuarios` DISABLE KEYS */;
  41. INSERT INTO `usuarios` VALUES (1,'admin','c8837b23ff8aaa8a2dde915473ce0991','Administrador','admin@empresa.com','A','',NULL);
  42. /*!40000 ALTER TABLE `usuarios` ENABLE KEYS */;
  43. UNLOCK TABLES;
  44. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  45. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  46. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  47. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  48. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  49. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  50. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  51. -- Dump completed on 2019-10-23 22:32:31