db.sql 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. `theme` char(1) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'L',
  30. `token` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
  31. `ultimoLogin` datetime DEFAULT NULL,
  32. PRIMARY KEY (`id`),
  33. UNIQUE KEY `usuario` (`usuario`),
  34. KEY `token` (`token`)
  35. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  36. /*!40101 SET character_set_client = @saved_cs_client */;
  37. --
  38. -- Dumping data for table `usuarios`
  39. --
  40. LOCK TABLES `usuarios` WRITE;
  41. /*!40000 ALTER TABLE `usuarios` DISABLE KEYS */;
  42. INSERT INTO `usuarios` VALUES (1,'admin','c8837b23ff8aaa8a2dde915473ce0991','Administrador','admin@empresa.com','A','','L',NULL);
  43. /*!40000 ALTER TABLE `usuarios` ENABLE KEYS */;
  44. UNLOCK TABLES;
  45. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  46. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  47. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  48. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  49. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  50. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  51. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  52. -- Dump completed on 2019-10-23 22:32:31