Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* comentario como si estuvieramos en C#
- Base de datos SQL que me crea la migración que he hecho y he probado parece que esta completa la base de datos pero con los nombres cambiados, no se si fnucionara por eso lo he subido a una rama llamada test donde voy a ir haciendo todas las pruebas que vaya realizando y documentando todos los fallos
- */
- -- MySQL dump 10.13 Distrib 8.0.15, for Win64 (x86_64)
- --
- -- Host: 127.0.0.1 Database: domotica
- -- ------------------------------------------------------
- -- Server version 8.0.15
- /*!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 */;
- 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 `__efmigrationshistory`
- --
- DROP TABLE IF EXISTS `__efmigrationshistory`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `__efmigrationshistory` (
- `MigrationId` text COLLATE utf8_unicode_ci NOT NULL,
- `ProductVersion` text COLLATE utf8_unicode_ci NOT NULL,
- PRIMARY KEY (`MigrationId`(255))
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `__efmigrationshistory`
- --
- LOCK TABLES `__efmigrationshistory` WRITE;
- /*!40000 ALTER TABLE `__efmigrationshistory` DISABLE KEYS */;
- INSERT INTO `__efmigrationshistory` VALUES ('20190327153333_[M1]','2.2.3-servicing-35854');
- /*!40000 ALTER TABLE `__efmigrationshistory` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `roleclaims`
- --
- DROP TABLE IF EXISTS `roleclaims`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `roleclaims` (
- `Id` int(11) NOT NULL AUTO_INCREMENT,
- `RoleId` text COLLATE utf8_unicode_ci,
- `ClaimType` text COLLATE utf8_unicode_ci,
- `ClaimValue` text COLLATE utf8_unicode_ci,
- PRIMARY KEY (`Id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `roleclaims`
- --
- LOCK TABLES `roleclaims` WRITE;
- /*!40000 ALTER TABLE `roleclaims` DISABLE KEYS */;
- /*!40000 ALTER TABLE `roleclaims` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `roles`
- --
- DROP TABLE IF EXISTS `roles`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `roles` (
- `Id` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
- `Name` text COLLATE utf8_unicode_ci,
- `NormalizedName` text COLLATE utf8_unicode_ci,
- `ConcurrencyStamp` text COLLATE utf8_unicode_ci,
- PRIMARY KEY (`Id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `roles`
- --
- LOCK TABLES `roles` WRITE;
- /*!40000 ALTER TABLE `roles` DISABLE KEYS */;
- /*!40000 ALTER TABLE `roles` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `userclaims`
- --
- DROP TABLE IF EXISTS `userclaims`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `userclaims` (
- `Id` int(11) NOT NULL AUTO_INCREMENT,
- `UserId` text COLLATE utf8_unicode_ci,
- `ClaimType` text COLLATE utf8_unicode_ci,
- `ClaimValue` text COLLATE utf8_unicode_ci,
- PRIMARY KEY (`Id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `userclaims`
- --
- LOCK TABLES `userclaims` WRITE;
- /*!40000 ALTER TABLE `userclaims` DISABLE KEYS */;
- /*!40000 ALTER TABLE `userclaims` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `userlogins`
- --
- DROP TABLE IF EXISTS `userlogins`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `userlogins` (
- `LoginProvider` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
- `ProviderKey` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
- `ProviderDisplayName` text COLLATE utf8_unicode_ci,
- `UserId` text COLLATE utf8_unicode_ci,
- PRIMARY KEY (`LoginProvider`,`ProviderKey`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `userlogins`
- --
- LOCK TABLES `userlogins` WRITE;
- /*!40000 ALTER TABLE `userlogins` DISABLE KEYS */;
- /*!40000 ALTER TABLE `userlogins` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `userroles`
- --
- DROP TABLE IF EXISTS `userroles`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `userroles` (
- `UserId` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
- `RoleId` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
- PRIMARY KEY (`UserId`,`RoleId`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `userroles`
- --
- LOCK TABLES `userroles` WRITE;
- /*!40000 ALTER TABLE `userroles` DISABLE KEYS */;
- /*!40000 ALTER TABLE `userroles` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `users`
- --
- DROP TABLE IF EXISTS `users`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `users` (
- `Id` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
- `UserName` text COLLATE utf8_unicode_ci,
- `NormalizedUserName` text COLLATE utf8_unicode_ci,
- `Email` text COLLATE utf8_unicode_ci,
- `NormalizedEmail` text COLLATE utf8_unicode_ci,
- `EmailConfirmed` bit(1) NOT NULL,
- `PasswordHash` text COLLATE utf8_unicode_ci,
- `SecurityStamp` text COLLATE utf8_unicode_ci,
- `ConcurrencyStamp` text COLLATE utf8_unicode_ci,
- `PhoneNumber` text COLLATE utf8_unicode_ci,
- `PhoneNumberConfirmed` bit(1) NOT NULL,
- `TwoFactorEnabled` bit(1) NOT NULL,
- `LockoutEnd` timestamp NULL DEFAULT NULL,
- `LockoutEnabled` bit(1) NOT NULL,
- `AccessFailedCount` int(11) NOT NULL,
- PRIMARY KEY (`Id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `users`
- --
- LOCK TABLES `users` WRITE;
- /*!40000 ALTER TABLE `users` DISABLE KEYS */;
- /*!40000 ALTER TABLE `users` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `usertokens`
- --
- DROP TABLE IF EXISTS `usertokens`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `usertokens` (
- `UserId` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
- `LoginProvider` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
- `Name` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL,
- `Value` text COLLATE utf8_unicode_ci,
- PRIMARY KEY (`UserId`,`LoginProvider`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `usertokens`
- --
- LOCK TABLES `usertokens` WRITE;
- /*!40000 ALTER TABLE `usertokens` DISABLE KEYS */;
- /*!40000 ALTER TABLE `usertokens` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `usuarios`
- --
- DROP TABLE IF EXISTS `usuarios`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `usuarios` (
- `ID` int(11) NOT NULL AUTO_INCREMENT,
- `Nombre` text COLLATE utf8_unicode_ci,
- `Apellido` text COLLATE utf8_unicode_ci,
- `DNI` text COLLATE utf8_unicode_ci,
- `Imagen` text COLLATE utf8_unicode_ci,
- `Iduser` text COLLATE utf8_unicode_ci,
- PRIMARY KEY (`ID`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `usuarios`
- --
- LOCK TABLES `usuarios` WRITE;
- /*!40000 ALTER TABLE `usuarios` DISABLE KEYS */;
- /*!40000 ALTER TABLE `usuarios` ENABLE KEYS */;
- UNLOCK TABLES;
- /*!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 2019-03-28 11:42:00
Add Comment
Please, Sign In to add comment