Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64)
- --
- -- Host: 127.0.0.1 Database: bd_gym
- -- ------------------------------------------------------
- -- Server version 8.0.22
- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
- /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
- /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
- /*!50503 SET NAMES utf8 */;
- /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
- /*!40103 SET TIME_ZONE='+00:00' */;
- /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
- /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
- /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
- /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
- --
- -- Table structure for table `ejercicio`
- --
- DROP TABLE IF EXISTS `ejercicio`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!50503 SET character_set_client = utf8mb4 */;
- CREATE TABLE `ejercicio` (
- `id` int NOT NULL AUTO_INCREMENT,
- `nombre` varchar(45) COLLATE utf8_spanish2_ci NOT NULL,
- `FK_material` int DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `FK_material_idx` (`FK_material`),
- CONSTRAINT `FK_material` FOREIGN KEY (`FK_material`) REFERENCES `material` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
- ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `ejercicio`
- --
- LOCK TABLES `ejercicio` WRITE;
- /*!40000 ALTER TABLE `ejercicio` DISABLE KEYS */;
- 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);
- /*!40000 ALTER TABLE `ejercicio` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `ejercicios_rutina`
- --
- DROP TABLE IF EXISTS `ejercicios_rutina`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!50503 SET character_set_client = utf8mb4 */;
- CREATE TABLE `ejercicios_rutina` (
- `id` int NOT NULL AUTO_INCREMENT,
- `FK_rutina` int DEFAULT NULL,
- `FK_ejercicio` int DEFAULT NULL,
- `tiempo` varchar(45) COLLATE utf8_spanish2_ci DEFAULT NULL,
- `repeticiones` int DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `FK_rutina_idx` (`FK_rutina`),
- KEY `FK_ejercicio_idx` (`FK_ejercicio`),
- CONSTRAINT `FK_ejercicio` FOREIGN KEY (`FK_ejercicio`) REFERENCES `ejercicio` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT `FK_rutina` FOREIGN KEY (`FK_rutina`) REFERENCES `rutina` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
- ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `ejercicios_rutina`
- --
- LOCK TABLES `ejercicios_rutina` WRITE;
- /*!40000 ALTER TABLE `ejercicios_rutina` DISABLE KEYS */;
- 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);
- /*!40000 ALTER TABLE `ejercicios_rutina` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `material`
- --
- DROP TABLE IF EXISTS `material`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!50503 SET character_set_client = utf8mb4 */;
- CREATE TABLE `material` (
- `id` int NOT NULL AUTO_INCREMENT,
- `material` varchar(45) COLLATE utf8_spanish2_ci NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `material`
- --
- LOCK TABLES `material` WRITE;
- /*!40000 ALTER TABLE `material` DISABLE KEYS */;
- INSERT INTO `material` VALUES (1,'pesa'),(2,'eliptica'),(3,'bici estatica'),(4,'remo'),(5,'banco de abdominales'),(6,'mancuerna'),(7,'barra dominadas');
- /*!40000 ALTER TABLE `material` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `rutina`
- --
- DROP TABLE IF EXISTS `rutina`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!50503 SET character_set_client = utf8mb4 */;
- CREATE TABLE `rutina` (
- `id` int NOT NULL AUTO_INCREMENT,
- `nombre` varchar(45) COLLATE utf8_spanish2_ci NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `rutina`
- --
- LOCK TABLES `rutina` WRITE;
- /*!40000 ALTER TABLE `rutina` DISABLE KEYS */;
- INSERT INTO `rutina` VALUES (1,'biceps'),(2,'pectoral'),(3,'sentadilla'),(4,'remo'),(5,'dominadas'),(6,'cuadriceps'),(7,'gemelos'),(8,'abs');
- /*!40000 ALTER TABLE `rutina` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Dumping routines for database 'bd_gym'
- --
- /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
- /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
- /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
- /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
- /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
- /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
- /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
- /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
- -- Dump completed on 2020-11-27 8:07:05
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement