Advertisement
Loren82

Untitled

Nov 27th, 2020
1,103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 5.24 KB | None | 0 0
  1. -- MySQL dump 10.13  Distrib 8.0.22, for Win64 (x86_64)
  2. --
  3. -- Host: 127.0.0.1    Database: bd_gym
  4. -- ------------------------------------------------------
  5. -- Server version   8.0.22
  6.  
  7. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  8. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  9. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  10. /*!50503 SET NAMES utf8 */;
  11. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  12. /*!40103 SET TIME_ZONE='+00:00' */;
  13. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  14. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  15. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  16. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  17.  
  18. --
  19. -- Table structure for table `ejercicio`
  20. --
  21.  
  22. DROP TABLE IF EXISTS `ejercicio`;
  23. /*!40101 SET @saved_cs_client     = @@character_set_client */;
  24. /*!50503 SET character_set_client = utf8mb4 */;
  25. CREATE TABLE `ejercicio` (
  26.   `id` int NOT NULL AUTO_INCREMENT,
  27.   `nombre` varchar(45) COLLATE utf8_spanish2_ci NOT NULL,
  28.   `FK_material` int DEFAULT NULL,
  29.   PRIMARY KEY (`id`),
  30.   KEY `FK_material_idx` (`FK_material`),
  31.   CONSTRAINT `FK_material` FOREIGN KEY (`FK_material`) REFERENCES `material` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
  32. ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci;
  33. /*!40101 SET character_set_client = @saved_cs_client */;
  34.  
  35. --
  36. -- Dumping data for table `ejercicio`
  37. --
  38.  
  39. LOCK TABLES `ejercicio` WRITE;
  40. /*!40000 ALTER TABLE `ejercicio` DISABLE KEYS */;
  41. INSERT INTO `ejercicio` VALUES (1,'entreno remo',4),(2,'cardio eliptica',2),(3,'cardio bici',3),(4,'dominadas',7),(5,'abdominales',5),(6,'press banca',1),(7,'curl biceps',6),(8,'entreno biceps',6);
  42. /*!40000 ALTER TABLE `ejercicio` ENABLE KEYS */;
  43. UNLOCK TABLES;
  44.  
  45. --
  46. -- Table structure for table `ejercicios_rutina`
  47. --
  48.  
  49. DROP TABLE IF EXISTS `ejercicios_rutina`;
  50. /*!40101 SET @saved_cs_client     = @@character_set_client */;
  51. /*!50503 SET character_set_client = utf8mb4 */;
  52. CREATE TABLE `ejercicios_rutina` (
  53.   `id` int NOT NULL AUTO_INCREMENT,
  54.   `FK_rutina` int DEFAULT NULL,
  55.   `FK_ejercicio` int DEFAULT NULL,
  56.   `tiempo` varchar(45) COLLATE utf8_spanish2_ci DEFAULT NULL,
  57.   `repeticiones` int DEFAULT NULL,
  58.   PRIMARY KEY (`id`),
  59.   KEY `FK_rutina_idx` (`FK_rutina`),
  60.   KEY `FK_ejercicio_idx` (`FK_ejercicio`),
  61.   CONSTRAINT `FK_ejercicio` FOREIGN KEY (`FK_ejercicio`) REFERENCES `ejercicio` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  62.   CONSTRAINT `FK_rutina` FOREIGN KEY (`FK_rutina`) REFERENCES `rutina` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
  63. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci;
  64. /*!40101 SET character_set_client = @saved_cs_client */;
  65.  
  66. --
  67. -- Dumping data for table `ejercicios_rutina`
  68. --
  69.  
  70. LOCK TABLES `ejercicios_rutina` WRITE;
  71. /*!40000 ALTER TABLE `ejercicios_rutina` DISABLE KEYS */;
  72. INSERT INTO `ejercicios_rutina` VALUES (1,1,7,'30',12),(2,2,6,'45',10),(3,4,1,'300',1),(4,5,4,'60',10),(5,8,5,'60',15),(6,1,8,'45',12);
  73. /*!40000 ALTER TABLE `ejercicios_rutina` ENABLE KEYS */;
  74. UNLOCK TABLES;
  75.  
  76. --
  77. -- Table structure for table `material`
  78. --
  79.  
  80. DROP TABLE IF EXISTS `material`;
  81. /*!40101 SET @saved_cs_client     = @@character_set_client */;
  82. /*!50503 SET character_set_client = utf8mb4 */;
  83. CREATE TABLE `material` (
  84.   `id` int NOT NULL AUTO_INCREMENT,
  85.   `material` varchar(45) COLLATE utf8_spanish2_ci NOT NULL,
  86.   PRIMARY KEY (`id`)
  87. ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci;
  88. /*!40101 SET character_set_client = @saved_cs_client */;
  89.  
  90. --
  91. -- Dumping data for table `material`
  92. --
  93.  
  94. LOCK TABLES `material` WRITE;
  95. /*!40000 ALTER TABLE `material` DISABLE KEYS */;
  96. INSERT INTO `material` VALUES (1,'pesa'),(2,'eliptica'),(3,'bici estatica'),(4,'remo'),(5,'banco de abdominales'),(6,'mancuerna'),(7,'barra dominadas');
  97. /*!40000 ALTER TABLE `material` ENABLE KEYS */;
  98. UNLOCK TABLES;
  99.  
  100. --
  101. -- Table structure for table `rutina`
  102. --
  103.  
  104. DROP TABLE IF EXISTS `rutina`;
  105. /*!40101 SET @saved_cs_client     = @@character_set_client */;
  106. /*!50503 SET character_set_client = utf8mb4 */;
  107. CREATE TABLE `rutina` (
  108.   `id` int NOT NULL AUTO_INCREMENT,
  109.   `nombre` varchar(45) COLLATE utf8_spanish2_ci NOT NULL,
  110.   PRIMARY KEY (`id`)
  111. ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci;
  112. /*!40101 SET character_set_client = @saved_cs_client */;
  113.  
  114. --
  115. -- Dumping data for table `rutina`
  116. --
  117.  
  118. LOCK TABLES `rutina` WRITE;
  119. /*!40000 ALTER TABLE `rutina` DISABLE KEYS */;
  120. INSERT INTO `rutina` VALUES (1,'biceps'),(2,'pectoral'),(3,'sentadilla'),(4,'remo'),(5,'dominadas'),(6,'cuadriceps'),(7,'gemelos'),(8,'abs');
  121. /*!40000 ALTER TABLE `rutina` ENABLE KEYS */;
  122. UNLOCK TABLES;
  123.  
  124. --
  125. -- Dumping routines for database 'bd_gym'
  126. --
  127. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  128.  
  129. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  130. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  131. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  132. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  133. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  134. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  135. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  136.  
  137. -- Dump completed on 2020-11-27  8:07:05
  138.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement