Compare commits

..

36 Commits

Author SHA1 Message Date
rajukottedi 4b968099ad Improve error handling and logging for mail and OTP endpoints
Updated AuthController and CvController to return exception messages in 500 responses and enhanced logging. MailService now throws descriptive exceptions on email send failures, allowing upstream error reporting and preserving failed messages.
2026-02-16 11:44:31 +05:30
rajukottedi 2d603e4fc6 Improve URL config parsing and mail exception handling
Refactor Program.cs to robustly parse and validate URLs from config, logging a warning if none are valid. Enhance MailService exception handling to log full exceptions and avoid interrupting OTP generation by swallowing mail send errors.
2026-02-16 11:18:46 +05:30
rajukottedi 2533b5298f Support encrypted cache conn strings & update dependencies
Moved DecryptConnectionString to KBR.Shared.Extensions for reuse and improved configuration access. Added Encryption property to CacheOptions and appsettings for conditional decryption of cache connection strings. Updated ServiceCollectionExtensions to decrypt SQL Server cache connection strings when needed. Upgraded NuGet packages across projects to latest .NET 8/10.0.x versions. Included minor code cleanups and OpenApiSecurityScheme improvements.
2026-02-15 14:22:22 +05:30
rajukottedi 4ebd93d39b Update projects to .NET 10.0 and add Program doc entry
Upgraded target frameworks to .NET 10.0 across multiple projects for latest compatibility. Added documentation for the auto-generated Program class in PortBlog.API.xml. No other functional changes.
2026-02-15 13:22:48 +05:30
rajukottedi 5b7952877e Admin API refactor: claim-based resume CRUD & versioning
Major refactor of AdminController and related services to support full CRUD for candidate resume, projects, hobbies, skills, academics, experiences, certifications, and contact info, all using access token claims for candidate identity. Introduced AdminService and expanded IResumeRepository for granular entity management. Updated DTOs for upsert operations and date support. Improved API versioning (Asp.Versioning.Mvc), Swagger integration, and middleware setup. Added unit test project. Enhanced error handling, documentation, and mapping.
2026-02-15 05:27:35 +05:30
rajukottedi cd01c11be7 Refactor controllers and services; update logging
Refactored AdminController and AuthService to use primary
constructor syntax, removing explicit field declarations.
Updated logging to use structured logging across controllers
and services. Added XML documentation for methods in
AdminController, AuthController, AuthService, and MailService.
Modified Program.cs to improve connection string handling and
Swagger setup. Removed deprecated service files.
2025-11-22 14:16:31 +05:30
rajukottedi 3a7edb23c7 Add JWT, OTP, and caching features
Upgraded projects to .NET 9.0 and added new projects `KBR.Cache`, `KBR.Shared`, and `KBR.Shared.Lite` to the solution. Introduced JWT authentication and OTP handling with new models, services, and configuration options. Updated database schema with new entities `Users` and `RefreshTokens`, and added migrations for schema changes. Implemented caching strategies using `AppDistributedCache` with support for in-memory, SQL Server, and Redis. Enhanced email handling with `MailHelpers` for domain replacement. Updated controllers, repositories, and configuration files to support new features.
2025-11-22 06:52:59 +05:30
rajukottedi 912457755e update post details for blog 2025-01-05 23:37:31 +05:30
rajukottedi 8cede3ba55 code refactoring 2024-05-09 13:31:40 +05:30
rajukottedi 5fbeb9f732 code refactoring 2024-05-08 22:54:51 +05:30
rajukottedi 2676921d7a publish only api project 2024-05-08 02:05:52 +05:30
rajukottedi 8eeedf6dad changed api url for blog - /blog/api/* 2024-05-07 05:35:31 +05:30
rajukottedi 50911e0de7 add frombody to updatecomments count api 2024-05-07 03:43:31 +05:30
rajukottedi 2b25c55a70 Update post comments 2024-05-07 03:36:41 +05:30
rajukottedi c6538b8d0d code refactoring 2024-05-07 02:49:17 +05:30
rajukottedi d8c59d7bd1 Blog APIs implemented 2024-05-07 02:31:50 +05:30
rajukottedi 50c5f87f93 blog apis for getting like and views 2024-05-06 23:23:25 +05:30
rajukottedi 5c1a50ea64 code refactoring 2024-05-05 16:02:39 +05:30
rajukottedi cd1ad0a47f code refactoring 2024-05-02 17:57:56 +05:30
rajukottedi 62c7a29909 code refactoring 2024-05-02 17:06:43 +05:30
rajukottedi 4672d82975 send email code refactoring 2024-05-01 23:44:28 +05:30
rajukottedi 9a4db75e85 code refactoring 2024-05-01 23:33:26 +05:30
rajukottedi d2548941fa returning true on successfully sent message 2024-05-01 23:28:13 +05:30
rajukottedi e8b9fe0dc3 serilog configuration changed based on environments 2024-05-01 00:45:22 +05:30
rajukottedi 22c0d933af dev appsettings json format fix 2024-05-01 00:15:48 +05:30
rajukottedi 167b736493 Merge branch 'dev-mail-service' of rajukottedi/PortBlog.API into dev 2024-05-01 00:00:11 +05:30
rajukottedi 9cfe5676bc code refactoring 2024-04-30 23:58:32 +05:30
rajukottedi aa22cbe708 Merge branch 'dev-mail-service' of rajukottedi/PortBlog.API into dev 2024-04-30 23:23:31 +05:30
rajukottedi bd2ec7272f Added Mail Service 2024-04-30 23:20:58 +05:30
rajukottedi efb1f344e0 added allow urls to use 2024-04-30 13:51:22 +05:30
rajukottedi c7b1f28c92 added Images folder to the output folder 2024-04-30 13:10:11 +05:30
rajukottedi 46edddc84f Merge branch 'dev-api-documentation' of rajukottedi/PortBlog.API into dev 2024-04-29 16:04:20 +05:30
rajukottedi 61d97d40b0 Implemented API versioning and added to the swagger documentation 2024-04-29 16:03:01 +05:30
rajukottedi b3cb7b351f api performance changes 2024-04-29 00:19:37 +05:30
rajukottedi 21e02ab3ca 1. AES Encryption/Decryption Tool
2. Encrypted Connection string
3. Added API Security using ApiKey
2024-04-28 13:22:57 +05:30
rajukottedi 4c6f9a4ba8 Changes:
Database Migration, Repositories, Automapper, Logger, StaticFiles
2024-04-26 02:34:47 +05:30
149 changed files with 37992 additions and 75 deletions
+1
View File
@@ -361,3 +361,4 @@ MigrationBackup/
# Fody - auto-generated XML schema # Fody - auto-generated XML schema
FodyWeavers.xsd FodyWeavers.xsd
/PortBlog.API/appsettings.Production.json
+11
View File
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPublishable>false</IsPublishable>
</PropertyGroup>
</Project>
+138
View File
@@ -0,0 +1,138 @@
// See https://aka.ms/new-console-template for more information
using System.Security.Cryptography;
string keyBase64;
string cipherText;
string vectorBase64;
string plainText;
Console.WriteLine("Welcome to the Aes Encryption/Decryption tool");
Select:
Console.WriteLine("Please select the action you want to perform: /n Press 1 to Generate Key. /n Press 2 to Encrypt using the key. /n Press 3 to Decrpt using the key.");
string? action = Console.ReadLine();
if (action == null || !int.TryParse(action, out int actionId) || !new List<int>{ 1, 2, 3 }.Contains(actionId))
{
Console.WriteLine("Invalid option. /n");
goto Select;
}
switch (actionId)
{
case 1:
Console.WriteLine("Creating Aes Encryption 256 bit key");
using (Aes aesAlgorithm = Aes.Create())
{
aesAlgorithm.KeySize = 256;
aesAlgorithm.GenerateKey();
keyBase64 = Convert.ToBase64String(aesAlgorithm.Key);
Console.WriteLine($"Aes Key Size : {aesAlgorithm.KeySize}");
Console.WriteLine("Here is the Aes key in Base64:");
Console.WriteLine(keyBase64);
}
break;
case 2:
Console.WriteLine("Encrypt Text");
Console.WriteLine("Provide the Aes Key in base64 format :");
keyBase64 = Console.ReadLine();
Console.WriteLine("--------------------------------------------------------------");
Console.WriteLine("Please enter the text that you want to encrypt:");
plainText = Console.ReadLine();
Console.WriteLine("--------------------------------------------------------------");
cipherText = EncryptDataWithAes(plainText, keyBase64, out vectorBase64);
Console.WriteLine("--------------------------------------------------------------");
Console.WriteLine("Here is the cipher text with vector:");
Console.WriteLine(cipherText + ":" + vectorBase64);
break;
case 3:
Console.WriteLine("Please enter the text that you want to decrypt:");
cipherText = Console.ReadLine();
Console.WriteLine("--------------------------------------------------------------");
Console.WriteLine("Provide the Aes Key:");
keyBase64 = Console.ReadLine();
Console.WriteLine("--------------------------------------------------------------");
vectorBase64 = cipherText.Split(":")[1];
cipherText = cipherText.Split(":")[0];
plainText = DecryptDataWithAes(cipherText, keyBase64, vectorBase64);
Console.WriteLine("--------------------------------------------------------------");
Console.WriteLine("Here is the decrypted data:");
Console.WriteLine(plainText);
break;
}
goto Select;
static string EncryptDataWithAes(string plainText, string keyBase64, out string vectorBase64)
{
using (Aes aesAlgorithm = Aes.Create())
{
aesAlgorithm.Key = Convert.FromBase64String(keyBase64);
aesAlgorithm.GenerateIV();
Console.WriteLine($"Aes Cipher Mode : {aesAlgorithm.Mode}");
Console.WriteLine($"Aes Padding Mode: {aesAlgorithm.Padding}");
Console.WriteLine($"Aes Key Size : {aesAlgorithm.KeySize}");
//set the parameters with out keyword
vectorBase64 = Convert.ToBase64String(aesAlgorithm.IV);
// Create encryptor object
ICryptoTransform encryptor = aesAlgorithm.CreateEncryptor();
byte[] encryptedData;
//Encryption will be done in a memory stream through a CryptoStream object
using (MemoryStream ms = new MemoryStream())
{
using (CryptoStream cs = new CryptoStream(ms, encryptor, CryptoStreamMode.Write))
{
using (StreamWriter sw = new StreamWriter(cs))
{
sw.Write(plainText);
}
encryptedData = ms.ToArray();
}
}
return Convert.ToBase64String(encryptedData);
}
}
static string DecryptDataWithAes(string cipherText, string keyBase64, string vectorBase64)
{
using (Aes aesAlgorithm = Aes.Create())
{
aesAlgorithm.Key = Convert.FromBase64String(keyBase64);
aesAlgorithm.IV = Convert.FromBase64String(vectorBase64);
Console.WriteLine($"Aes Cipher Mode : {aesAlgorithm.Mode}");
Console.WriteLine($"Aes Padding Mode: {aesAlgorithm.Padding}");
Console.WriteLine($"Aes Key Size : {aesAlgorithm.KeySize}");
Console.WriteLine($"Aes Block Size : {aesAlgorithm.BlockSize}");
// Create decryptor object
ICryptoTransform decryptor = aesAlgorithm.CreateDecryptor();
byte[] cipher = Convert.FromBase64String(cipherText);
//Decryption will be done in a memory stream through a CryptoStream object
using (MemoryStream ms = new MemoryStream(cipher))
{
using (CryptoStream cs = new CryptoStream(ms, decryptor, CryptoStreamMode.Read))
{
using (StreamReader sr = new StreamReader(cs))
{
return sr.ReadToEnd();
}
}
}
}
}
+92 -3
View File
@@ -1,24 +1,113 @@
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17 # Visual Studio Version 18
VisualStudioVersion = 17.9.34701.34 VisualStudioVersion = 18.1.11304.174
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PortBlog.API", "PortBlog.API\PortBlog.API.csproj", "{2E50B5D7-56E2-4E89-8742-BB57FF4245F9}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PortBlog.API", "PortBlog.API\PortBlog.API.csproj", "{2E50B5D7-56E2-4E89-8742-BB57FF4245F9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AesEncryption", "AesEncryption\AesEncryption.csproj", "{26654BFD-EE9B-49BA-84BA-9156AC348076}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{868B8641-C2BB-415C-816A-4FB477DA009B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KBR.Cache", "Shared\KBR.Cache\KBR.Cache.csproj", "{DA0B3995-A83A-4D7C-A964-ADFE1F58B1FA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KBR.Shared", "Shared\KBR.Shared\KBR.Shared.csproj", "{1C0F86E4-A791-4150-B9B3-B761925681DD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KBR.Shared.Lite", "Shared\KBR.Share.Lite\KBR.Shared.Lite.csproj", "{F4B7078B-C59A-46B8-881A-C3CEE2634498}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PortBlog.Tests", "PortBlog.Tests\PortBlog.Tests.csproj", "{11106F82-FC17-497D-8747-CF1A84BFA7F8}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2E50B5D7-56E2-4E89-8742-BB57FF4245F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {2E50B5D7-56E2-4E89-8742-BB57FF4245F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2E50B5D7-56E2-4E89-8742-BB57FF4245F9}.Debug|Any CPU.Build.0 = Debug|Any CPU {2E50B5D7-56E2-4E89-8742-BB57FF4245F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2E50B5D7-56E2-4E89-8742-BB57FF4245F9}.Debug|x64.ActiveCfg = Debug|Any CPU
{2E50B5D7-56E2-4E89-8742-BB57FF4245F9}.Debug|x64.Build.0 = Debug|Any CPU
{2E50B5D7-56E2-4E89-8742-BB57FF4245F9}.Debug|x86.ActiveCfg = Debug|Any CPU
{2E50B5D7-56E2-4E89-8742-BB57FF4245F9}.Debug|x86.Build.0 = Debug|Any CPU
{2E50B5D7-56E2-4E89-8742-BB57FF4245F9}.Release|Any CPU.ActiveCfg = Release|Any CPU {2E50B5D7-56E2-4E89-8742-BB57FF4245F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2E50B5D7-56E2-4E89-8742-BB57FF4245F9}.Release|Any CPU.Build.0 = Release|Any CPU {2E50B5D7-56E2-4E89-8742-BB57FF4245F9}.Release|Any CPU.Build.0 = Release|Any CPU
{2E50B5D7-56E2-4E89-8742-BB57FF4245F9}.Release|x64.ActiveCfg = Release|Any CPU
{2E50B5D7-56E2-4E89-8742-BB57FF4245F9}.Release|x64.Build.0 = Release|Any CPU
{2E50B5D7-56E2-4E89-8742-BB57FF4245F9}.Release|x86.ActiveCfg = Release|Any CPU
{2E50B5D7-56E2-4E89-8742-BB57FF4245F9}.Release|x86.Build.0 = Release|Any CPU
{26654BFD-EE9B-49BA-84BA-9156AC348076}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{26654BFD-EE9B-49BA-84BA-9156AC348076}.Debug|Any CPU.Build.0 = Debug|Any CPU
{26654BFD-EE9B-49BA-84BA-9156AC348076}.Debug|x64.ActiveCfg = Debug|Any CPU
{26654BFD-EE9B-49BA-84BA-9156AC348076}.Debug|x64.Build.0 = Debug|Any CPU
{26654BFD-EE9B-49BA-84BA-9156AC348076}.Debug|x86.ActiveCfg = Debug|Any CPU
{26654BFD-EE9B-49BA-84BA-9156AC348076}.Debug|x86.Build.0 = Debug|Any CPU
{26654BFD-EE9B-49BA-84BA-9156AC348076}.Release|Any CPU.ActiveCfg = Release|Any CPU
{26654BFD-EE9B-49BA-84BA-9156AC348076}.Release|Any CPU.Build.0 = Release|Any CPU
{26654BFD-EE9B-49BA-84BA-9156AC348076}.Release|x64.ActiveCfg = Release|Any CPU
{26654BFD-EE9B-49BA-84BA-9156AC348076}.Release|x64.Build.0 = Release|Any CPU
{26654BFD-EE9B-49BA-84BA-9156AC348076}.Release|x86.ActiveCfg = Release|Any CPU
{26654BFD-EE9B-49BA-84BA-9156AC348076}.Release|x86.Build.0 = Release|Any CPU
{DA0B3995-A83A-4D7C-A964-ADFE1F58B1FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DA0B3995-A83A-4D7C-A964-ADFE1F58B1FA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DA0B3995-A83A-4D7C-A964-ADFE1F58B1FA}.Debug|x64.ActiveCfg = Debug|Any CPU
{DA0B3995-A83A-4D7C-A964-ADFE1F58B1FA}.Debug|x64.Build.0 = Debug|Any CPU
{DA0B3995-A83A-4D7C-A964-ADFE1F58B1FA}.Debug|x86.ActiveCfg = Debug|Any CPU
{DA0B3995-A83A-4D7C-A964-ADFE1F58B1FA}.Debug|x86.Build.0 = Debug|Any CPU
{DA0B3995-A83A-4D7C-A964-ADFE1F58B1FA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DA0B3995-A83A-4D7C-A964-ADFE1F58B1FA}.Release|Any CPU.Build.0 = Release|Any CPU
{DA0B3995-A83A-4D7C-A964-ADFE1F58B1FA}.Release|x64.ActiveCfg = Release|Any CPU
{DA0B3995-A83A-4D7C-A964-ADFE1F58B1FA}.Release|x64.Build.0 = Release|Any CPU
{DA0B3995-A83A-4D7C-A964-ADFE1F58B1FA}.Release|x86.ActiveCfg = Release|Any CPU
{DA0B3995-A83A-4D7C-A964-ADFE1F58B1FA}.Release|x86.Build.0 = Release|Any CPU
{1C0F86E4-A791-4150-B9B3-B761925681DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1C0F86E4-A791-4150-B9B3-B761925681DD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1C0F86E4-A791-4150-B9B3-B761925681DD}.Debug|x64.ActiveCfg = Debug|Any CPU
{1C0F86E4-A791-4150-B9B3-B761925681DD}.Debug|x64.Build.0 = Debug|Any CPU
{1C0F86E4-A791-4150-B9B3-B761925681DD}.Debug|x86.ActiveCfg = Debug|Any CPU
{1C0F86E4-A791-4150-B9B3-B761925681DD}.Debug|x86.Build.0 = Debug|Any CPU
{1C0F86E4-A791-4150-B9B3-B761925681DD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1C0F86E4-A791-4150-B9B3-B761925681DD}.Release|Any CPU.Build.0 = Release|Any CPU
{1C0F86E4-A791-4150-B9B3-B761925681DD}.Release|x64.ActiveCfg = Release|Any CPU
{1C0F86E4-A791-4150-B9B3-B761925681DD}.Release|x64.Build.0 = Release|Any CPU
{1C0F86E4-A791-4150-B9B3-B761925681DD}.Release|x86.ActiveCfg = Release|Any CPU
{1C0F86E4-A791-4150-B9B3-B761925681DD}.Release|x86.Build.0 = Release|Any CPU
{F4B7078B-C59A-46B8-881A-C3CEE2634498}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F4B7078B-C59A-46B8-881A-C3CEE2634498}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F4B7078B-C59A-46B8-881A-C3CEE2634498}.Debug|x64.ActiveCfg = Debug|Any CPU
{F4B7078B-C59A-46B8-881A-C3CEE2634498}.Debug|x64.Build.0 = Debug|Any CPU
{F4B7078B-C59A-46B8-881A-C3CEE2634498}.Debug|x86.ActiveCfg = Debug|Any CPU
{F4B7078B-C59A-46B8-881A-C3CEE2634498}.Debug|x86.Build.0 = Debug|Any CPU
{F4B7078B-C59A-46B8-881A-C3CEE2634498}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F4B7078B-C59A-46B8-881A-C3CEE2634498}.Release|Any CPU.Build.0 = Release|Any CPU
{F4B7078B-C59A-46B8-881A-C3CEE2634498}.Release|x64.ActiveCfg = Release|Any CPU
{F4B7078B-C59A-46B8-881A-C3CEE2634498}.Release|x64.Build.0 = Release|Any CPU
{F4B7078B-C59A-46B8-881A-C3CEE2634498}.Release|x86.ActiveCfg = Release|Any CPU
{F4B7078B-C59A-46B8-881A-C3CEE2634498}.Release|x86.Build.0 = Release|Any CPU
{11106F82-FC17-497D-8747-CF1A84BFA7F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{11106F82-FC17-497D-8747-CF1A84BFA7F8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{11106F82-FC17-497D-8747-CF1A84BFA7F8}.Debug|x64.ActiveCfg = Debug|Any CPU
{11106F82-FC17-497D-8747-CF1A84BFA7F8}.Debug|x64.Build.0 = Debug|Any CPU
{11106F82-FC17-497D-8747-CF1A84BFA7F8}.Debug|x86.ActiveCfg = Debug|Any CPU
{11106F82-FC17-497D-8747-CF1A84BFA7F8}.Debug|x86.Build.0 = Debug|Any CPU
{11106F82-FC17-497D-8747-CF1A84BFA7F8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{11106F82-FC17-497D-8747-CF1A84BFA7F8}.Release|Any CPU.Build.0 = Release|Any CPU
{11106F82-FC17-497D-8747-CF1A84BFA7F8}.Release|x64.ActiveCfg = Release|Any CPU
{11106F82-FC17-497D-8747-CF1A84BFA7F8}.Release|x64.Build.0 = Release|Any CPU
{11106F82-FC17-497D-8747-CF1A84BFA7F8}.Release|x86.ActiveCfg = Release|Any CPU
{11106F82-FC17-497D-8747-CF1A84BFA7F8}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{DA0B3995-A83A-4D7C-A964-ADFE1F58B1FA} = {868B8641-C2BB-415C-816A-4FB477DA009B}
{1C0F86E4-A791-4150-B9B3-B761925681DD} = {868B8641-C2BB-415C-816A-4FB477DA009B}
{F4B7078B-C59A-46B8-881A-C3CEE2634498} = {868B8641-C2BB-415C-816A-4FB477DA009B}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {B74EF3B9-68FB-42A1-9635-817DFB28CD9E} SolutionGuid = {B74EF3B9-68FB-42A1-9635-817DFB28CD9E}
EndGlobalSection EndGlobalSection
@@ -0,0 +1,12 @@
namespace PortBlog.API.Common.Constants
{
public static class MailConstants
{
public static string Name { get; set; } = "Bangara Raju";
public enum MailStatus
{
Failed = 0,
Success = 1
}
}
}
@@ -0,0 +1,9 @@
namespace PortBlog.API.Common.Constants
{
public static class OptionNames
{
public const string JwtAuthentication = nameof(JwtAuthentication);
public const string OtpExpiryInMinutes = nameof(OtpExpiryInMinutes);
}
}
+422
View File
@@ -0,0 +1,422 @@
using Asp.Versioning;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using PortBlog.API.Models;
using PortBlog.API.Services.Contracts;
namespace PortBlog.API.Controllers
{
/// <summary>
/// Controller for administrative actions related to the logged-in candidate and their resume.
/// All endpoints derive the candidate identity from the access token claims.
/// </summary>
[ApiController]
[ApiVersion("1.0")]
[Route("api/v{version:apiVersion}/admin")]
[Authorize]
public class AdminController(ILogger<CvController> logger, IAdminService adminService) : Controller
{
/// <summary>
/// Get hobbies of the logged-in candidate.
/// </summary>
/// <returns>Hobbies and about details of the candidate</returns>
/// <response code="200">Returns the requested hobbies of the candidate</response>
[HttpGet("GetHobbies")]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<AboutDto>> GetHobbies()
{
try
{
var candidateId = adminService.GetCandidateIdFromClaims(User);
var aboutDetails = await adminService.GetHobbiesAsync(candidateId);
return Ok(aboutDetails);
}
catch (UnauthorizedAccessException ex)
{
logger.LogInformation(ex, "Unauthorized access when fetching hobbies.");
return Unauthorized(ex.Message);
}
catch (Exception ex)
{
logger.LogCritical(ex, "Exception while getting about details.");
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Get contact details (candidate with social links) for the logged-in candidate.
/// </summary>
/// <returns>Candidate details with social links</returns>
/// <response code="200">Returns the requested candidate details with social links</response>
[HttpGet("GetCandidateWithSocialLinks")]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<CandidateSocialLinksDto>> GetContact()
{
try
{
var candidateId = adminService.GetCandidateIdFromClaims(User);
var contact = await adminService.GetContactAsync(candidateId);
return Ok(contact);
}
catch (UnauthorizedAccessException ex)
{
logger.LogInformation(ex, "Unauthorized access when fetching contact.");
return Unauthorized(ex.Message);
}
catch (Exception ex)
{
logger.LogCritical(ex, "Exception while getting contact details.");
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Get resume for the logged-in candidate.
/// </summary>
/// <returns>Candidate resume</returns>
/// <response code="200">Returns the requested candidate resume</response>
[HttpGet("GetResume")]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<ResumeDto>> GetResume()
{
try
{
var candidateId = adminService.GetCandidateIdFromClaims(User);
var resume = await adminService.GetResumeAsync(candidateId);
return Ok(resume);
}
catch (UnauthorizedAccessException ex)
{
logger.LogInformation(ex, "Unauthorized access when fetching resume.");
return Unauthorized(ex.Message);
}
catch (Exception ex)
{
logger.LogCritical(ex, "Exception while getting resume.");
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Get projects for the logged-in candidate.
/// </summary>
/// <returns>Candidate projects</returns>
/// <response code="200">Returns the requested candidate projects</response>
[HttpGet("GetProjects")]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<ProjectsDto>> GetProjects()
{
try
{
var candidateId = adminService.GetCandidateIdFromClaims(User);
var projects = await adminService.GetProjectsAsync(candidateId);
return Ok(projects);
}
catch (UnauthorizedAccessException ex)
{
logger.LogInformation(ex, "Unauthorized access when fetching projects.");
return Unauthorized(ex.Message);
}
catch (Exception ex)
{
logger.LogCritical(ex, "Exception while getting projects.");
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Create or update a project for the logged-in candidate's resume.
/// </summary>
[HttpPost("UpsertProject")]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<ProjectDto>> UpsertProject([FromBody] ProjectDto projectDto)
{
try
{
if (!ModelState.IsValid)
{
return BadRequest(ModelState);
}
var candidateId = adminService.GetCandidateIdFromClaims(User);
var result = await adminService.UpsertProjectAsync(candidateId, projectDto);
return Ok(result);
}
catch (UnauthorizedAccessException ex)
{
logger.LogInformation(ex, "Unauthorized access when upserting project.");
return Unauthorized(ex.Message);
}
catch (Exception ex)
{
logger.LogCritical(ex, "Exception while upserting project.");
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Delete a project from the logged-in candidate's resume.
/// </summary>
/// <param name="projectId">The id of the project to delete</param>
[HttpDelete("DeleteProject/{projectId}")]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status404NotFound)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult> DeleteProject(int projectId)
{
try
{
var candidateId = adminService.GetCandidateIdFromClaims(User);
var deleted = await adminService.DeleteProjectAsync(candidateId, projectId);
if (!deleted)
{
return NotFound();
}
return Ok();
}
catch (UnauthorizedAccessException ex)
{
logger.LogInformation(ex, "Unauthorized access when deleting project.");
return Unauthorized(ex.Message);
}
catch (KeyNotFoundException ex)
{
logger.LogInformation(ex, "Resume not found when deleting project.");
return NotFound();
}
catch (Exception ex)
{
logger.LogCritical(ex, "Exception while deleting project {ProjectId}.", projectId);
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Create, update, or remove hobbies and update the about section for the logged-in candidate.
/// Hobbies present in the list are added or updated; hobbies not in the list are removed.
/// </summary>
[HttpPost("UpsertHobbies")]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status404NotFound)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<AboutDto>> UpsertHobbies([FromBody] AboutDto aboutDto)
{
try
{
if (!ModelState.IsValid)
{
return BadRequest(ModelState);
}
var candidateId = adminService.GetCandidateIdFromClaims(User);
var result = await adminService.UpsertHobbiesAsync(candidateId, aboutDto);
return Ok(result);
}
catch (UnauthorizedAccessException ex)
{
logger.LogInformation(ex, "Unauthorized access when upserting hobbies.");
return Unauthorized(ex.Message);
}
catch (KeyNotFoundException ex)
{
logger.LogInformation(ex, "Resume not found when upserting hobbies.");
return NotFound();
}
catch (Exception ex)
{
logger.LogCritical(ex, "Exception while upserting hobbies.");
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Create, update, or remove skills for the logged-in candidate's resume.
/// Skills present in the list are added or updated; skills not in the list are removed.
/// </summary>
[HttpPost("UpsertSkills")]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<IEnumerable<SkillDto>>> UpsertSkills([FromBody] IEnumerable<SkillDto> skillDtos)
{
try
{
if (!ModelState.IsValid)
{
return BadRequest(ModelState);
}
var candidateId = adminService.GetCandidateIdFromClaims(User);
var result = await adminService.UpsertSkillsAsync(candidateId, skillDtos);
return Ok(result);
}
catch (UnauthorizedAccessException ex)
{
logger.LogInformation(ex, "Unauthorized access when upserting skills.");
return Unauthorized(ex.Message);
}
catch (Exception ex)
{
logger.LogCritical(ex, "Exception while upserting skills.");
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Create, update, or remove academics for the logged-in candidate's resume.
/// Academics present in the list are added or updated; academics not in the list are removed.
/// </summary>
[HttpPost("UpsertAcademics")]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<IEnumerable<AcademicDto>>> UpsertAcademics([FromBody] IEnumerable<AcademicDto> academicDtos)
{
try
{
if (!ModelState.IsValid)
{
return BadRequest(ModelState);
}
var candidateId = adminService.GetCandidateIdFromClaims(User);
var result = await adminService.UpsertAcademicsAsync(candidateId, academicDtos);
return Ok(result);
}
catch (UnauthorizedAccessException ex)
{
logger.LogInformation(ex, "Unauthorized access when upserting academics.");
return Unauthorized(ex.Message);
}
catch (Exception ex)
{
logger.LogCritical(ex, "Exception while upserting academics.");
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Create, update, or remove experiences for the logged-in candidate's resume.
/// Experiences present in the list are added or updated; experiences not in the list are removed.
/// </summary>
[HttpPost("UpsertExperiences")]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<IEnumerable<ExperienceDto>>> UpsertExperiences([FromBody] IEnumerable<ExperienceDto> experienceDtos)
{
try
{
if (!ModelState.IsValid)
{
return BadRequest(ModelState);
}
var candidateId = adminService.GetCandidateIdFromClaims(User);
var result = await adminService.UpsertExperiencesAsync(candidateId, experienceDtos);
return Ok(result);
}
catch (UnauthorizedAccessException ex)
{
logger.LogInformation(ex, "Unauthorized access when upserting experiences.");
return Unauthorized(ex.Message);
}
catch (Exception ex)
{
logger.LogCritical(ex, "Exception while upserting experiences.");
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Create, update, or remove certifications for the logged-in candidate's resume.
/// Certifications present in the list are added or updated; certifications not in the list are removed.
/// </summary>
[HttpPost("UpsertCertifications")]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<IEnumerable<CertificationDto>>> UpsertCertifications([FromBody] IEnumerable<CertificationDto> certificationDtos)
{
try
{
if (!ModelState.IsValid)
{
return BadRequest(ModelState);
}
var candidateId = adminService.GetCandidateIdFromClaims(User);
var result = await adminService.UpsertCertificationsAsync(candidateId, certificationDtos);
return Ok(result);
}
catch (UnauthorizedAccessException ex)
{
logger.LogInformation(ex, "Unauthorized access when upserting certifications.");
return Unauthorized(ex.Message);
}
catch (Exception ex)
{
logger.LogCritical(ex, "Exception while upserting certifications.");
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Create or update contact information (candidate with social links) for the logged-in candidate.
/// </summary>
[HttpPost("UpsertContact")]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status404NotFound)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<CandidateSocialLinksDto>> UpsertContact([FromBody] CandidateSocialLinksDto contactDto)
{
try
{
if (!ModelState.IsValid)
{
return BadRequest(ModelState);
}
var candidateId = adminService.GetCandidateIdFromClaims(User);
var result = await adminService.UpsertContactAsync(candidateId, contactDto);
return Ok(result);
}
catch (UnauthorizedAccessException ex)
{
logger.LogInformation(ex, "Unauthorized access when upserting contact.");
return Unauthorized(ex.Message);
}
catch (KeyNotFoundException ex)
{
logger.LogInformation(ex, "Resume not found when upserting contact.");
return NotFound();
}
catch (Exception ex)
{
logger.LogCritical(ex, "Exception while upserting contact.");
return StatusCode(500, "A problem happened while handling your request.");
}
}
}
}
+188
View File
@@ -0,0 +1,188 @@
using Asp.Versioning;
using AutoMapper;
using KBR.Cache;
using Microsoft.AspNetCore.Mvc;
using PortBlog.API.Entities;
using PortBlog.API.Models;
using PortBlog.API.Repositories.Contracts;
using PortBlog.API.Services.Contracts;
namespace PortBlog.API.Controllers
{
/// <summary>
/// Controller for handling authentication-related operations.
/// </summary>
[ApiController]
[ApiVersion("1.0")]
[Route("api/v{version:apiVersion}/auth")]
public class AuthController(IAuthService authService, IMailService mailService, ICandidateRepository candidateRepository, ILogger<AuthController> logger, IMapper mapper, IConfiguration configuration, ITemplateService templateService, IAppDistributedCache cache) : ControllerBase
{
/// <summary>
/// Generates a One-Time Password (OTP) for the specified candidate and sends it via email.
/// </summary>
/// <param name="email">The email of the candidate for whom the OTP is generated.</param>
/// <returns>An ActionResult indicating the result of the operation.</returns>
[HttpPost("GenerateOtp")]
[ProducesResponseType(StatusCodes.Status404NotFound)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult> GenerateOtp([FromForm] string email)
{
var messageSendDto = new MessageSendDto();
try
{
var candidate = await candidateRepository.GetCandidateAsync(email);
if (candidate == null)
{
logger.LogInformation("Candidate with email ({Email}) wasn't found.", email);
return NotFound();
}
var candidateDto = mapper.Map<CandidateDto>(candidate);
var otp = await authService.GenerateOtp(email);
var otpModel = new OtpMailModel()
{
OtpCode = otp,
Name = candidateDto.DisplayName,
ExpiryMinutes = configuration.GetValue<int>("OtpExpiryInMinutes", 3)
};
messageSendDto.CandidateId = candidate.CandidateId;
messageSendDto.ToEmail = candidateDto.Email;
messageSendDto.Name = candidateDto.DisplayName;
messageSendDto.Subject = "OTP for Login";
messageSendDto.Content = await templateService.GetViewTemplate("Views/Email/OtpEmailTemplate.cshtml", otpModel);
await mailService.SendAsync(messageSendDto);
return Ok(true);
}
catch (Exception ex)
{
logger.LogCritical(ex, "Exception while sending OTP for {ToEmail}.", messageSendDto.ToEmail);
return StatusCode(500, ex.Message);
}
}
/// <summary>
/// Verifies the One-Time Password (OTP) for the specified user.
/// </summary>
/// <param name="request">The request containing the user ID and OTP code to verify.</param>
/// <returns>An ActionResult indicating the result of the verification.</returns>
[HttpPost("ValidateOtp")]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult> VerifyOtp([FromBody] VerifyOtpRequest request)
{
try
{
if (request == null || string.IsNullOrEmpty(request.UserId) || string.IsNullOrEmpty(request.OtpCode))
return BadRequest(new { message = "Invalid request data." });
var secretKey = await CacheHelpers.GetUserOtpSecretAsync(cache, request.UserId);
if(secretKey == null)
{
return Unauthorized(new { message = "OTP Expired" });
}
var result = authService.ValidateOtp(secretKey, request.OtpCode);
if (!result)
return Unauthorized(new { message = "Invalid OTP" });
var accessToken = authService.GenerateAccessToken(request.UserId);
var refreshToken = authService.GenerateRefreshToken();
// Store hashed refresh token in DB
await authService.SaveRefreshToken(request.UserId, refreshToken, HttpContext);
// Set HttpOnly cookie
SetRefreshTokenCookie(refreshToken);
return Ok(new { accessToken }); // only access token is returned in response body
}
catch (Exception ex)
{
logger.LogCritical(ex, "Exception while validating OTP for {UserId}.", request?.UserId);
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Refreshes the access token using a valid refresh token from the HttpOnly cookie.
/// </summary>
/// <returns>An IActionResult containing the new access token if the refresh token is valid; otherwise, an appropriate error response.</returns>
[HttpPost("RefreshToken")]
public async Task<IActionResult> Refresh()
{
// Read refresh token from HttpOnly cookie
if (!Request.Cookies.TryGetValue("refreshToken", out var refreshToken))
return Unauthorized();
var matchedToken = await authService.GetRefreshToken(refreshToken);
if (matchedToken == null) return Forbid();
// Rotate refresh token
matchedToken.Revoked = true;
var newRefreshToken = authService.GenerateRefreshToken();
var hashedNewToken = BCrypt.Net.BCrypt.HashPassword(newRefreshToken);
var newRefreshEntity = new RefreshToken
{
UserId = matchedToken.UserId,
Token = hashedNewToken,
ExpiryDate = DateTime.UtcNow.AddHours(configuration.GetValue<int>("Jwt:RefreshTokenExpiryInHours", 24)),
JwtId = Guid.NewGuid().ToString(),
DeviceInfo = matchedToken.DeviceInfo,
ReplacedByToken = matchedToken.Token
};
await authService.SaveRefreshToken(newRefreshEntity);
// Update cookie
SetRefreshTokenCookie(newRefreshToken);
var newAccessToken = authService.GenerateAccessToken(matchedToken.User.Email);
return Ok(new { accessToken = newAccessToken });
}
/// <summary>
/// Logs out the current user by removing the refresh token cookie and invalidating the refresh token.
/// </summary>
/// <returns>An IActionResult indicating the result of the logout operation.</returns>
[HttpPost("logout")]
public async Task<IActionResult> Logout()
{
// Remove refresh token cookie
if (Request.Cookies.TryGetValue("refreshToken", out var incoming))
{
await authService.RemoveRefreshToken(incoming);
}
Response.Cookies.Delete("refreshToken", new CookieOptions
{
HttpOnly = true,
Secure = true,
SameSite = SameSiteMode.None,
Expires = DateTime.UtcNow.AddDays(-1)
});
return Ok(new { message = "Logged out successfully" });
}
private void SetRefreshTokenCookie(string refreshToken)
{
var cookieOptions = new CookieOptions
{
HttpOnly = true, // JS cannot access
Secure = true, // HTTPS only
SameSite = SameSiteMode.None, // Prevent CSRF
Expires = DateTime.UtcNow.AddDays(7)
};
Response.Cookies.Append("refreshToken", refreshToken, cookieOptions);
}
}
}
+154
View File
@@ -0,0 +1,154 @@
using Asp.Versioning;
using AutoMapper;
using Microsoft.AspNetCore.Mvc;
using PortBlog.API.Entities;
using PortBlog.API.Models;
using PortBlog.API.Repositories.Contracts;
namespace PortBlog.API.Controllers
{
[Route("blog/api/v{version:apiVersion}/posts")]
[ApiController]
[ApiVersion("1.0")]
public class BlogController : ControllerBase
{
private readonly ILogger<BlogController> _logger;
private readonly IBlogRepository _blogRepository;
private readonly IMapper _mapper;
public BlogController(ILogger<BlogController> logger, IBlogRepository blogRepository, IMapper mapper)
{
_logger = logger;
_blogRepository = blogRepository;
_mapper = mapper;
}
[HttpGet("GetPostLikesAndViews")]
public async Task<ActionResult<PostMetricsDto>> GetPostLikesAndViews(string blogUrl, string postSlug)
{
var postMetrics = new PostMetricsDto();
if(!await _blogRepository.BlogExistsAsync(blogUrl))
{
_logger.LogInformation($"Blog with id {blogUrl} wasn't found when fetching post likes and views.");
return NotFound();
}
if (!await _blogRepository.PostExistsAsync(blogUrl, postSlug))
{
_logger.LogInformation($"Post with id {postSlug} wasn't found when fetching post likes and views.");
return Ok(postMetrics);
}
var post = await _blogRepository.GetPostAsync(blogUrl, postSlug);
post.Views++;
_blogRepository.UpdatePost(post);
await _blogRepository.SaveChangesAsync();
postMetrics = _mapper.Map<PostMetricsDto>(post);
postMetrics.PostExists = true;
return Ok(postMetrics);
}
[HttpPost("CreatePost")]
public async Task<ActionResult<PostMetricsDto>> CreatePost([FromBody] PostCreationDto post)
{
if (!await _blogRepository.BlogExistsAsync(post.BlogUrl))
{
_logger.LogInformation($"Blog with id {post.BlogUrl} wasn't found when fetching post likes and views.");
return NotFound();
}
var postEntityExists = await _blogRepository.GetPostAsync(post.BlogUrl, post.Slug);
if (postEntityExists == null)
{
postEntityExists = _mapper.Map<Post>(post);
postEntityExists.Views++;
_blogRepository.AddPost(postEntityExists);
}
else
{
postEntityExists.Title = post.Title;
postEntityExists.Description = post.Description;
postEntityExists.Categories = post.Categories;
_blogRepository.UpdatePost(postEntityExists);
}
await _blogRepository.SaveChangesAsync();
var postMetrics = _mapper.Map<PostMetricsDto>(postEntityExists);
postMetrics.PostExists = true;
return Ok(postMetrics);
}
[HttpPost("LikePost")]
public async Task<ActionResult<int>> LikePost(string blogUrl, string postSlug)
{
if (!await _blogRepository.PostExistsAsync(blogUrl, postSlug))
{
_logger.LogInformation($"Post with id {postSlug} wasn't found when fetching post likes and views.");
return NotFound();
}
var post = await _blogRepository.GetPostAsync(blogUrl, postSlug);
post.Likes++;
_blogRepository.UpdatePost(post);
await _blogRepository.SaveChangesAsync();
return Ok(post.Likes);
}
[HttpPost("DislikePost")]
public async Task<ActionResult<int>> DislikePost(string blogUrl, string postSlug)
{
if (!await _blogRepository.PostExistsAsync(blogUrl, postSlug))
{
_logger.LogInformation($"Post with id {postSlug} wasn't found when fetching post likes and views.");
return NotFound();
}
var post = await _blogRepository.GetPostAsync(blogUrl, postSlug);
post.Likes--;
_blogRepository.UpdatePost(post);
await _blogRepository.SaveChangesAsync();
return Ok(post.Likes);
}
[HttpPost("UpdatePostCommentsCount")]
public async Task<ActionResult> UpdatePostCommentsCount(string blogUrl, string postSlug, [FromBody] int commentsCount)
{
if (!await _blogRepository.PostExistsAsync(blogUrl, postSlug))
{
_logger.LogInformation($"Post with id {postSlug} wasn't found when fetching post likes and views.");
return NotFound();
}
var post = await _blogRepository.GetPostAsync(blogUrl, postSlug);
post.Comments = commentsCount;
_blogRepository.UpdatePost(post);
await _blogRepository.SaveChangesAsync();
return NoContent();
}
}
}
+270
View File
@@ -0,0 +1,270 @@
using Asp.Versioning;
using AutoMapper;
using Microsoft.AspNetCore.Mvc;
using PortBlog.API.Models;
using PortBlog.API.Repositories.Contracts;
using PortBlog.API.Services.Contracts;
namespace PortBlog.API.Controllers
{
[ApiController]
[ApiVersion("1.0")]
[Route("api/v{version:apiVersion}/cv")]
public class CvController : ControllerBase
{
private readonly ILogger<CvController> _logger;
private readonly ICandidateRepository _candidateRepository;
private readonly IResumeRepository _resumeRepository;
private readonly IMailRepository _mailRepository;
private readonly IMailService _mailService;
private readonly IMapper _mapper;
public CvController(ILogger<CvController> logger, ICandidateRepository candidateRepository, IResumeRepository resumeRepository, IMailService mailService, IMapper mapper, IMailRepository mailRepository)
{
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
_candidateRepository = candidateRepository ?? throw new ArgumentNullException(nameof(candidateRepository));
_resumeRepository = resumeRepository ?? throw new ArgumentNullException(nameof(resumeRepository));
_mailRepository = mailRepository;
_mailService = mailService;
_mapper = mapper;
}
/// <summary>
/// Get CV details of the candidate by candidateid.
/// </summary>
/// <param name="candidateId">The id of the candidate whose cv to get</param>
/// <returns>CV details of the candidate</returns>
/// <response code="200">Returns the requested cv of the candidate</response>
[HttpGet("{candidateId}")]
[Obsolete]
[ApiVersion("0.1", Deprecated = true)]
[ProducesResponseType(StatusCodes.Status404NotFound)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<CvDto>> Get(int candidateId)
{
try
{
if (!await _candidateRepository.CandidateExistAsync(candidateId))
{
_logger.LogInformation($"Candidate with id {candidateId} wasn't found when accessing cv details.");
return NotFound();
}
var latestResumeForCandidate = await _resumeRepository.GetLatestResumeForCandidateAsync(candidateId, true);
return Ok(_mapper.Map<CvDto>(latestResumeForCandidate));
}
catch (Exception ex)
{
_logger.LogCritical($"Exception while getting Cv details for the candidate with id {candidateId}.", ex);
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Get hobbies of the candidate by candidateid
/// </summary>
/// <param name="candidateId">The id of the candidate whose hobbies to get</param>
/// <returns>Hobbies of the candidate</returns>
/// <response code="200">Returns the requested hobbies of the candidate</response>
[HttpGet("GetHobbies/{candidateId}")]
[ProducesResponseType(StatusCodes.Status404NotFound)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<AboutDto>> GetHobbies(int candidateId)
{
try
{
if (!await _candidateRepository.CandidateExistAsync(candidateId))
{
_logger.LogInformation($"Candidate with id {candidateId} wasn't found when fetching about details.");
return NotFound();
}
var aboutDetails = await _resumeRepository.GetHobbiesAsync(candidateId);
return Ok(_mapper.Map<AboutDto>(aboutDetails));
}
catch (Exception ex)
{
_logger.LogCritical($"Exception while getting about details for the candidate with id {candidateId}.", ex);
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Get Candidate details with social links by candidateid
/// </summary>
/// <param name="candidateId">The id of the candidate whose detials to get with social links</param>
/// <returns>Candidate details with sociallinks</returns>
/// <response code="200">Returns the requested candidate details with social links</response>
[HttpGet("GetCandidateWithSocialLinks/{candidateId}")]
[ProducesResponseType(StatusCodes.Status404NotFound)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<CandidateSocialLinksDto>> GetContact(int candidateId)
{
try
{
if (!await _candidateRepository.CandidateExistAsync(candidateId))
{
_logger.LogInformation($"Candidate with id {candidateId} wasn't found when fetching candidate with social links.");
return NotFound();
}
var contact = await _resumeRepository.GetCandidateWithSocialLinksAsync(candidateId);
return Ok(_mapper.Map<CandidateSocialLinksDto>(contact));
}
catch (Exception ex)
{
_logger.LogCritical($"Exception while getting contact for the candidate with social links with id {candidateId}.", ex);
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Get Candidate resume by candidateid
/// </summary>
/// <param name="candidateId">The id of the candidate whose resume to get</param>
/// <returns>Candidate resume</returns>
/// <response code="200">Returns the requested candidate resume</response>
[HttpGet("GetResume/{candidateId}")]
[ProducesResponseType(StatusCodes.Status404NotFound)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<ResumeDto>> GetResume(int candidateId)
{
try
{
if (!await _candidateRepository.CandidateExistAsync(candidateId))
{
_logger.LogInformation($"Candidate with id {candidateId} wasn't found when fetching resume.");
return NotFound();
}
var resume = await _resumeRepository.GetResumeAsync(candidateId);
return Ok(_mapper.Map<ResumeDto>(resume));
}
catch (Exception ex)
{
_logger.LogCritical($"Exception while getting resume for the candidate with id {candidateId}.", ex);
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Get Candidate projects by candidateid
/// </summary>
/// <param name="candidateId">The id of the candidate whose projects to get</param>
/// <returns>Candidate projects</returns>
/// <response code="200">Returns the requested candidate projects</response>
[HttpGet("GetProjects/{candidateId}")]
[ProducesResponseType(StatusCodes.Status404NotFound)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<ProjectsDto>> GetProjects(int candidateId)
{
try
{
if (!await _candidateRepository.CandidateExistAsync(candidateId))
{
_logger.LogInformation($"Candidate with id {candidateId} wasn't found when fetching projects.");
return NotFound();
}
var projects = await _resumeRepository.GetProjectsAsync(candidateId);
return Ok(_mapper.Map<ProjectsDto>(projects));
}
catch (Exception ex)
{
_logger.LogCritical($"Exception while getting projects for the candidate with id {candidateId}.", ex);
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Get Candidate blog with posts by candidateid
/// </summary>
/// <param name="candidateId">The id of the candidate whose blog with posts to get</param>
/// <returns>Candidate blog with posts</returns>
/// <response code="200">Returns the requested candidate blog with posts</response>
[HttpGet("GetBlog/{candidateId}")]
[ProducesResponseType(StatusCodes.Status404NotFound)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<BlogDto>> GetBlog(int candidateId)
{
try
{
if (!await _candidateRepository.CandidateExistAsync(candidateId))
{
_logger.LogInformation($"Candidate with id {candidateId} wasn't found when fetching projects.");
return NotFound();
}
var blog = await _resumeRepository.GetBlogAsync(candidateId);
return Ok(_mapper.Map<BlogDto>(blog));
}
catch (Exception ex)
{
_logger.LogCritical($"Exception while getting projects for the candidate with id {candidateId}.", ex);
return StatusCode(500, "A problem happened while handling your request.");
}
}
/// <summary>
/// Send Message through email
/// </summary>
/// <param name="candidateId">The id of the candidate to whom the message should be sent</param>
/// <param name="message">Details of the Message to send to the candidate</param>
/// <returns>Returns the status code</returns>
/// <response code="204">Returns nothing</response>
[HttpPost("SendMessage/{candidateId}")]
[ProducesResponseType(StatusCodes.Status404NotFound)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status204NoContent)]
public async Task<ActionResult<bool>> SendMessage(int candidateId, [FromBody] MessageDto message)
{
try
{
var candidate = await _candidateRepository.GetCandidateAsync(candidateId);
if (candidate == null)
{
_logger.LogInformation($"Candidate with id {candidateId} wasn't found when fetching projects.");
return NotFound();
}
var candidateDto = _mapper.Map<CandidateDto>(candidate);
var messageSendDto = _mapper.Map<MessageSendDto>(message);
messageSendDto.ToEmail = candidateDto.Email;
messageSendDto.Name = candidateDto.DisplayName;
messageSendDto.CandidateId = candidateDto.CandidateId;
await _mailService.SendAsync(messageSendDto);
return Ok(true);
}
catch (Exception ex)
{
_logger.LogCritical(ex, "Exception while sending message from {Name}.", message.Name);
return StatusCode(500, ex.Message);
}
}
}
}
@@ -0,0 +1,18 @@
using Asp.Versioning;
using Microsoft.AspNetCore.Mvc;
namespace PortBlog.API.Controllers
{
[ApiVersionNeutral]
[ApiController]
[Route("api/v{version:apiVersion}/blog/post")]
public class PostController : ControllerBase
{
private readonly ILogger<PostController> _logger;
public PostController(ILogger<PostController> logger)
{
this._logger = logger;
}
}
}
-8
View File
@@ -1,8 +0,0 @@
using Microsoft.EntityFrameworkCore;
namespace PortBlog.API.DbContexts
{
public class BlogContext : DbContext
{
}
}
+66
View File
@@ -0,0 +1,66 @@
using Microsoft.EntityFrameworkCore;
using PortBlog.API.DbContexts.Seed;
using PortBlog.API.Entities;
using PortBlog.API.Entities.Mapping;
namespace PortBlog.API.DbContexts
{
public class CvBlogContext : DbContext
{
public CvBlogContext(DbContextOptions<CvBlogContext> dbContextOptions) : base(dbContextOptions) { }
public DbSet<Candidate> Candidates { get; set; }
public DbSet<Resume> Resumes { get; set; }
public DbSet<Hobby> Hobbies { get; set; }
public DbSet<SocialLinks> SocialLinks { get; set; }
public DbSet<Academic> Academics { get; set; }
public DbSet<Experience> Experiences { get; set; }
public DbSet<ExperienceDetails> ExperienceDetails { get; set; }
public DbSet<Skill> Skills { get; set; }
public DbSet<Certification> Certifications { get; set; }
public DbSet<Message> Messages { get; set; }
public DbSet<Blog> Blogs { get; set; }
public DbSet<Post> Posts { get; set; }
public DbSet<Project> Projects { get; set; }
public DbSet<ResumeFile> Files { get; set; }
public DbSet<ClientLog> ClientLogs { get; set; }
public DbSet<Cache> Cache { get; set; }
public DbSet<RefreshToken> RefreshTokens { get; set; }
public DbSet<User> Users { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Candidate>().HasData(InitialData.GetCandidateData());
modelBuilder.Entity<Resume>().HasData(InitialData.GetResumeData());
modelBuilder.Entity<SocialLinks>().HasData(InitialData.GetSocialLinksData());
modelBuilder.Entity<Hobby>().HasData(InitialData.GetHobbyData());
modelBuilder.Entity<Academic>().HasData(InitialData.GetAcademicData());
modelBuilder.Entity<Skill>().HasData(InitialData.GetSkillData());
modelBuilder.Entity<Project>().HasData(InitialData.GetProjectData());
modelBuilder.Entity<Blog>().HasData(InitialData.GetBlogData());
modelBuilder.Entity<Post>().HasData(InitialData.GetPostsData());
modelBuilder.Entity<Experience>().HasData(InitialData.GetExperiencesData());
modelBuilder.Entity<ExperienceDetails>().HasData(InitialData.GetExperienceDetailsData());
modelBuilder.Entity<User>().HasData(InitialData.GetUsers());
modelBuilder.ApplyConfiguration(new CacheMapping());
base.OnModelCreating(modelBuilder);
}
}
}
@@ -1,8 +0,0 @@
using Microsoft.EntityFrameworkCore;
namespace PortBlog.API.DbContexts
{
public class PortfolioContext : DbContext
{
}
}
+389
View File
@@ -0,0 +1,389 @@
using PortBlog.API.Entities;
namespace PortBlog.API.DbContexts.Seed
{
public static class InitialData
{
public static Candidate GetCandidateData()
{
return new Candidate()
{
CandidateId = 1,
FirstName = "Bangara Raju",
LastName = "Kottedi",
Phone = "+91 9441212187",
Email = "bangararaju.kottedi@gmail.com",
Dob = new DateTime(1992, 5, 6),
Gender = "Male",
Address = "Samalkot, Andhra Pradesh, India",
};
}
public static Resume GetResumeData()
{
return new Resume()
{
ResumeId = 1,
CandidateId = 1,
Title = "Full Stack Developer",
About = "I'm Full Stack Developer with 8+ years of hands-on experience in .NET development. Passionate and driven professional with expertise in .NET WebAPI, Angular, CI/CD, and a growing proficiency in Azure. I've successfully delivered robust applications, prioritizing efficiency and user experience." +
" While I'm currently in the early stages of exploring Azure, I'm eager to expand my skill set and leverage cloud technologies to enhance scalability and performance. Known for my proactive approach and dedication to continuous learning, I'm committed to staying abreast of the latest technologies and methodologies to drive innovation and deliver exceptional results.",
Order = 1
};
}
public static SocialLinks GetSocialLinksData()
{
return new SocialLinks()
{
Id = 1,
BlogUrl = "https://bangararaju.kottedi.in/blog",
Linkedin = "https://in.linkedin.com/in/bangara-raju-kottedi-299072109",
GitHub = "https://github.com/rajukottedi",
ResumeId = 1
};
}
public static List<Hobby> GetHobbyData()
{
return new List<Hobby>()
{
new Hobby()
{
HobbyId = 1,
Order = 1,
Name = "Web Development",
Description = "Crafting Professional-Quality Websites with Precision.",
Icon = "fa-square-terminal",
ResumeId = 1
},
new Hobby()
{
HobbyId = 2,
Order = 2,
Name = "Automation",
Description = "Streamlining and Simplifying Complex Tasks through Automation.",
Icon = "fa-robot",
ResumeId = 1
},
new Hobby()
{
HobbyId = 3,
Order = 3,
Name = "Blogging",
Description = "Sharing the knowledge and insights Ive gathered along my journey.",
Icon = "fa-typewriter",
ResumeId = 1
},
new Hobby()
{
HobbyId = 4,
Order = 4,
Name = "Technology",
Description = "Exploring, embracing, and leveraging the latest advancements.",
Icon = "fa-lightbulb-gear",
ResumeId = 1
}
};
}
public static List<Academic> GetAcademicData()
{
return new List<Academic>
{
new Academic()
{
AcademicId = 1,
Institution = "Pragati Little Public School",
StartYear = 2006,
EndYear = 2007,
Degree = "High School",
ResumeId = 1
},
new Academic()
{
AcademicId = 2,
Institution = "Sri Chaitanya Junior College",
StartYear = 2007,
EndYear = 2009,
Degree = "Intermediate",
DegreeSpecialization = "MPC",
ResumeId = 1
},
new Academic()
{
AcademicId = 3,
Institution = "Kakinada Institute of Technology & Science",
StartYear = 2009,
EndYear = 2013,
Degree = "BTech",
DegreeSpecialization = "ECE",
ResumeId = 1
}
};
}
public static List<Skill> GetSkillData()
{
return new List<Skill>
{
new Skill()
{
SkillId = 1,
Name = "Web Development",
ProficiencyLevel = 80,
ResumeId = 1
},
new Skill()
{
SkillId = 2,
Name = "Web Development",
ProficiencyLevel = 80,
ResumeId = 1
},
new Skill()
{
SkillId = 3,
Name = "Web Development",
ProficiencyLevel = 80,
ResumeId = 1
},
new Skill()
{
SkillId = 4,
Name = "Web Development",
ProficiencyLevel = 80,
ResumeId = 1
},
new Skill()
{
SkillId= 5,
Name = "Web Development",
ProficiencyLevel = 80,
ResumeId = 1
}
};
}
public static List<Project> GetProjectData()
{
return new List<Project>
{
new Project()
{
ProjectId = 1,
Name = "Transfora (Business Process Management)",
Description = "Business Process Management",
Categories = ["Web Development"],
ImagePath = "bpm.jpg",
TechnologiesUsed = ".NET, Angular",
Responsibilities = "Developing, Testing, Support",
Roles = "Coding, Reviewing, Testing",
ResumeId = 1
},
new Project()
{
ProjectId = 2,
Name = "Human Captial Management",
Description = "Business Process Management",
Categories = ["Web Design"],
ImagePath = "hcm.jpg",
TechnologiesUsed = ".NET, Angular",
Responsibilities = "Developing, Testing, Support",
Roles = "Coding, Reviewing, Testing",
ResumeId = 1
},
new Project()
{
ProjectId = 3,
Name = "Transfora (Business Process Management)",
Description = "Business Process Management",
Categories = ["Web Development"],
ImagePath = "hms.png",
TechnologiesUsed = ".NET, Angular",
Responsibilities = "Hosting, Integrating, Monitoring",
Roles = "Integration, Monitor",
ResumeId = 1
}
};
}
public static Blog GetBlogData()
{
return new Blog()
{
BlogUrl = "https://bangararaju.kottedi.in/blog",
Name = "Engineer's Odyssey",
Description = "Your Hub for Tech, DIY, and Innovation"
};
}
public static List<Post> GetPostsData()
{
return new List<Post>
{
new Post()
{
PostId = 1,
Slug = "hello-world",
Title = "Hello World",
Description = "Hello World",
Categories = ["Welcome"],
PostUrl = "https://bangararaju.kottedi.in/blog/hello-world",
CreatedDate = DateTime.Now,
BlogUrl = "https://bangararaju.kottedi.in/blog"
},
new Post()
{
PostId = 2,
Slug = "hello-world",
Title = "Hello World",
Description = "Hello World",
Categories = ["Welcome"],
PostUrl = "https://bangararaju.kottedi.in/blog/hello-world",
CreatedDate = DateTime.Now,
BlogUrl = "https://bangararaju.kottedi.in/blog"
},
new Post()
{
PostId = 3,
Slug = "hello-world",
Title = "Hello World",
Description = "Hello World",
Categories = ["Welcome"],
PostUrl = "https://bangararaju.kottedi.in/blog/hello-world",
CreatedDate = DateTime.Now,
BlogUrl = "https://bangararaju.kottedi.in/blog",
}
};
}
public static List<Experience> GetExperiencesData()
{
return new List<Experience>
{
new Experience()
{
ExperienceId = 1,
Title = "Jr. Software Engineer",
Company = "Agility E Services",
Description = "",
Location = "Hyderabad",
StartDate = new DateTime(2015, 9, 2),
EndDate = new DateTime(2016, 4, 25),
ResumeId = 1
},
new Experience()
{
ExperienceId = 2,
Title = "Web Developer",
Company = "Agility",
Description = "",
Location = "Kuwait",
StartDate = new DateTime(2016, 5, 12),
EndDate = new DateTime(2022, 1, 31),
ResumeId = 1
},
new Experience()
{
ExperienceId = 3,
Title = "Senior Web Developer",
Company = "Agility",
Description = "",
Location = "Kuwait",
StartDate = new DateTime(2022, 2, 1),
EndDate = new DateTime(2022, 10, 31),
ResumeId = 1
},
new Experience()
{
ExperienceId = 4,
Title = "Technology Specialist",
Company = "Agility E Services",
Description = "",
Location = "Hyderabad",
StartDate = new DateTime(2022, 11, 4),
EndDate = new DateTime(2024, 4, 12),
ResumeId = 1
},
};
}
public static List<ExperienceDetails> GetExperienceDetailsData()
{
return new List<ExperienceDetails>
{
new ExperienceDetails()
{
Id = 1,
ExperienceId = 1,
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
Order = 1
},
new ExperienceDetails()
{
Id = 2,
ExperienceId = 1,
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
Order = 2
},
new ExperienceDetails()
{
Id = 3,
ExperienceId = 2,
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
Order = 1
},
new ExperienceDetails()
{
Id = 4,
ExperienceId = 2,
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
Order = 2
},
new ExperienceDetails()
{
Id = 5,
ExperienceId = 3,
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
Order = 1
},
new ExperienceDetails()
{
Id = 6,
ExperienceId = 3,
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
Order = 2
},
new ExperienceDetails()
{
Id = 7,
ExperienceId = 4,
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
Order = 1
},
new ExperienceDetails()
{
Id = 8,
ExperienceId = 4,
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
Order = 2
},
};
}
public static List<User> GetUsers()
{
return new List<User>
{
new User
{
UserId = 1,
Username = "rajukottedi",
Email = "bangararaju.kottedi@gmail.com",
}
};
}
}
}
+34
View File
@@ -0,0 +1,34 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class Academic : BaseEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int AcademicId { get; set; }
[Required]
[MaxLength(200)]
public string Institution { get; set; } = string.Empty;
[Required]
public int StartYear { get; set; }
[Required]
public int EndYear { get; set; }
public int ResumeId { get; set; }
[ForeignKey(nameof(ResumeId))]
public Resume? Resume { get; set; }
[Required]
[MaxLength(100)]
public string Degree { get; set; } = string.Empty;
[MaxLength(100)]
public string? DegreeSpecialization { get; set; }
}
}
+13
View File
@@ -0,0 +1,13 @@
namespace PortBlog.API.Entities
{
public class BaseEntity
{
public string? CreatedBy { get; set; }
public string? ModifiedBy { get; set; }
public DateTime? CreatedDate { get; set; } = DateTime.Now;
public DateTime? ModifiedDate { get; set; } = DateTime.Now;
}
}
+24
View File
@@ -0,0 +1,24 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class Blog : BaseEntity
{
[Required]
[MaxLength(200)]
[Url]
[Key]
public string BlogUrl { get; set; } = string.Empty;
[Required]
[MaxLength(50)]
public string Name { get; set; } = string.Empty;
[MaxLength(200)]
public string? Description { get; set; } = string.Empty;
public ICollection<Post> Posts { get; set; } = new List<Post>();
}
}
+11
View File
@@ -0,0 +1,11 @@
namespace PortBlog.API.Entities
{
public class Cache
{
public string Id { get; set; } = null!;
public byte[] Value { get; set; } = null!;
public DateTime ExpiresAtTime { get; set; }
public long? SlidingExpirationInSeconds { get; set; }
public DateTime? AbsoluteExpiration { get; set; }
}
}
+41
View File
@@ -0,0 +1,41 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class Candidate : BaseEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int CandidateId { get; set; }
[Required]
[MaxLength(50)]
public string FirstName { get; set; } = string.Empty;
[Required]
[MaxLength(50)]
public string LastName { get; set; } = string.Empty;
public string? Gender { get; set; }
public DateTime? Dob { get; set; }
[Required]
[EmailAddress]
[MaxLength(100)]
public string Email { get; set; } = string.Empty;
[Required]
[Phone]
[MaxLength(20)]
public string Phone { get; set; } = string.Empty;
[MaxLength(200)]
public string? Address { get; set; } = string.Empty;
public string? Avatar { get; set; }
public ICollection<Resume> Resumes { get; set; } = new List<Resume>();
}
}
+33
View File
@@ -0,0 +1,33 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class Certification : BaseEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int CertificationId { get; set; }
[Required]
[MaxLength(100)]
public string CertificationName { get; set; } = string.Empty;
[MaxLength(100)]
public string IssuingOrganization { get; set; } = string.Empty;
[Url]
[MaxLength(200)]
public string? CertificationLink { get; set; }
[Required]
public DateTime IssueDate { get; set; }
public DateTime? ExpiryDate { get; set; }
public int ResumeId { get; set; }
[ForeignKey(nameof(ResumeId))]
public Resume? Resume { get; set; }
}
}
+27
View File
@@ -0,0 +1,27 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class ClientLog
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[Required]
[MaxLength(50)]
public string SiteName { get; set; } = string.Empty;
[Required]
[MaxLength(100)]
public string SiteUrl { get; set; } = string.Empty;
[Required]
public string ClientIp { get; set; } = string.Empty;
public string? ClientLocation { get; set; } = string.Empty;
public DateTime CreatedDate { get; set; } = DateTime.Now;
}
}
+39
View File
@@ -0,0 +1,39 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class Experience : BaseEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int ExperienceId { get; set; }
[Required]
[MaxLength(100)]
public string Title { get; set; } = string.Empty;
[MaxLength(500)]
public string? Description { get; set; }
[Required]
[MaxLength(100)]
public string Company { get; set; } = string.Empty;
[Required]
[MaxLength(100)]
public string Location { get; set; } = string.Empty;
[Required]
public DateTime StartDate { get; set; }
public DateTime? EndDate { get; set; }
public int ResumeId { get; set; }
[ForeignKey(nameof(ResumeId))]
public Resume? Resume { get; set; }
public ICollection<ExperienceDetails> Details { get; set; } = new List<ExperienceDetails>();
}
}
@@ -0,0 +1,23 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class ExperienceDetails : BaseEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[Required]
[MaxLength(500)]
public string Details { get; set; } = string.Empty;
public int Order { get; set; } = 0;
public int ExperienceId { get; set; }
[ForeignKey(nameof(ExperienceId))]
public Experience? Experience { get; set; }
}
}
+31
View File
@@ -0,0 +1,31 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class Hobby : BaseEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int HobbyId { get; set; }
[Required]
[MaxLength(100)]
public string Name { get; set; } = string.Empty;
[Required]
[MaxLength(500)]
public string Description { get; set; } = string.Empty;
[Required]
public int Order { get; set; }
[MaxLength(50)]
public string? Icon { get; set; }
public int ResumeId { get; set; }
[ForeignKey(nameof(ResumeId))]
public Resume? Resume { get; set; }
}
}
@@ -0,0 +1,17 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace PortBlog.API.Entities.Mapping
{
public class CacheMapping : IEntityTypeConfiguration<Cache>
{
public void Configure(EntityTypeBuilder<Cache> builder)
{
builder.HasKey(c => c.Id);
builder.Property(c => c.Id).ValueGeneratedOnAdd();
builder.Property(c => c.ExpiresAtTime).IsRequired();
builder.Property(c => c.Id).HasMaxLength(449).IsRequired();
builder.Property(c => c.Value).IsRequired();
}
}
}
+42
View File
@@ -0,0 +1,42 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class Message
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[Required]
[MaxLength(50)]
public string Name { get; set; } = string.Empty;
[Required]
[EmailAddress]
[MaxLength(100)]
public string FromEmail { get; set; } = string.Empty;
[Required]
[EmailAddress]
[MaxLength(100)]
public string ToEmail { get; set; } = string.Empty;
[Required]
[MaxLength(50)]
public string Subject { get; set; } = string.Empty;
[Required]
public string Content { get; set; } = string.Empty;
public int SentStatus { get; set; } = 0;
public DateTime CreatedDate { get; set; } = DateTime.Now;
public int CandidateId { get; set; }
[ForeignKey(nameof(CandidateId))]
public Candidate? Candidate { get; set; }
}
}
+51
View File
@@ -0,0 +1,51 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class Post : BaseEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int PostId { get; set; }
[Required]
[MaxLength(100)]
public string Slug { get; set; } = string.Empty;
[Required]
[MaxLength(100)]
public string Title { get; set; } = string.Empty;
[Required]
[MaxLength(200)]
public string Description { get; set; } = string.Empty;
[Required]
[MaxLength(200)]
public string[] Categories { get; set; } = [];
[MaxLength(100)]
public string? Author { get; set; }
[Url]
[MaxLength(200)]
public string PostUrl { get; set; } = string.Empty;
public int Likes { get; set; } = 0;
public int Views { get; set; } = 0;
public int Comments { get; set; } = 0;
[MaxLength(200)]
public string? Image { get; set; }
[Required]
[MaxLength(200)]
public string BlogUrl { get; set; } = string.Empty;
[ForeignKey(nameof(BlogUrl))]
public Blog? Blog { get; set; }
}
}
+60
View File
@@ -0,0 +1,60 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class Project : BaseEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int ProjectId { get; set; }
[Required]
[MaxLength(100)]
public string Name { get; set; } = string.Empty;
[Required]
[MaxLength(500)]
public string Description { get; set; } = string.Empty;
[Required]
[MaxLength(200)]
public string[] Categories { get; set; } = [];
[Required]
[MaxLength(100)]
public string? Roles { get; set; }
[MaxLength(200)]
public string? Challenges { get; set; }
[MaxLength(200)]
public string? LessonsLearned { get; set; }
[MaxLength(200)]
public string? Impact { get; set; }
[Required]
[MaxLength(200)]
public string? Responsibilities { get; set; }
[Required]
[MaxLength(200)]
public string? TechnologiesUsed { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
[MaxLength(20)]
public string? Status { get; set; }
[MaxLength(200)]
public string? ImagePath { get; set; }
public int ResumeId { get; set; }
[ForeignKey(nameof(ResumeId))]
public Resume? Resume { get; set; }
}
}
+33
View File
@@ -0,0 +1,33 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class RefreshToken
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int TokenId { get; set; }
[Required]
public int UserId { get; set; }
[Required]
public string Token { get; set; }
[Required]
public string JwtId { get; set; }
[Required]
public DateTime ExpiryDate { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public bool Revoked { get; set; } = false;
public string? ReplacedByToken { get; set; }
[Required]
public string DeviceInfo { get; set; }
[ForeignKey(nameof(UserId))]
public User User { get; set; }
}
}
+44
View File
@@ -0,0 +1,44 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class Resume : BaseEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int ResumeId { get; set; }
[Required]
[MaxLength(100)]
public string Title { get; set; } = string.Empty;
[Required]
[MaxLength(1000)]
public string About { get; set; } = string.Empty;
[Required]
public int Order { get; set; }
public int CandidateId { get; set; }
[ForeignKey(nameof(CandidateId))]
public Candidate? Candidate { get; set; }
public ResumeFile? ResumeFile { get; set; }
public SocialLinks? SocialLinks { get; set; }
public ICollection<Academic> Academics { get; set; } = new List<Academic>();
public ICollection<Skill> Skills { get; set; } = new List<Skill>();
public ICollection<Experience> Experiences { get; set; } = new List<Experience>();
public ICollection<Certification> Certifications { get; set; } = new List<Certification>();
public ICollection<Hobby> Hobbies { get; set; } = new List<Hobby>();
public ICollection<Project> Projects { get; set; } = new List<Project>();
}
}
+32
View File
@@ -0,0 +1,32 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class ResumeFile : BaseEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int FileId { get; set; }
[Required]
[MaxLength(100)]
public string FileName { get; set; } = string.Empty;
[Required]
[MaxLength(50)]
public string FileFormat { get; set; } = string.Empty;
[Required]
[MaxLength(100)]
public string FilePath { get; set; } = string.Empty;
[MaxLength(10)]
public string? Version { get; set; } = string.Empty;
public int ResumeId { get; set; }
[ForeignKey(nameof(ResumeId))]
public Resume? Resume { get; set; }
}
}
+27
View File
@@ -0,0 +1,27 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class Skill : BaseEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int SkillId { get; set; }
[Required]
[MaxLength(50)]
public string Name { get; set; } = string.Empty;
[MaxLength(200)]
public string? Description { get; set; }
[Required]
public int ProficiencyLevel { get; set; }
public int ResumeId { get; set; }
[ForeignKey(nameof(ResumeId))]
public Resume? Resume { get; set; }
}
}
+42
View File
@@ -0,0 +1,42 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class SocialLinks : BaseEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[MaxLength(200)]
public string? GitHub { get; set; }
[Required]
[MaxLength(200)]
public string Linkedin { get; set; } = string.Empty;
[MaxLength(200)]
public string? Instagram { get; set; }
[MaxLength(200)]
public string? Facebook { get; set; }
[MaxLength(200)]
public string? Twitter { get; set; }
[MaxLength(200)]
public string? PersonalWebsite { get; set; }
[MaxLength(200)]
public string? BlogUrl { get; set; }
[ForeignKey(nameof(BlogUrl))]
public Blog? Blog { get; set; }
[ForeignKey(nameof(ResumeId))]
public Resume? Resume { get; set; }
public int ResumeId { get; set; }
}
}
+19
View File
@@ -0,0 +1,19 @@
using System.ComponentModel.DataAnnotations;
namespace PortBlog.API.Entities
{
public class User
{
[Key]
public int UserId { get; set; }
[Required]
public string Username { get; set; }
[Required]
public string Email { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public ICollection<RefreshToken> RefreshTokens { get; set; }
}
}
@@ -0,0 +1,28 @@
using Asp.Versioning.ApiExplorer;
using Microsoft.Extensions.Options;
using Microsoft.OpenApi.Models;
using Swashbuckle.AspNetCore.SwaggerGen;
public class ConfigureSwaggerOptions : IConfigureOptions<SwaggerGenOptions>
{
private readonly IApiVersionDescriptionProvider _provider;
public ConfigureSwaggerOptions(IApiVersionDescriptionProvider provider)
{
_provider = provider;
}
public void Configure(SwaggerGenOptions options)
{
foreach (var description in _provider.ApiVersionDescriptions)
{
options.SwaggerDoc(
description.GroupName,
new OpenApiInfo
{
Title = "PortBlog API",
Version = description.GroupName
});
}
}
}
@@ -0,0 +1,28 @@
using PortBlog.API.Repositories;
using PortBlog.API.Repositories.Contracts;
using PortBlog.API.Services;
using PortBlog.API.Services.Contracts;
namespace PortBlog.API.Extensions
{
public static class ServiceExtensions
{
public static IServiceCollection AddRepositories(this IServiceCollection services)
{
services.AddScoped<ICandidateRepository, CandidateRepository>();
services.AddScoped<IResumeRepository, ResumeRepository>();
services.AddScoped<IMailRepository, MailRepository>();
services.AddScoped<IBlogRepository, BlogRepository>();
return services;
}
public static IServiceCollection AddServices(this IServiceCollection services)
{
services.AddTransient<IMailService, MailService>();
services.AddTransient<IAuthService, AuthService>();
services.AddTransient<ITemplateService, TemplateService>();
services.AddScoped<IAdminService, AdminService>();
return services;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

@@ -0,0 +1,40 @@
using Microsoft.AspNetCore.Diagnostics;
using Microsoft.AspNetCore.Http.HttpResults;
using Microsoft.AspNetCore.Mvc;
using System.Net;
namespace PortBlog.API.Middleware
{
public class ApiKeyMiddleware
{
private readonly RequestDelegate _next;
private const string APIKEY = "XApiKey";
public ApiKeyMiddleware(RequestDelegate next)
{
_next = next;
}
public async Task InvokeAsync(HttpContext context)
{
if (!context.Request.Headers.TryGetValue(APIKEY, out var extractedApiKey))
{
context.Response.StatusCode = StatusCodes.Status401Unauthorized;
await context.Response.WriteAsync("Unauthorized client");
return;
}
var appSettings = context.RequestServices.GetRequiredService<IConfiguration>();
var apiKey = appSettings.GetValue<string>(APIKEY);
if (apiKey != null && !apiKey.Equals(extractedApiKey))
{
context.Response.StatusCode = StatusCodes.Status401Unauthorized;
await context.Response.WriteAsync("Unauthorized client");
return;
}
await _next(context);
}
}
}
@@ -0,0 +1,981 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using PortBlog.API.DbContexts;
#nullable disable
namespace PortBlog.API.Migrations
{
[DbContext(typeof(CvBlogContext))]
[Migration("20240425092224_InitialDBMigration")]
partial class InitialDBMigration
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.4")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
modelBuilder.Entity("PortBlog.API.Entities.Academic", b =>
{
b.Property<int>("AcademicId")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("AcademicId"));
b.Property<string>("CreatedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Degree")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<string>("DegreeSpecialization")
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<int>("EndYear")
.HasColumnType("int");
b.Property<string>("Institution")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("ModifiedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("datetime(6)");
b.Property<int>("ResumeId")
.HasColumnType("int");
b.Property<int>("StartYear")
.HasColumnType("int");
b.HasKey("AcademicId");
b.HasIndex("ResumeId");
b.ToTable("Academics");
});
modelBuilder.Entity("PortBlog.API.Entities.Blog", b =>
{
b.Property<string>("BlogUrl")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("CreatedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Description")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("ModifiedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.HasKey("BlogUrl");
b.ToTable("Blogs");
});
modelBuilder.Entity("PortBlog.API.Entities.Candidate", b =>
{
b.Property<int>("CandidateId")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("CandidateId"));
b.Property<string>("Address")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Avatar")
.HasColumnType("longtext");
b.Property<string>("CreatedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Email")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<string>("FirstName")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("Gender")
.HasColumnType("longtext");
b.Property<string>("LastName")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("ModifiedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Phone")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("varchar(20)");
b.HasKey("CandidateId");
b.ToTable("Candidates");
});
modelBuilder.Entity("PortBlog.API.Entities.Certification", b =>
{
b.Property<int>("CertificationId")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("CertificationId"));
b.Property<string>("CertificationLink")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("CertificationName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<string>("CreatedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<DateTime?>("ExpiryDate")
.HasColumnType("datetime(6)");
b.Property<DateTime>("IssueDate")
.HasColumnType("datetime(6)");
b.Property<string>("IssuingOrganization")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<string>("ModifiedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("datetime(6)");
b.Property<int>("ResumeId")
.HasColumnType("int");
b.HasKey("CertificationId");
b.HasIndex("ResumeId");
b.ToTable("Certifications");
});
modelBuilder.Entity("PortBlog.API.Entities.ClientLog", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
b.Property<string>("ClientIp")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("ClientLocation")
.HasColumnType("longtext");
b.Property<DateTime>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<string>("SiteName")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("SiteUrl")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.HasKey("Id");
b.ToTable("ClientLogs");
});
modelBuilder.Entity("PortBlog.API.Entities.Experience", b =>
{
b.Property<int>("ExperienceId")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ExperienceId"));
b.Property<string>("Company")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<string>("CreatedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Description")
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property<DateTime?>("EndDate")
.HasColumnType("datetime(6)");
b.Property<string>("Location")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<string>("ModifiedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("datetime(6)");
b.Property<int>("ResumeId")
.HasColumnType("int");
b.Property<DateTime>("StartDate")
.HasColumnType("datetime(6)");
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.HasKey("ExperienceId");
b.HasIndex("ResumeId");
b.ToTable("Experiences");
});
modelBuilder.Entity("PortBlog.API.Entities.ExperienceDetails", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
b.Property<string>("CreatedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Details")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property<int>("ExperienceId")
.HasColumnType("int");
b.Property<string>("ModifiedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("datetime(6)");
b.Property<int>("Order")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("ExperienceId");
b.ToTable("ExperienceDetails");
});
modelBuilder.Entity("PortBlog.API.Entities.Hobby", b =>
{
b.Property<int>("HobbyId")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("HobbyId"));
b.Property<string>("CreatedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Description")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property<string>("Icon")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("ModifiedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<int>("Order")
.HasColumnType("int");
b.Property<int>("ResumeId")
.HasColumnType("int");
b.HasKey("HobbyId");
b.HasIndex("ResumeId");
b.ToTable("Hobbies");
});
modelBuilder.Entity("PortBlog.API.Entities.Message", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
b.Property<string>("Content")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property<DateTime>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Email")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("Subject")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.HasKey("Id");
b.ToTable("Messages");
});
modelBuilder.Entity("PortBlog.API.Entities.MessageStatusLog", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
b.Property<DateTime>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<int>("MessageId")
.HasColumnType("int");
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("varchar(10)");
b.HasKey("Id");
b.HasIndex("MessageId");
b.ToTable("MessageStatusLogs");
});
modelBuilder.Entity("PortBlog.API.Entities.Post", b =>
{
b.Property<int>("PostId")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("PostId"));
b.Property<string>("Author")
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<string>("BlogUrl")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Category")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<int>("Comments")
.HasColumnType("int");
b.Property<string>("CreatedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Description")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Image")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<int>("Likes")
.HasColumnType("int");
b.Property<string>("ModifiedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("datetime(6)");
b.Property<string>("PostUrl")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Slug")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<int>("Views")
.HasColumnType("int");
b.HasKey("PostId");
b.HasIndex("BlogUrl");
b.ToTable("Posts");
});
modelBuilder.Entity("PortBlog.API.Entities.Project", b =>
{
b.Property<int>("ProjectId")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ProjectId"));
b.Property<string>("Category")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<string>("Challenges")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("CreatedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Description")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property<DateTime?>("EndDate")
.HasColumnType("datetime(6)");
b.Property<string>("ImagePath")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Impact")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("LessonsLearned")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("ModifiedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<string>("Responsibilities")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<int>("ResumeId")
.HasColumnType("int");
b.Property<string>("Roles")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<DateTime?>("StartDate")
.HasColumnType("datetime(6)");
b.Property<string>("Status")
.HasMaxLength(20)
.HasColumnType("varchar(20)");
b.Property<string>("TechnologiesUsed")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.HasKey("ProjectId");
b.HasIndex("ResumeId");
b.ToTable("Projects");
});
modelBuilder.Entity("PortBlog.API.Entities.Resume", b =>
{
b.Property<int>("ResumeId")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ResumeId"));
b.Property<string>("About")
.IsRequired()
.HasMaxLength(1000)
.HasColumnType("varchar(1000)");
b.Property<int>("CandidateId")
.HasColumnType("int");
b.Property<string>("CreatedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<string>("ModifiedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("datetime(6)");
b.Property<int>("Order")
.HasColumnType("int");
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.HasKey("ResumeId");
b.HasIndex("CandidateId");
b.ToTable("Resumes");
});
modelBuilder.Entity("PortBlog.API.Entities.ResumeFile", b =>
{
b.Property<int>("FileId")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("FileId"));
b.Property<string>("CreatedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<string>("FileFormat")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("FileName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<string>("FilePath")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<string>("ModifiedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("datetime(6)");
b.Property<int>("ResumeId")
.HasColumnType("int");
b.Property<string>("Version")
.HasMaxLength(10)
.HasColumnType("varchar(10)");
b.HasKey("FileId");
b.HasIndex("ResumeId")
.IsUnique();
b.ToTable("Files");
});
modelBuilder.Entity("PortBlog.API.Entities.Skill", b =>
{
b.Property<int>("SkillId")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("SkillId"));
b.Property<string>("CreatedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Description")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("ModifiedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<int>("ProficiencyLevel")
.HasColumnType("int");
b.Property<int>("ResumeId")
.HasColumnType("int");
b.HasKey("SkillId");
b.HasIndex("ResumeId");
b.ToTable("Skills");
});
modelBuilder.Entity("PortBlog.API.Entities.SocialLinks", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
b.Property<string>("BlogUrl")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("CreatedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("CreatedDate")
.HasColumnType("datetime(6)");
b.Property<string>("Facebook")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("GitHub")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Instagram")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Linkedin")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("ModifiedBy")
.HasColumnType("longtext");
b.Property<DateTime?>("ModifiedDate")
.HasColumnType("datetime(6)");
b.Property<string>("PersonalWebsite")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<int>("ResumeId")
.HasColumnType("int");
b.Property<string>("Twitter")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.HasKey("Id");
b.HasIndex("BlogUrl");
b.HasIndex("ResumeId")
.IsUnique();
b.ToTable("SocialLinks");
});
modelBuilder.Entity("PortBlog.API.Entities.Academic", b =>
{
b.HasOne("PortBlog.API.Entities.Resume", "Resume")
.WithMany("Academics")
.HasForeignKey("ResumeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Resume");
});
modelBuilder.Entity("PortBlog.API.Entities.Certification", b =>
{
b.HasOne("PortBlog.API.Entities.Resume", "Resume")
.WithMany("Certifications")
.HasForeignKey("ResumeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Resume");
});
modelBuilder.Entity("PortBlog.API.Entities.Experience", b =>
{
b.HasOne("PortBlog.API.Entities.Resume", "Resume")
.WithMany("Experiences")
.HasForeignKey("ResumeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Resume");
});
modelBuilder.Entity("PortBlog.API.Entities.ExperienceDetails", b =>
{
b.HasOne("PortBlog.API.Entities.Experience", "Experience")
.WithMany("Details")
.HasForeignKey("ExperienceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Experience");
});
modelBuilder.Entity("PortBlog.API.Entities.Hobby", b =>
{
b.HasOne("PortBlog.API.Entities.Resume", "Resume")
.WithMany("Hobbys")
.HasForeignKey("ResumeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Resume");
});
modelBuilder.Entity("PortBlog.API.Entities.MessageStatusLog", b =>
{
b.HasOne("PortBlog.API.Entities.Message", "Message")
.WithMany()
.HasForeignKey("MessageId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Message");
});
modelBuilder.Entity("PortBlog.API.Entities.Post", b =>
{
b.HasOne("PortBlog.API.Entities.Blog", "Blog")
.WithMany("Posts")
.HasForeignKey("BlogUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Blog");
});
modelBuilder.Entity("PortBlog.API.Entities.Project", b =>
{
b.HasOne("PortBlog.API.Entities.Resume", "Resume")
.WithMany("Projects")
.HasForeignKey("ResumeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Resume");
});
modelBuilder.Entity("PortBlog.API.Entities.Resume", b =>
{
b.HasOne("PortBlog.API.Entities.Candidate", "Candidate")
.WithMany("Resumes")
.HasForeignKey("CandidateId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Candidate");
});
modelBuilder.Entity("PortBlog.API.Entities.ResumeFile", b =>
{
b.HasOne("PortBlog.API.Entities.Resume", "Resume")
.WithOne("ResumeFile")
.HasForeignKey("PortBlog.API.Entities.ResumeFile", "ResumeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Resume");
});
modelBuilder.Entity("PortBlog.API.Entities.Skill", b =>
{
b.HasOne("PortBlog.API.Entities.Resume", "Resume")
.WithMany("Skills")
.HasForeignKey("ResumeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Resume");
});
modelBuilder.Entity("PortBlog.API.Entities.SocialLinks", b =>
{
b.HasOne("PortBlog.API.Entities.Blog", "Blog")
.WithMany()
.HasForeignKey("BlogUrl");
b.HasOne("PortBlog.API.Entities.Resume", "Resume")
.WithOne("SocialLinks")
.HasForeignKey("PortBlog.API.Entities.SocialLinks", "ResumeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Blog");
b.Navigation("Resume");
});
modelBuilder.Entity("PortBlog.API.Entities.Blog", b =>
{
b.Navigation("Posts");
});
modelBuilder.Entity("PortBlog.API.Entities.Candidate", b =>
{
b.Navigation("Resumes");
});
modelBuilder.Entity("PortBlog.API.Entities.Experience", b =>
{
b.Navigation("Details");
});
modelBuilder.Entity("PortBlog.API.Entities.Resume", b =>
{
b.Navigation("Academics");
b.Navigation("Certifications");
b.Navigation("Experiences");
b.Navigation("Hobbys");
b.Navigation("Projects");
b.Navigation("ResumeFile");
b.Navigation("Skills");
b.Navigation("SocialLinks");
});
#pragma warning restore 612, 618
}
}
}
@@ -0,0 +1,662 @@
using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class InitialDBMigration : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterDatabase()
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "Blogs",
columns: table => new
{
BlogUrl = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Name = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Description = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ModifiedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true),
ModifiedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Blogs", x => x.BlogUrl);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "Candidates",
columns: table => new
{
CandidateId = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
FirstName = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
LastName = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Gender = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
Email = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Phone = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Address = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
Avatar = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ModifiedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true),
ModifiedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Candidates", x => x.CandidateId);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "ClientLogs",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
SiteName = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
SiteUrl = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
ClientIp = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
ClientLocation = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedDate = table.Column<DateTime>(type: "datetime(6)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ClientLogs", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "Messages",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Name = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Email = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Subject = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Content = table.Column<string>(type: "varchar(500)", maxLength: 500, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedDate = table.Column<DateTime>(type: "datetime(6)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Messages", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "Posts",
columns: table => new
{
PostId = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Slug = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Title = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Description = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Category = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Author = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
PostUrl = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Likes = table.Column<int>(type: "int", nullable: false),
Views = table.Column<int>(type: "int", nullable: false),
Comments = table.Column<int>(type: "int", nullable: false),
Image = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
BlogUrl = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ModifiedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true),
ModifiedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Posts", x => x.PostId);
table.ForeignKey(
name: "FK_Posts_Blogs_BlogUrl",
column: x => x.BlogUrl,
principalTable: "Blogs",
principalColumn: "BlogUrl",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "Resumes",
columns: table => new
{
ResumeId = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Title = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
About = table.Column<string>(type: "varchar(1000)", maxLength: 1000, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Order = table.Column<int>(type: "int", nullable: false),
CandidateId = table.Column<int>(type: "int", nullable: false),
CreatedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ModifiedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true),
ModifiedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Resumes", x => x.ResumeId);
table.ForeignKey(
name: "FK_Resumes_Candidates_CandidateId",
column: x => x.CandidateId,
principalTable: "Candidates",
principalColumn: "CandidateId",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "MessageStatusLogs",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
MessageId = table.Column<int>(type: "int", nullable: false),
Status = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedDate = table.Column<DateTime>(type: "datetime(6)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_MessageStatusLogs", x => x.Id);
table.ForeignKey(
name: "FK_MessageStatusLogs_Messages_MessageId",
column: x => x.MessageId,
principalTable: "Messages",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "Academics",
columns: table => new
{
AcademicId = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Institution = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
StartYear = table.Column<int>(type: "int", nullable: false),
EndYear = table.Column<int>(type: "int", nullable: false),
ResumeId = table.Column<int>(type: "int", nullable: false),
Degree = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
DegreeSpecialization = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ModifiedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true),
ModifiedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Academics", x => x.AcademicId);
table.ForeignKey(
name: "FK_Academics_Resumes_ResumeId",
column: x => x.ResumeId,
principalTable: "Resumes",
principalColumn: "ResumeId",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "Certifications",
columns: table => new
{
CertificationId = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
CertificationName = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
IssuingOrganization = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
CertificationLink = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
IssueDate = table.Column<DateTime>(type: "datetime(6)", nullable: false),
ExpiryDate = table.Column<DateTime>(type: "datetime(6)", nullable: true),
ResumeId = table.Column<int>(type: "int", nullable: false),
CreatedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ModifiedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true),
ModifiedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Certifications", x => x.CertificationId);
table.ForeignKey(
name: "FK_Certifications_Resumes_ResumeId",
column: x => x.ResumeId,
principalTable: "Resumes",
principalColumn: "ResumeId",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "Experiences",
columns: table => new
{
ExperienceId = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Title = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Description = table.Column<string>(type: "varchar(500)", maxLength: 500, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
Company = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Location = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
StartDate = table.Column<DateTime>(type: "datetime(6)", nullable: false),
EndDate = table.Column<DateTime>(type: "datetime(6)", nullable: true),
ResumeId = table.Column<int>(type: "int", nullable: false),
CreatedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ModifiedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true),
ModifiedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Experiences", x => x.ExperienceId);
table.ForeignKey(
name: "FK_Experiences_Resumes_ResumeId",
column: x => x.ResumeId,
principalTable: "Resumes",
principalColumn: "ResumeId",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "Files",
columns: table => new
{
FileId = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
FileName = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
FileFormat = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
FilePath = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Version = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ResumeId = table.Column<int>(type: "int", nullable: false),
CreatedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ModifiedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true),
ModifiedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Files", x => x.FileId);
table.ForeignKey(
name: "FK_Files_Resumes_ResumeId",
column: x => x.ResumeId,
principalTable: "Resumes",
principalColumn: "ResumeId",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "Hobbies",
columns: table => new
{
HobbyId = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Name = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Description = table.Column<string>(type: "varchar(500)", maxLength: 500, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Order = table.Column<int>(type: "int", nullable: false),
Icon = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ResumeId = table.Column<int>(type: "int", nullable: false),
CreatedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ModifiedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true),
ModifiedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Hobbies", x => x.HobbyId);
table.ForeignKey(
name: "FK_Hobbies_Resumes_ResumeId",
column: x => x.ResumeId,
principalTable: "Resumes",
principalColumn: "ResumeId",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "Projects",
columns: table => new
{
ProjectId = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Name = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Description = table.Column<string>(type: "varchar(500)", maxLength: 500, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Category = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Roles = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Challenges = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
LessonsLearned = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
Impact = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
Responsibilities = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
TechnologiesUsed = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
StartDate = table.Column<DateTime>(type: "datetime(6)", nullable: true),
EndDate = table.Column<DateTime>(type: "datetime(6)", nullable: true),
Status = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ImagePath = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ResumeId = table.Column<int>(type: "int", nullable: false),
CreatedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ModifiedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true),
ModifiedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Projects", x => x.ProjectId);
table.ForeignKey(
name: "FK_Projects_Resumes_ResumeId",
column: x => x.ResumeId,
principalTable: "Resumes",
principalColumn: "ResumeId",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "Skills",
columns: table => new
{
SkillId = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Name = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Description = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ProficiencyLevel = table.Column<int>(type: "int", nullable: false),
ResumeId = table.Column<int>(type: "int", nullable: false),
CreatedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ModifiedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true),
ModifiedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Skills", x => x.SkillId);
table.ForeignKey(
name: "FK_Skills_Resumes_ResumeId",
column: x => x.ResumeId,
principalTable: "Resumes",
principalColumn: "ResumeId",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "SocialLinks",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
GitHub = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
Linkedin = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Instagram = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
Facebook = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
Twitter = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
PersonalWebsite = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
BlogUrl = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ResumeId = table.Column<int>(type: "int", nullable: false),
CreatedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ModifiedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true),
ModifiedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_SocialLinks", x => x.Id);
table.ForeignKey(
name: "FK_SocialLinks_Blogs_BlogUrl",
column: x => x.BlogUrl,
principalTable: "Blogs",
principalColumn: "BlogUrl");
table.ForeignKey(
name: "FK_SocialLinks_Resumes_ResumeId",
column: x => x.ResumeId,
principalTable: "Resumes",
principalColumn: "ResumeId",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "ExperienceDetails",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Details = table.Column<string>(type: "varchar(500)", maxLength: 500, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Order = table.Column<int>(type: "int", nullable: false),
ExperienceId = table.Column<int>(type: "int", nullable: false),
CreatedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ModifiedBy = table.Column<string>(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true),
ModifiedDate = table.Column<DateTime>(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_ExperienceDetails", x => x.Id);
table.ForeignKey(
name: "FK_ExperienceDetails_Experiences_ExperienceId",
column: x => x.ExperienceId,
principalTable: "Experiences",
principalColumn: "ExperienceId",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateIndex(
name: "IX_Academics_ResumeId",
table: "Academics",
column: "ResumeId");
migrationBuilder.CreateIndex(
name: "IX_Certifications_ResumeId",
table: "Certifications",
column: "ResumeId");
migrationBuilder.CreateIndex(
name: "IX_ExperienceDetails_ExperienceId",
table: "ExperienceDetails",
column: "ExperienceId");
migrationBuilder.CreateIndex(
name: "IX_Experiences_ResumeId",
table: "Experiences",
column: "ResumeId");
migrationBuilder.CreateIndex(
name: "IX_Files_ResumeId",
table: "Files",
column: "ResumeId",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Hobbies_ResumeId",
table: "Hobbies",
column: "ResumeId");
migrationBuilder.CreateIndex(
name: "IX_MessageStatusLogs_MessageId",
table: "MessageStatusLogs",
column: "MessageId");
migrationBuilder.CreateIndex(
name: "IX_Posts_BlogUrl",
table: "Posts",
column: "BlogUrl");
migrationBuilder.CreateIndex(
name: "IX_Projects_ResumeId",
table: "Projects",
column: "ResumeId");
migrationBuilder.CreateIndex(
name: "IX_Resumes_CandidateId",
table: "Resumes",
column: "CandidateId");
migrationBuilder.CreateIndex(
name: "IX_Skills_ResumeId",
table: "Skills",
column: "ResumeId");
migrationBuilder.CreateIndex(
name: "IX_SocialLinks_BlogUrl",
table: "SocialLinks",
column: "BlogUrl");
migrationBuilder.CreateIndex(
name: "IX_SocialLinks_ResumeId",
table: "SocialLinks",
column: "ResumeId",
unique: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Academics");
migrationBuilder.DropTable(
name: "Certifications");
migrationBuilder.DropTable(
name: "ClientLogs");
migrationBuilder.DropTable(
name: "ExperienceDetails");
migrationBuilder.DropTable(
name: "Files");
migrationBuilder.DropTable(
name: "Hobbies");
migrationBuilder.DropTable(
name: "MessageStatusLogs");
migrationBuilder.DropTable(
name: "Posts");
migrationBuilder.DropTable(
name: "Projects");
migrationBuilder.DropTable(
name: "Skills");
migrationBuilder.DropTable(
name: "SocialLinks");
migrationBuilder.DropTable(
name: "Experiences");
migrationBuilder.DropTable(
name: "Messages");
migrationBuilder.DropTable(
name: "Blogs");
migrationBuilder.DropTable(
name: "Resumes");
migrationBuilder.DropTable(
name: "Candidates");
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,290 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class InitialSeedData : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "Blogs",
columns: new[] { "BlogUrl", "CreatedBy", "CreatedDate", "Description", "ModifiedBy", "ModifiedDate", "Name" },
values: new object[] { "https://bangararaju.kottedi.in/blog", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6122), "Your Hub for Tech, DIY, and Innovation", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6122), "Engineer's Odyssey" });
migrationBuilder.InsertData(
table: "Candidates",
columns: new[] { "CandidateId", "Address", "Avatar", "CreatedBy", "CreatedDate", "Email", "FirstName", "Gender", "LastName", "ModifiedBy", "ModifiedDate", "Phone" },
values: new object[] { 1, "Samalkot, Andhra Pradesh, India", null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5678), "bangararaju.kottedi@gmail.com", "Bangara Raju", "Male", "Kottedi", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5692), "+91 9441212187" });
migrationBuilder.InsertData(
table: "Posts",
columns: new[] { "PostId", "Author", "BlogUrl", "Category", "Comments", "CreatedBy", "CreatedDate", "Description", "Image", "Likes", "ModifiedBy", "ModifiedDate", "PostUrl", "Slug", "Title", "Views" },
values: new object[,]
{
{ 1, null, "https://bangararaju.kottedi.in/blog", "Welcome", 0, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6152), "Hello World", null, 0, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6148), "https://bangararaju.kottedi.in/blog/hello-world", "hello-world", "Hello World", 0 },
{ 2, null, "https://bangararaju.kottedi.in/blog", "Welcome", 0, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6157), "Hello World", null, 0, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6155), "https://bangararaju.kottedi.in/blog/hello-world", "hello-world", "Hello World", 0 },
{ 3, null, "https://bangararaju.kottedi.in/blog", "Welcome", 0, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6160), "Hello World", null, 0, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6158), "https://bangararaju.kottedi.in/blog/hello-world", "hello-world", "Hello World", 0 }
});
migrationBuilder.InsertData(
table: "Resumes",
columns: new[] { "ResumeId", "About", "CandidateId", "CreatedBy", "CreatedDate", "ModifiedBy", "ModifiedDate", "Order", "Title" },
values: new object[] { 1, "I'm Full Stack Developer with 8+ years of hands-on experience in .NET development. Passionate and driven professional with expertise in .NET WebAPI, Angular, CI/CD, and a growing proficiency in Azure. I've successfully delivered robust applications, prioritizing efficiency and user experience. While I'm currently in the early stages of exploring Azure, I'm eager to expand my skill set and leverage cloud technologies to enhance scalability and performance. Known for my proactive approach and dedication to continuous learning, I'm committed to staying abreast of the latest technologies and methodologies to drive innovation and deliver exceptional results.", 1, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5849), null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5849), 1, "Full Stack Developer" });
migrationBuilder.InsertData(
table: "Academics",
columns: new[] { "AcademicId", "CreatedBy", "CreatedDate", "Degree", "DegreeSpecialization", "EndYear", "Institution", "ModifiedBy", "ModifiedDate", "ResumeId", "StartYear" },
values: new object[,]
{
{ 1, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6028), "High School", null, 2007, "Pragati Little Public School", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6029), 1, 2006 },
{ 2, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6032), "Intermediate", "MPC", 2009, "Sri Chaitanya Junior College", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6032), 1, 2007 },
{ 3, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6034), "BTech", "ECE", 2013, "Kakinada Institute of Technology & Science", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6035), 1, 2009 }
});
migrationBuilder.InsertData(
table: "Experiences",
columns: new[] { "ExperienceId", "Company", "CreatedBy", "CreatedDate", "Description", "EndDate", "Location", "ModifiedBy", "ModifiedDate", "ResumeId", "StartDate", "Title" },
values: new object[,]
{
{ 1, "Agility E Services", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6183), "", new DateTime(2016, 4, 25, 0, 0, 0, 0, DateTimeKind.Unspecified), "Hyderabad", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6183), 1, new DateTime(2015, 9, 2, 0, 0, 0, 0, DateTimeKind.Unspecified), "Jr. Software Engineer" },
{ 2, "Agility", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6192), "", new DateTime(2022, 1, 31, 0, 0, 0, 0, DateTimeKind.Unspecified), "Kuwait", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6192), 1, new DateTime(2016, 5, 12, 0, 0, 0, 0, DateTimeKind.Unspecified), "Web Developer" },
{ 3, "Agility", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6195), "", new DateTime(2022, 10, 31, 0, 0, 0, 0, DateTimeKind.Unspecified), "Kuwait", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6195), 1, new DateTime(2022, 2, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "Senior Web Developer" },
{ 4, "Agility E Services", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6198), "", new DateTime(2024, 4, 12, 0, 0, 0, 0, DateTimeKind.Unspecified), "Hyderabad", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6198), 1, new DateTime(2022, 11, 4, 0, 0, 0, 0, DateTimeKind.Unspecified), "Technology Specialist" }
});
migrationBuilder.InsertData(
table: "Hobbies",
columns: new[] { "HobbyId", "CreatedBy", "CreatedDate", "Description", "Icon", "ModifiedBy", "ModifiedDate", "Name", "Order", "ResumeId" },
values: new object[,]
{
{ 1, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5981), "Crafting Professional-Quality Websites with Precision", "fa-square-terminal", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5983), "Web Development", 1, 1 },
{ 2, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5990), "Streamlining and Simplifying Complex Tasks through Automation", "fa-robot", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5990), "Automation", 2, 1 },
{ 3, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5992), "Sharing the knowledge and insights Ive gathered along my journey", "fa-typewriter", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5993), "Blogging", 3, 1 },
{ 4, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5994), "Cultivating Nature's Beauty and Bounty", "fa-seedling", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5995), "Gardening", 4, 1 }
});
migrationBuilder.InsertData(
table: "Projects",
columns: new[] { "ProjectId", "Category", "Challenges", "CreatedBy", "CreatedDate", "Description", "EndDate", "ImagePath", "Impact", "LessonsLearned", "ModifiedBy", "ModifiedDate", "Name", "Responsibilities", "ResumeId", "Roles", "StartDate", "Status", "TechnologiesUsed" },
values: new object[,]
{
{ 1, "Web Development", null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6091), "Business Process Management", null, "", null, null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6091), "Transfora (Business Process Management)", "Developing, Testing, Support", 1, "Coding, Reviewing, Testing", null, null, ".NET, Angular" },
{ 2, "Web Development", null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6099), "Business Process Management", null, "", null, null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6099), "Transfora (Business Process Management)", "Developing, Testing, Support", 1, "Coding, Reviewing, Testing", null, null, ".NET, Angular" },
{ 3, "Web Development", null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6101), "Business Process Management", null, "", null, null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6102), "Transfora (Business Process Management)", "Developing, Testing, Support", 1, "Coding, Reviewing, Testing", null, null, ".NET, Angular" }
});
migrationBuilder.InsertData(
table: "Skills",
columns: new[] { "SkillId", "CreatedBy", "CreatedDate", "Description", "ModifiedBy", "ModifiedDate", "Name", "ProficiencyLevel", "ResumeId" },
values: new object[,]
{
{ 1, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6060), null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6061), "Web Development", 80, 1 },
{ 2, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6064), null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6064), "Web Development", 80, 1 },
{ 3, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6066), null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6066), "Web Development", 80, 1 },
{ 4, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6067), null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6068), "Web Development", 80, 1 },
{ 5, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6069), null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6069), "Web Development", 80, 1 }
});
migrationBuilder.InsertData(
table: "SocialLinks",
columns: new[] { "Id", "BlogUrl", "CreatedBy", "CreatedDate", "Facebook", "GitHub", "Instagram", "Linkedin", "ModifiedBy", "ModifiedDate", "PersonalWebsite", "ResumeId", "Twitter" },
values: new object[] { 1, "https://bangararaju.kottedi.in/blog", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5878), null, "https://github.com/rajukottedi", null, "https://in.linkedin.com/in/bangara-raju-kottedi-299072109", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5878), null, 1, null });
migrationBuilder.InsertData(
table: "ExperienceDetails",
columns: new[] { "Id", "CreatedBy", "CreatedDate", "Details", "ExperienceId", "ModifiedBy", "ModifiedDate", "Order" },
values: new object[,]
{
{ 1, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6219), "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", 1, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6219), 1 },
{ 2, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6222), "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", 1, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6223), 2 },
{ 3, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6224), "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", 2, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6224), 1 },
{ 4, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6226), "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", 2, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6226), 2 },
{ 5, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6227), "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", 3, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6228), 1 },
{ 6, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6230), "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", 3, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6230), 2 },
{ 7, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6231), "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", 4, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6231), 1 },
{ 8, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6232), "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", 4, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6233), 2 }
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3);
migrationBuilder.DeleteData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1);
migrationBuilder.DeleteData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2);
migrationBuilder.DeleteData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3);
migrationBuilder.DeleteData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4);
migrationBuilder.DeleteData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5);
migrationBuilder.DeleteData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6);
migrationBuilder.DeleteData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7);
migrationBuilder.DeleteData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8);
migrationBuilder.DeleteData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3);
migrationBuilder.DeleteData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4);
migrationBuilder.DeleteData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3);
migrationBuilder.DeleteData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3);
migrationBuilder.DeleteData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3);
migrationBuilder.DeleteData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4);
migrationBuilder.DeleteData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5);
migrationBuilder.DeleteData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog");
migrationBuilder.DeleteData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3);
migrationBuilder.DeleteData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4);
migrationBuilder.DeleteData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1);
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,505 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class AddDobToCandidate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "Dob",
table: "Candidates",
type: "datetime(6)",
nullable: true);
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5962), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5962) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5965), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5966) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5968), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5968) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6082), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6082) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "Dob", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5737), null, new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5755) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6175), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6175) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6178), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6179) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6180), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6180) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6181), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6182) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6183), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6183) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6185), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6185) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6186), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6186) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6187), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6188) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6140), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6141) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6148), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6148) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6151), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6151) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6154), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6154) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5930), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5930) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5934), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5935) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5937), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5937) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5938), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5939) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6107), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6104) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6112), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6111) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6115), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6114) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6022), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6022) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6027), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6027) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6030), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6030) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5883), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5884) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5991), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5992) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5995), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5996) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5997), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5998) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5999), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5999) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6000), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6001) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5909), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5910) });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Dob",
table: "Candidates");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6028), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6029) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6032), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6032) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6034), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6035) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6122), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6122) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5678), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5692) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6219), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6219) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6222), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6223) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6224), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6224) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6226), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6226) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6227), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6228) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6230), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6230) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6231), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6231) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6232), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6233) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6183), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6183) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6192), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6192) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6195), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6195) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6198), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6198) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5981), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5983) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5990), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5990) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5992), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5993) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5994), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5995) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6152), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6148) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6157), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6155) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6160), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6158) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6091), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6091) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6099), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6099) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6101), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6102) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5849), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5849) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6060), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6061) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6064), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6064) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6066), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6066) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6067), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6068) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6069), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6069) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5878), new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5878) });
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,495 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class AddDobData : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1988), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1988) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1992), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1992) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1994), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1995) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2101), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2101) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "Dob", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1782), new DateTime(1992, 5, 6, 0, 0, 0, 0, DateTimeKind.Unspecified), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1797) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2184), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2184) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2187), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2188) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2189), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2189) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2190), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2191) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2192), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2192) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2194), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2194) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2195), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2195) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2196), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2197) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2153), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2154) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2159), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2159) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2162), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2163) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2165), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2166) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1959), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1960) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1964), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1965) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1967), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1967) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1969), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1969) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2123), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2120) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2129), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2128) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2132), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2131) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2039), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2040) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2076), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2076) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2078), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2079) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1920), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1920) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2012), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2013) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2016), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2017) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2018), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2018) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2020), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2020) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2021), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2021) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1939), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1940) });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5962), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5962) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5965), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5966) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5968), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5968) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6082), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6082) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "Dob", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5737), null, new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5755) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6175), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6175) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6178), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6179) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6180), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6180) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6181), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6182) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6183), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6183) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6185), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6185) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6186), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6186) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6187), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6188) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6140), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6141) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6148), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6148) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6151), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6151) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6154), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6154) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5930), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5930) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5934), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5935) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5937), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5937) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5938), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5939) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6107), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6104) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6112), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6111) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6115), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6114) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6022), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6022) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6027), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6027) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6030), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6030) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5883), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5884) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5991), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5992) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5995), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5996) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5997), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5998) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5999), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5999) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6000), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(6001) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5909), new DateTime(2024, 4, 26, 0, 46, 33, 130, DateTimeKind.Local).AddTicks(5910) });
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,515 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class messagestatuslogtablechanges : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "Status",
table: "MessageStatusLogs",
type: "int",
nullable: false,
oldClrType: typeof(string),
oldType: "varchar(10)",
oldMaxLength: 10)
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9168), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9168) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9172), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9173) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9175), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9175) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9257), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9257) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(8899), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(8914) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9381), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9381) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9384), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9384) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9386), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9386) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9387), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9387) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9389), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9389) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9391), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9391) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9392), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9393) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9394), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9394) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9346), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9346) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9352), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9352) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9355), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9355) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9357), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9358) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9077), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9078) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9083), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9083) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9085), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9086) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9087), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9087) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9321), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9318) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9327), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9325) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9329), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9328) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9227), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9227) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9234), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9234) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9237), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9237) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9037), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9038) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9196), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9197) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9200), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9200) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9202), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9202) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9203), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9204) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9205), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9205) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9059), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9060) });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Status",
table: "MessageStatusLogs",
type: "varchar(10)",
maxLength: 10,
nullable: false,
oldClrType: typeof(int),
oldType: "int")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1988), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1988) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1992), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1992) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1994), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1995) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2101), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2101) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1782), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1797) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2184), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2184) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2187), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2188) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2189), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2189) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2190), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2191) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2192), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2192) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2194), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2194) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2195), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2195) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2196), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2197) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2153), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2154) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2159), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2159) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2162), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2163) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2165), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2166) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1959), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1960) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1964), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1965) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1967), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1967) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1969), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1969) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2123), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2120) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2129), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2128) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2132), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2131) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2039), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2040) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2076), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2076) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2078), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2079) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1920), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1920) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2012), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2013) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2016), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2017) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2018), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2018) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2020), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2020) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2021), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(2021) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1939), new DateTime(2024, 4, 26, 0, 48, 21, 412, DateTimeKind.Local).AddTicks(1940) });
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,537 @@
using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class MessageStatusLogRemoved : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "MessageStatusLogs");
migrationBuilder.AddColumn<int>(
name: "SentStatus",
table: "Messages",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2287), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2287) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2291), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2291) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2293), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2294) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2404), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2405) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2070), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2085) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2490), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2490) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2493), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2494) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2495), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2496) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2497), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2497) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2498), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2499) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2501), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2501) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2502), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2502) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2503), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2504) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2454), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2454) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2459), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2460) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2463), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2463) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2466), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2466) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2255), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2256) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2260), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2260) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2262), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2262) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2264), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2264) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2426), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2423) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2431), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2429) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2433), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2432) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2375), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2376) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2381), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2381) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2384), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2384) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2214), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2215) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2314), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2315) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2318), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2318) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2319), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2320) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2350), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2351) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2352), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2352) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2237), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2238) });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "SentStatus",
table: "Messages");
migrationBuilder.CreateTable(
name: "MessageStatusLogs",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
MessageId = table.Column<int>(type: "int", nullable: false),
CreatedDate = table.Column<DateTime>(type: "datetime(6)", nullable: false),
Status = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_MessageStatusLogs", x => x.Id);
table.ForeignKey(
name: "FK_MessageStatusLogs_Messages_MessageId",
column: x => x.MessageId,
principalTable: "Messages",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9168), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9168) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9172), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9173) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9175), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9175) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9257), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9257) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(8899), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(8914) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9381), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9381) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9384), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9384) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9386), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9386) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9387), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9387) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9389), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9389) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9391), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9391) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9392), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9393) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9394), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9394) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9346), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9346) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9352), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9352) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9355), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9355) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9357), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9358) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9077), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9078) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9083), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9083) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9085), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9086) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9087), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9087) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9321), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9318) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9327), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9325) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9329), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9328) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9227), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9227) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9234), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9234) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9237), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9237) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9037), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9038) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9196), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9197) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9200), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9200) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9202), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9202) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9203), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9204) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9205), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9205) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9059), new DateTime(2024, 4, 30, 18, 1, 11, 705, DateTimeKind.Local).AddTicks(9060) });
migrationBuilder.CreateIndex(
name: "IX_MessageStatusLogs_MessageId",
table: "MessageStatusLogs",
column: "MessageId");
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,550 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class MessageChanges : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "Email",
table: "Messages",
newName: "ToEmail");
migrationBuilder.AddColumn<int>(
name: "CandidateId",
table: "Messages",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<string>(
name: "FromEmail",
table: "Messages",
type: "varchar(100)",
maxLength: 100,
nullable: false,
defaultValue: "")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4502), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4503) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4505), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4505) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4538), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4538) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4614), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4615) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4300), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4316) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4696), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4696) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4699), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4699) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4700), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4701) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4702), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4702) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4703), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4703) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4705), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4705) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4706), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4707) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4708), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4708) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4663), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4664) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4668), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4668) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4671), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4671) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4673), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4673) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4471), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4471) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4476), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4476) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4478), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4478) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4480), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4480) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4636), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4634) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4641), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4639) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4643), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4642) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4586), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4586) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4590), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4591) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4593), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4593) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4431), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4431) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4559), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4559) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4562), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4562) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4564), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4564) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4565), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4565) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4566), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4567) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4453), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4453) });
migrationBuilder.CreateIndex(
name: "IX_Messages_CandidateId",
table: "Messages",
column: "CandidateId");
migrationBuilder.AddForeignKey(
name: "FK_Messages_Candidates_CandidateId",
table: "Messages",
column: "CandidateId",
principalTable: "Candidates",
principalColumn: "CandidateId",
onDelete: ReferentialAction.Cascade);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Messages_Candidates_CandidateId",
table: "Messages");
migrationBuilder.DropIndex(
name: "IX_Messages_CandidateId",
table: "Messages");
migrationBuilder.DropColumn(
name: "CandidateId",
table: "Messages");
migrationBuilder.DropColumn(
name: "FromEmail",
table: "Messages");
migrationBuilder.RenameColumn(
name: "ToEmail",
table: "Messages",
newName: "Email");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2287), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2287) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2291), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2291) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2293), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2294) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2404), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2405) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2070), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2085) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2490), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2490) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2493), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2494) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2495), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2496) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2497), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2497) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2498), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2499) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2501), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2501) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2502), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2502) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2503), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2504) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2454), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2454) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2459), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2460) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2463), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2463) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2466), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2466) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2255), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2256) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2260), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2260) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2262), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2262) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2264), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2264) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2426), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2423) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2431), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2429) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2433), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2432) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2375), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2376) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2381), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2381) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2384), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2384) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2214), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2215) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2314), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2315) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2318), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2318) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2319), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2320) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2350), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2351) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2352), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2352) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2237), new DateTime(2024, 4, 30, 20, 0, 26, 531, DateTimeKind.Local).AddTicks(2238) });
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,547 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class ProjectAndPostChanges : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Category",
table: "Projects");
migrationBuilder.DropColumn(
name: "Category",
table: "Posts");
migrationBuilder.AddColumn<string>(
name: "Categories",
table: "Projects",
type: "varchar(200)",
maxLength: 200,
nullable: false,
defaultValue: "")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Categories",
table: "Posts",
type: "varchar(200)",
maxLength: 200,
nullable: false,
defaultValue: "")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6162), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6162) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6166), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6166) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6168), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6168) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6248), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6248) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(5877), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(5895) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6333), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6333) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6336), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6337) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6338), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6338) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6339), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6340) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6341), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6341) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6343), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6343) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6344), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6345) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6346), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6346) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6297), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6297) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6302), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6302) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6305), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6305) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6307), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6308) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6128), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6128) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6134), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6135) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6137), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6137) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6139), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6139) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6269), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6266) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6274), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6273) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6277), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6276) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6218), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6219) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6224), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6225) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6227), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6227) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6082), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6082) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6187), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6187) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6191), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6191) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6193), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6193) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6194), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6195) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6196), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6196) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6106), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6106) });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Categories",
table: "Projects");
migrationBuilder.DropColumn(
name: "Categories",
table: "Posts");
migrationBuilder.AddColumn<string>(
name: "Category",
table: "Projects",
type: "varchar(100)",
maxLength: 100,
nullable: false,
defaultValue: "")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Category",
table: "Posts",
type: "varchar(100)",
maxLength: 100,
nullable: false,
defaultValue: "")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4502), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4503) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4505), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4505) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4538), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4538) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4614), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4615) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4300), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4316) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4696), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4696) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4699), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4699) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4700), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4701) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4702), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4702) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4703), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4703) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4705), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4705) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4706), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4707) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4708), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4708) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4663), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4664) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4668), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4668) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4671), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4671) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4673), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4673) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4471), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4471) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4476), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4476) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4478), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4478) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4480), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4480) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "Category", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4636), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4634) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "Category", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4641), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4639) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "Category", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4643), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4642) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "Category", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4586), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4586) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "Category", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4590), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4591) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "Category", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4593), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4593) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4431), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4431) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4559), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4559) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4562), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4562) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4564), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4564) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4565), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4565) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4566), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4567) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4453), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4453) });
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,495 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class categorycolumnchanges : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3707), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3707) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3710), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3711) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3712), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3713) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3796), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3796) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3501), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3517) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3896), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3896) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3899), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3899) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3900), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3901) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3902), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3902) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3903), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3904) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3905), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3906) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3907), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3907) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3908), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3909) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3858), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3859) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3863), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3864) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3866), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3867) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3869), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3869) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3673), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3673) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3678), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3678) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3680), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3680) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3682), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3682) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "[\"Welcome\"]", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3816), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3812) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "[\"Welcome\"]", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3821), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3819) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "[\"Welcome\"]", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3824), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3823) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "[\"Web Development\"]", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3769), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3769) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "[\"Web Development\"]", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3774), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3774) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "[\"Web Development\"]", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3777), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3777) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3630), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3630) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3735), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3736) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3738), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3739) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3740), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3741) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3742), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3742) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3743), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3743) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3652), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3652) });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6162), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6162) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6166), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6166) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6168), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6168) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6248), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6248) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(5877), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(5895) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6333), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6333) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6336), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6337) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6338), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6338) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6339), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6340) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6341), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6341) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6343), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6343) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6344), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6345) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6346), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6346) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6297), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6297) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6302), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6302) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6305), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6305) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6307), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6308) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6128), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6128) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6134), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6135) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6137), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6137) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6139), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6139) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6269), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6266) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6274), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6273) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6277), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6276) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6218), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6219) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6224), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6225) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6227), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6227) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6082), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6082) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6187), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6187) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6191), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6191) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6193), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6193) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6194), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6195) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6196), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6196) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6106), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6106) });
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,495 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class Dataupdate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8945), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8945) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8948), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8949) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8950), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8951) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9023), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9023) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8726), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8742) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9096), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9096) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9099), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9100) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9101), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9101) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9102), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9102) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9103), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9103) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9105), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9105) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9106), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9106) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9107), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9108) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9068), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9068) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9072), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9073) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9075), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9075) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9077), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9077) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "Description", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8912), "Crafting Professional-Quality Websites with Precision.", new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8913) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "Description", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8917), "Streamlining and Simplifying Complex Tasks through Automation.", new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8918) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "Description", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8919), "Sharing the knowledge and insights Ive gathered along my journey.", new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8919) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "Description", "Icon", "ModifiedDate", "Name" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8921), "Exploring, embracing, and leveraging the latest advancements.", "fa-lightbulb-gear", new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8921), "Technology" });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9042), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9038) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9047), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9045) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9049), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9048) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ImagePath", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8997), "bpm.jpg", new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8997) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "Categories", "CreatedDate", "ImagePath", "ModifiedDate", "Name" },
values: new object[] { "[\"Web Design\"]", new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9003), "hcm.jpg", new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9003), "Human Captial Management" });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ImagePath", "ModifiedDate", "Responsibilities", "Roles" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9006), "hms.png", new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9006), "Hosting, Integrating, Monitoring", "Integration, Monitor" });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8874), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8874) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8968), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8968) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8971), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8972) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8973), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8973) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8974), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8974) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8975), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8976) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8894), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8895) });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3707), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3707) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3710), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3711) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3712), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3713) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3796), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3796) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3501), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3517) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3896), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3896) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3899), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3899) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3900), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3901) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3902), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3902) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3903), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3904) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3905), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3906) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3907), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3907) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3908), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3909) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3858), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3859) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3863), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3864) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3866), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3867) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3869), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3869) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "Description", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3673), "Crafting Professional-Quality Websites with Precision", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3673) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "Description", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3678), "Streamlining and Simplifying Complex Tasks through Automation", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3678) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "Description", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3680), "Sharing the knowledge and insights Ive gathered along my journey", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3680) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "Description", "Icon", "ModifiedDate", "Name" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3682), "Cultivating Nature's Beauty and Bounty", "fa-seedling", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3682), "Gardening" });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3816), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3812) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3821), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3819) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3824), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3823) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ImagePath", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3769), "", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3769) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "Categories", "CreatedDate", "ImagePath", "ModifiedDate", "Name" },
values: new object[] { "[\"Web Development\"]", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3774), "", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3774), "Transfora (Business Process Management)" });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ImagePath", "ModifiedDate", "Responsibilities", "Roles" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3777), "", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3777), "Developing, Testing, Support", "Coding, Reviewing, Testing" });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3630), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3630) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3735), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3736) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3738), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3739) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3740), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3741) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3742), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3742) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3743), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3743) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3652), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3652) });
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,515 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class CreateCacheTable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Cache",
columns: table => new
{
Id = table.Column<string>(type: "varchar(449)", maxLength: 449, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Value = table.Column<byte[]>(type: "longblob", nullable: false),
ExpiresAtTime = table.Column<DateTime>(type: "datetime(6)", nullable: false),
SlidingExpirationInSeconds = table.Column<long>(type: "bigint", nullable: true),
AbsoluteExpiration = table.Column<DateTime>(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Cache", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7668), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7668) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7674), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7674) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7677), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7677) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7790), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7791) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7275), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7304) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7944), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7944) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7948), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7949) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7950), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7951) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7952), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7953) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7954), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7955) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7957), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7957) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7958), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7959) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(8011), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(8011) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7903), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7904) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7908), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7909) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7912), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7913) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7915), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7916) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7625), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7625) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7633), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7633) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7635), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7636) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7638), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7638) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7820), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7817) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7826), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7824) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7830), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7828) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7754), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7755) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7761), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7762) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7765), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7765) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7563), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7564) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7705), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7706) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7710), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7711) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7712), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7713) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7714), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7715) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7716), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7717) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7592), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7593) });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Cache");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8945), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8945) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8948), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8949) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8950), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8951) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9023), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9023) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8726), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8742) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9096), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9096) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9099), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9100) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9101), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9101) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9102), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9102) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9103), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9103) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9105), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9105) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9106), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9106) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9107), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9108) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9068), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9068) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9072), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9073) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9075), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9075) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9077), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9077) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8912), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8913) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8917), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8918) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8919), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8919) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8921), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8921) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9042), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9038) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9047), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9045) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9049), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9048) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8997), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8997) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9003), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9003) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9006), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9006) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8874), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8874) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8968), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8968) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8971), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8972) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8973), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8973) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8974), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8974) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8975), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8976) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8894), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8895) });
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,517 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class MessageContentMaxLength : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Content",
table: "Messages",
type: "longtext",
nullable: false,
oldClrType: typeof(string),
oldType: "varchar(500)",
oldMaxLength: 500)
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(5183), new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(5185) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(6375), new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(6376) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(6564), new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(6565) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(8487), new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(8489) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 890, DateTimeKind.Local).AddTicks(2043), new DateTime(2025, 10, 8, 13, 51, 15, 890, DateTimeKind.Local).AddTicks(2090) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(9986), new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(9994) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(902), new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(903) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(908), new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(909) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(912), new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(913) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(916), new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(917) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(931), new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(932) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(936), new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(937) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(940), new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(941) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(2643), new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(2652) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(4851), new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(4852) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(4859), new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(4861) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(4866), new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(4867) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(447), new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(450) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(1567), new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(1568) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(1680), new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(1681) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(1686), new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(1686) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 895, DateTimeKind.Local).AddTicks(4722), new DateTime(2025, 10, 8, 13, 51, 15, 895, DateTimeKind.Local).AddTicks(3517) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 895, DateTimeKind.Local).AddTicks(5740), new DateTime(2025, 10, 8, 13, 51, 15, 895, DateTimeKind.Local).AddTicks(5735) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 895, DateTimeKind.Local).AddTicks(5747), new DateTime(2025, 10, 8, 13, 51, 15, 895, DateTimeKind.Local).AddTicks(5744) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(4258), new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(4259) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(6406), new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(6411) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(6419), new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(6420) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 892, DateTimeKind.Local).AddTicks(2802), new DateTime(2025, 10, 8, 13, 51, 15, 892, DateTimeKind.Local).AddTicks(2819) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(9417), new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(9419) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(241), new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(242) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(246), new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(246) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(249), new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(250) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(253), new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(254) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 892, DateTimeKind.Local).AddTicks(6490), new DateTime(2025, 10, 8, 13, 51, 15, 892, DateTimeKind.Local).AddTicks(6498) });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Content",
table: "Messages",
type: "varchar(500)",
maxLength: 500,
nullable: false,
oldClrType: typeof(string),
oldType: "longtext")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7668), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7668) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7674), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7674) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7677), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7677) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7790), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7791) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7275), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7304) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7944), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7944) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7948), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7949) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7950), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7951) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7952), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7953) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7954), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7955) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7957), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7957) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7958), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7959) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(8011), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(8011) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7903), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7904) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7908), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7909) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7912), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7913) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7915), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7916) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7625), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7625) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7633), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7633) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7635), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7636) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7638), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7638) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7820), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7817) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7826), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7824) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7830), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7828) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7754), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7755) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7761), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7762) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7765), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7765) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7563), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7564) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7705), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7706) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7710), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7711) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7712), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7713) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7714), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7715) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7716), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7717) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7592), new DateTime(2025, 10, 1, 18, 35, 50, 567, DateTimeKind.Local).AddTicks(7593) });
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,495 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class User_RefreshTokens : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(4652), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(4653) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(5447), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(5448) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(5558), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(5559) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(3195), new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(3196) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 690, DateTimeKind.Local).AddTicks(9239), new DateTime(2025, 10, 28, 11, 34, 41, 690, DateTimeKind.Local).AddTicks(9275) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(3656), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(3657) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4150), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4150) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4152), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4153) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4154), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4155) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4156), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4156) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4161), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4161) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4163), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4163) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4164), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4165) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(375), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(377) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(1466), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(1467) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(1471), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(1472) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(1475), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(1475) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(2045), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(2046) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(2725), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(2725) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(2728), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(2729) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(2730), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(2731) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(7094), new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(6266) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(7426), new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(7423) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(7429), new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(7428) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(911), new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(912) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(2038), new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(2039) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(2042), new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(2043) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 691, DateTimeKind.Local).AddTicks(7935), new DateTime(2025, 10, 28, 11, 34, 41, 691, DateTimeKind.Local).AddTicks(7944) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(7751), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(7757) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(8313), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(8314) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(8316), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(8317) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(8318), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(8318) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(8320), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(8320) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 691, DateTimeKind.Local).AddTicks(9726), new DateTime(2025, 10, 28, 11, 34, 41, 691, DateTimeKind.Local).AddTicks(9728) });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(5183), new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(5185) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(6375), new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(6376) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(6564), new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(6565) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(8487), new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(8489) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 890, DateTimeKind.Local).AddTicks(2043), new DateTime(2025, 10, 8, 13, 51, 15, 890, DateTimeKind.Local).AddTicks(2090) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(9986), new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(9994) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(902), new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(903) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(908), new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(909) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(912), new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(913) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(916), new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(917) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(931), new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(932) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(936), new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(937) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(940), new DateTime(2025, 10, 8, 13, 51, 15, 897, DateTimeKind.Local).AddTicks(941) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(2643), new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(2652) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(4851), new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(4852) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(4859), new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(4861) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(4866), new DateTime(2025, 10, 8, 13, 51, 15, 896, DateTimeKind.Local).AddTicks(4867) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(447), new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(450) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(1567), new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(1568) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(1680), new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(1681) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(1686), new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(1686) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 895, DateTimeKind.Local).AddTicks(4722), new DateTime(2025, 10, 8, 13, 51, 15, 895, DateTimeKind.Local).AddTicks(3517) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 895, DateTimeKind.Local).AddTicks(5740), new DateTime(2025, 10, 8, 13, 51, 15, 895, DateTimeKind.Local).AddTicks(5735) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 895, DateTimeKind.Local).AddTicks(5747), new DateTime(2025, 10, 8, 13, 51, 15, 895, DateTimeKind.Local).AddTicks(5744) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(4258), new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(4259) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(6406), new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(6411) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(6419), new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(6420) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 892, DateTimeKind.Local).AddTicks(2802), new DateTime(2025, 10, 8, 13, 51, 15, 892, DateTimeKind.Local).AddTicks(2819) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(9417), new DateTime(2025, 10, 8, 13, 51, 15, 893, DateTimeKind.Local).AddTicks(9419) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(241), new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(242) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(246), new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(246) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(249), new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(250) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(253), new DateTime(2025, 10, 8, 13, 51, 15, 894, DateTimeKind.Local).AddTicks(254) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 8, 13, 51, 15, 892, DateTimeKind.Local).AddTicks(6490), new DateTime(2025, 10, 8, 13, 51, 15, 892, DateTimeKind.Local).AddTicks(6498) });
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,561 @@
using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class User_RefreshTokens_Rerun : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Users",
columns: table => new
{
UserId = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Username = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Email = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
CreatedAt = table.Column<DateTime>(type: "datetime(6)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Users", x => x.UserId);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "RefreshTokens",
columns: table => new
{
TokenId = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
UserId = table.Column<int>(type: "int", nullable: false),
Token = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
JwtId = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
ExpiryDate = table.Column<DateTime>(type: "datetime(6)", nullable: false),
CreatedAt = table.Column<DateTime>(type: "datetime(6)", nullable: false),
Revoked = table.Column<bool>(type: "tinyint(1)", nullable: false),
ReplacedByToken = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
DeviceInfo = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4")
},
constraints: table =>
{
table.PrimaryKey("PK_RefreshTokens", x => x.TokenId);
table.ForeignKey(
name: "FK_RefreshTokens_Users_UserId",
column: x => x.UserId,
principalTable: "Users",
principalColumn: "UserId",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(8319), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(8321) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(8990), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(8991) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(9095), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(9096) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(6331), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(6332) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 597, DateTimeKind.Local).AddTicks(6457), new DateTime(2025, 10, 28, 11, 53, 55, 597, DateTimeKind.Local).AddTicks(6491) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6348), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6349) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6828), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6829) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6831), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6832) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6834), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6834) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6836), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6836) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6842), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6842) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6844), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6844) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6846), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6846) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(3165), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(3167) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(4192), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(4193) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(4197), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(4197) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(4201), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(4201) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(5682), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(5683) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(6359), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(6360) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(6363), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(6363) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(6365), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(6366) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(87), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(9329) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(390), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(387) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(394), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(392) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(4003), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(4005) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(5048), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(5049) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(5120), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(5120) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(1505), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(1512) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(784), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(787) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(1478), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(1481) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(1484), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(1484) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(1486), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(1486) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(1488), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(1488) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(3502), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(3506) });
migrationBuilder.InsertData(
table: "Users",
columns: new[] { "UserId", "CreatedAt", "Email", "Username" },
values: new object[] { 1, new DateTime(2025, 10, 28, 6, 23, 55, 601, DateTimeKind.Utc).AddTicks(8545), "bangararaju.kottedi@gmail.com", "rajukottedi" });
migrationBuilder.CreateIndex(
name: "IX_RefreshTokens_UserId",
table: "RefreshTokens",
column: "UserId");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "RefreshTokens");
migrationBuilder.DropTable(
name: "Users");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(4652), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(4653) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(5447), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(5448) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(5558), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(5559) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(3195), new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(3196) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 690, DateTimeKind.Local).AddTicks(9239), new DateTime(2025, 10, 28, 11, 34, 41, 690, DateTimeKind.Local).AddTicks(9275) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(3656), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(3657) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4150), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4150) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4152), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4153) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4154), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4155) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4156), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4156) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4161), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4161) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4163), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4163) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4164), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(4165) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(375), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(377) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(1466), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(1467) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(1471), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(1472) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(1475), new DateTime(2025, 10, 28, 11, 34, 41, 694, DateTimeKind.Local).AddTicks(1475) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(2045), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(2046) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(2725), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(2725) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(2728), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(2729) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(2730), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(2731) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(7094), new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(6266) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(7426), new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(7423) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(7429), new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(7428) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(911), new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(912) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(2038), new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(2039) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(2042), new DateTime(2025, 10, 28, 11, 34, 41, 693, DateTimeKind.Local).AddTicks(2043) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 691, DateTimeKind.Local).AddTicks(7935), new DateTime(2025, 10, 28, 11, 34, 41, 691, DateTimeKind.Local).AddTicks(7944) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(7751), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(7757) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(8313), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(8314) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(8316), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(8317) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(8318), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(8318) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(8320), new DateTime(2025, 10, 28, 11, 34, 41, 692, DateTimeKind.Local).AddTicks(8320) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 34, 41, 691, DateTimeKind.Local).AddTicks(9726), new DateTime(2025, 10, 28, 11, 34, 41, 691, DateTimeKind.Local).AddTicks(9728) });
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,509 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class User_RefreshTokens_Update : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(5159), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(5160) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(5783), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(5784) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(5866), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(5866) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(1546), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(1547) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 779, DateTimeKind.Local).AddTicks(2626), new DateTime(2025, 10, 29, 7, 27, 45, 779, DateTimeKind.Local).AddTicks(2659) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(394), new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(395) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(804), new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(805) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(807), new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(807) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(808), new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(808) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(810), new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(810) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(815), new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(815) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(816), new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(817) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(818), new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(818) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(7573), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(7579) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(8490), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(8490) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(8494), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(8494) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(8497), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(8497) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(2948), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(2949) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(3600), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(3601) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(3603), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(3604) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(3605), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(3606) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(4486), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(3878) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(4730), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(4727) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(4733), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(4731) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(9719), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(9721) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(628), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(629) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(632), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(633) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 779, DateTimeKind.Local).AddTicks(9805), new DateTime(2025, 10, 29, 7, 27, 45, 779, DateTimeKind.Local).AddTicks(9812) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7273), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7274) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7731), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7731) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7733), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7733) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7735), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7735) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7736), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7737) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(1156), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(1157) });
migrationBuilder.UpdateData(
table: "Users",
keyColumn: "UserId",
keyValue: 1,
column: "CreatedAt",
value: new DateTime(2025, 10, 29, 1, 57, 45, 782, DateTimeKind.Utc).AddTicks(1816));
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(8319), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(8321) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(8990), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(8991) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(9095), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(9096) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(6331), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(6332) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 597, DateTimeKind.Local).AddTicks(6457), new DateTime(2025, 10, 28, 11, 53, 55, 597, DateTimeKind.Local).AddTicks(6491) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6348), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6349) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6828), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6829) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6831), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6832) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6834), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6834) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6836), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6836) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6842), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6842) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6844), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6844) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6846), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(6846) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(3165), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(3167) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(4192), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(4193) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(4197), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(4197) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(4201), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(4201) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(5682), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(5683) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(6359), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(6360) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(6363), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(6363) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(6365), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(6366) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(87), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(9329) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(390), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(387) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(394), new DateTime(2025, 10, 28, 11, 53, 55, 601, DateTimeKind.Local).AddTicks(392) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(4003), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(4005) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(5048), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(5049) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(5120), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(5120) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(1505), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(1512) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(784), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(787) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(1478), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(1481) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(1484), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(1484) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(1486), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(1486) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(1488), new DateTime(2025, 10, 28, 11, 53, 55, 600, DateTimeKind.Local).AddTicks(1488) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(3502), new DateTime(2025, 10, 28, 11, 53, 55, 599, DateTimeKind.Local).AddTicks(3506) });
migrationBuilder.UpdateData(
table: "Users",
keyColumn: "UserId",
keyValue: 1,
column: "CreatedAt",
value: new DateTime(2025, 10, 28, 6, 23, 55, 601, DateTimeKind.Utc).AddTicks(8545));
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,537 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class updaterefreshtoken : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "ReplacedByToken",
table: "RefreshTokens",
type: "longtext",
nullable: true,
oldClrType: typeof(string),
oldType: "longtext")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(1251), new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(1252) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(2024), new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(2024) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(2184), new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(2184) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(9145), new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(9146) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 299, DateTimeKind.Local).AddTicks(5480), new DateTime(2025, 11, 13, 19, 20, 39, 299, DateTimeKind.Local).AddTicks(5515) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(462), new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(464) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(988), new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(988) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(991), new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(991) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(993), new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(993) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(994), new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(995) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(1004), new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(1005) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(1006), new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(1007) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(1008), new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(1009) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(6786), new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(6793) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(7965), new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(7966) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(7970), new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(7971) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(8081), new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(8081) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(8352), new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(8353) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(9201), new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(9201) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(9204), new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(9205) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(9207), new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(9208) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(2910), new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(2155) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(3231), new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(3229) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(3236), new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(3233) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(6787), new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(6789) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(7979), new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(7980) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(7983), new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(7984) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(4308), new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(4316) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(3819), new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(3820) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(4333), new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(4333) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(4335), new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(4336) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(4337), new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(4338) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(4339), new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(4340) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(6144), new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(6145) });
migrationBuilder.UpdateData(
table: "Users",
keyColumn: "UserId",
keyValue: 1,
column: "CreatedAt",
value: new DateTime(2025, 11, 13, 13, 50, 39, 303, DateTimeKind.Utc).AddTicks(2327));
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "RefreshTokens",
keyColumn: "ReplacedByToken",
keyValue: null,
column: "ReplacedByToken",
value: "");
migrationBuilder.AlterColumn<string>(
name: "ReplacedByToken",
table: "RefreshTokens",
type: "longtext",
nullable: false,
oldClrType: typeof(string),
oldType: "longtext",
oldNullable: true)
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(5159), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(5160) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(5783), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(5784) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(5866), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(5866) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(1546), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(1547) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 779, DateTimeKind.Local).AddTicks(2626), new DateTime(2025, 10, 29, 7, 27, 45, 779, DateTimeKind.Local).AddTicks(2659) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(394), new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(395) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(804), new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(805) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(807), new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(807) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(808), new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(808) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(810), new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(810) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(815), new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(815) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(816), new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(817) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(818), new DateTime(2025, 10, 29, 7, 27, 45, 782, DateTimeKind.Local).AddTicks(818) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(7573), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(7579) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(8490), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(8490) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(8494), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(8494) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(8497), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(8497) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(2948), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(2949) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(3600), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(3601) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(3603), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(3604) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(3605), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(3606) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(4486), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(3878) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(4730), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(4727) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(4733), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(4731) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(9719), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(9721) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(628), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(629) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(632), new DateTime(2025, 10, 29, 7, 27, 45, 781, DateTimeKind.Local).AddTicks(633) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 779, DateTimeKind.Local).AddTicks(9805), new DateTime(2025, 10, 29, 7, 27, 45, 779, DateTimeKind.Local).AddTicks(9812) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7273), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7274) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7731), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7731) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7733), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7733) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7735), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7735) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7736), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(7737) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(1156), new DateTime(2025, 10, 29, 7, 27, 45, 780, DateTimeKind.Local).AddTicks(1157) });
migrationBuilder.UpdateData(
table: "Users",
keyColumn: "UserId",
keyValue: 1,
column: "CreatedAt",
value: new DateTime(2025, 10, 29, 1, 57, 45, 782, DateTimeKind.Utc).AddTicks(1816));
}
}
}
File diff suppressed because it is too large Load Diff
+9
View File
@@ -0,0 +1,9 @@
namespace PortBlog.API.Models
{
public class AboutDto
{
public string About { get; set; } = string.Empty;
public ICollection<HobbyDto> Hobbies { get; set; } = new List<HobbyDto>();
}
}
+19
View File
@@ -0,0 +1,19 @@
namespace PortBlog.API.Models
{
public class AcademicDto
{
public int? AcademicId { get; set; }
public string Institution { get; set; } = string.Empty;
public int StartYear { get; set; }
public int EndYear { get; set; }
public string Period { get; set; } = string.Empty;
public string Degree { get; set; } = string.Empty;
public string? DegreeSpecialization { get; set; }
}
}
+15
View File
@@ -0,0 +1,15 @@
using PortBlog.API.Entities;
namespace PortBlog.API.Models
{
public class BlogDto
{
public string Name { get; set; } = string.Empty;
public string? Description { get; set; } = string.Empty;
public string BlogUrl { get; set; } = string.Empty;
public ICollection<PostDto> Posts { get; set; } = new List<PostDto>();
}
}
+26
View File
@@ -0,0 +1,26 @@
namespace PortBlog.API.Models
{
public class CandidateDto
{
public int CandidateId { get; set; }
public string FirstName { get; set; } = string.Empty;
public string LastName { get; set; } = string.Empty;
public string DisplayName {
get
{
return FirstName + " " + LastName;
}
}
public string Dob { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
public string Phone { get; set; } = string.Empty;
public string? Address { get; set; }
}
}
@@ -0,0 +1,11 @@
namespace PortBlog.API.Models
{
public class CandidateSocialLinksDto
{
public string Title { get; set; } = string.Empty;
public CandidateDto? Candidate { get; set; }
public SocialLinksDto? SocialLinks { get; set; }
}
}
+17
View File
@@ -0,0 +1,17 @@
namespace PortBlog.API.Models
{
public class CertificationDto
{
public int? CertificationId { get; set; }
public string CertificationName { get; set; } = string.Empty;
public string IssuingOrganization { get; set; } = string.Empty;
public string? CertificationLink { get; set; }
public DateTime IssueDate { get; set; }
public DateTime? ExpiryDate { get; set; }
}
}
+78
View File
@@ -0,0 +1,78 @@
namespace PortBlog.API.Models
{
/// <summary>
/// CV details of the candidate
/// </summary>
public class CvDto
{
/// <summary>
/// The id of the cv
/// </summary>
public int ResumeId { get; set; }
/// <summary>
/// The title of the candidate
/// </summary>
public string Title { get; set; } = string.Empty;
/// <summary>
/// A brief description about the candidate
/// </summary>
public string About { get; set; } = string.Empty;
/// <summary>
/// Candidate's information
/// </summary>
public CandidateDto? Candidate { get; set; }
/// <summary>
/// Candidate's Social Media links
/// </summary>
public SocialLinksDto? SocialLinks { get; set; }
/// <summary>
/// Candidate's blog posts
/// </summary>
public ICollection<PostDto> Posts
{
get
{
return SocialLinks?.Posts ?? new List<PostDto>();
}
}
/// <summary>
/// The education details of the candidate
/// </summary>
public ICollection<AcademicDto> Academics { get; set; } = new List<AcademicDto>();
/// <summary>
/// The skills of the candidate
/// </summary>
public ICollection<SkillDto> Skills { get; set; } = new List<SkillDto>();
/// <summary>
/// The work experiences of the candidate
/// </summary>
public ICollection<ExperienceDto> Experiences { get; set; } = new List<ExperienceDto>();
/// <summary>
/// The certifications done by the candidate
/// </summary>
public ICollection<CertificationDto> Certifications { get; set; } = new List<CertificationDto>();
/// <summary>
/// The hobbies of the candidate
/// </summary>
public ICollection<HobbyDto> Hobbies { get; set; } = new List<HobbyDto>();
/// <summary>
/// The projects of the candidate
/// </summary>
public ICollection<ProjectDto> Projects { get; set; } = new List<ProjectDto>();
/// <summary>
/// The project categories of all the projects
/// </summary>
public ICollection<string> ProjectsCategories
{
get
{
var projectCategories = new List<string>();
foreach (var project in Projects)
{
projectCategories.AddRange(project.Categories);
}
return projectCategories.Distinct().ToList();
}
}
}
}
@@ -0,0 +1,11 @@
namespace PortBlog.API.Models
{
public class ExperienceDetailsDto
{
public int? Id { get; set; }
public string Details { get; set; } = string.Empty;
public int Order { get; set; } = 0;
}
}
+44
View File
@@ -0,0 +1,44 @@
using PortBlog.API.Entities;
namespace PortBlog.API.Models
{
public class ExperienceDto
{
public int? ExperienceId { get; set; }
public string Title { get; set; } = string.Empty;
public string? Description { get; set; }
public string Company { get; set; } = string.Empty;
public string? Location { get; set; }
/// <summary>
/// Full start date for write operations (e.g. "2020-01-01").
/// </summary>
public DateTime? StartDate { get; set; }
/// <summary>
/// Full end date for write operations. Null means "Present".
/// </summary>
public DateTime? EndDate { get; set; }
/// <summary>
/// Read-only display value: start year (e.g. "2020"). Mapped from entity on read.
/// </summary>
public string StartYear { get; set; } = string.Empty;
/// <summary>
/// Read-only display value: end year (e.g. "2023" or "Present"). Mapped from entity on read.
/// </summary>
public string EndYear { get; set; } = string.Empty;
/// <summary>
/// Read-only display value: formatted period (e.g. "Jan 2020 - Mar 2023"). Mapped from entity on read.
/// </summary>
public string Period { get; set; } = string.Empty;
public ICollection<ExperienceDetailsDto> Details { get; set; } = new List<ExperienceDetailsDto>();
}
}
+13
View File
@@ -0,0 +1,13 @@
namespace PortBlog.API.Models
{
public class HobbyDto
{
public int? HobbyId { get; set; }
public string Name { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string? Icon { get; set; }
}
}
+17
View File
@@ -0,0 +1,17 @@
namespace PortBlog.API.Models
{
public class MailSettingsDto
{
public string Host { get; set; } = string.Empty;
public int Port { get; set; }
public string Email { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
public bool Enable { get; set; } = false;
public string Domain { get; set; } = string.Empty;
}
}
+20
View File
@@ -0,0 +1,20 @@
using System.ComponentModel.DataAnnotations;
namespace PortBlog.API.Models
{
public class MessageDto
{
[Required(ErrorMessage = "You should provide a name.")]
[MaxLength(50)]
public string Name { get; set; } = string.Empty;
[Required(ErrorMessage = "You should provide an email.")]
[EmailAddress]
[MaxLength(100)]
public string Email { get; set; } = string.Empty;
[Required(ErrorMessage = "Message cannot be empty.")]
[MaxLength(500)]
public string Content { get; set; } = string.Empty;
}
}
+24
View File
@@ -0,0 +1,24 @@
using System.ComponentModel.DataAnnotations;
namespace PortBlog.API.Models
{
public class MessageSendDto
{
public string Name { get; set; } = string.Empty;
public string FromEmail { get; set; } = string.Empty;
public string ToEmail { get; set; } = string.Empty;
public string Subject { get; set; } = string.Empty;
public string Content { get; set; } = string.Empty;
public int SentStatus { get; set; } = 0;
public DateTime CreatedDate { get; set; } = DateTime.Now;
public int CandidateId { get; set; }
}
}
+9
View File
@@ -0,0 +1,9 @@
namespace PortBlog.API.Models
{
public class OtpMailModel
{
public string Name { get; set; } = string.Empty;
public string OtpCode { get; set; } = string.Empty;
public int ExpiryMinutes { get; set; } = 3;
}
}
+31
View File
@@ -0,0 +1,31 @@
namespace PortBlog.API.Models
{
public class PostCreationDto
{
public int PostId { get; set; }
public string Slug { get; set; } = string.Empty;
public string Title { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string[] Categories { get; set; } = [];
public string PostUrl { get; set; } = string.Empty;
public int? Likes { get; set; } = 0;
public int? Views { get; set; } = 0;
public int? Comments { get; set; } = 0;
public string? Image { get; set; }
public string? CreatedDate { get; set; }
public string? ModifiedDate { get; set; }
public string BlogUrl { get; set;} = string.Empty;
}
}
+29
View File
@@ -0,0 +1,29 @@
namespace PortBlog.API.Models
{
public class PostDto
{
public int PostId { get; set; }
public string Slug { get; set; } = string.Empty;
public string Title { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string[] Categories { get; set; } = [];
public string PostUrl { get; set; } = string.Empty;
public int Likes { get; set; } = 0;
public int Views { get; set; } = 0;
public int Comments { get; set; } = 0;
public string? Image { get; set; }
public string? CreatedDate { get; set; }
public string? ModifiedDate { get; set; }
}
}
+13
View File
@@ -0,0 +1,13 @@
namespace PortBlog.API.Models
{
public class PostMetricsDto
{
public int Likes { get; set; } = 0;
public int Views { get; set; } = 0;
public int Comments { get; set; } = 0;
public bool PostExists { get; set; } = false;
}
}
+39
View File
@@ -0,0 +1,39 @@
using System.ComponentModel.DataAnnotations;
namespace PortBlog.API.Models
{
public class ProjectDto
{
public int? ProjectId { get; set; }
public string Name { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string[] Categories { get; set; } = [];
//public ICollection<string> CategoryList { get; set; } = new List<string>();
public ICollection<string> Roles { get; set; } = new List<string>();
public string? Challenges { get; set; } = string.Empty;
public string? LessonsLearned { get; set; } = string.Empty;
public string? Impact { get; set; } = string.Empty;
public ICollection<string> Responsibilities { get; set; } = new List<string>();
public ICollection<string> TechnologiesUsed { get; set; } = new List<string>();
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public string? ImagePath { get; set; }
public string? Status { get; set; } = string.Empty;
public int ResumeId { get; set; }
}
}
+20
View File
@@ -0,0 +1,20 @@
namespace PortBlog.API.Models
{
public class ProjectsDto
{
public ICollection<ProjectDto> Projects { get; set; } = new List<ProjectDto>();
public ICollection<string> ProjectsCategories
{
get
{
var projectCategories = new List<string>();
foreach(var project in Projects)
{
projectCategories.AddRange(project.Categories);
}
return projectCategories.Distinct().ToList();
}
}
}
}
+21
View File
@@ -0,0 +1,21 @@
namespace PortBlog.API.Models
{
/// <summary>
/// CV details of the candidate
/// </summary>
public class ResumeDto
{
/// <summary>
/// The education details of the candidate
/// </summary>
public ICollection<AcademicDto> Academics { get; set; } = new List<AcademicDto>();
/// <summary>
/// The skills of the candidate
/// </summary>
public ICollection<SkillDto> Skills { get; set; } = new List<SkillDto>();
/// <summary>
/// The work experiences of the candidate
/// </summary>
public ICollection<ExperienceDto> Experiences { get; set; } = new List<ExperienceDto>();
}
}
+13
View File
@@ -0,0 +1,13 @@
namespace PortBlog.API.Models
{
public class SkillDto
{
public int? SkillId { get; set; }
public string Name { get; set; } = string.Empty;
public string? Description { get; set; }
public int ProficiencyLevel { get; set; }
}
}
+23
View File
@@ -0,0 +1,23 @@
namespace PortBlog.API.Models
{
public class SocialLinksDto
{
public int Id { get; set; }
public string? GitHub { get; set; }
public string Linkedin { get; set; } = string.Empty;
public string? Instagram { get; set; }
public string? Facebook { get; set; }
public string? Twitter { get; set; }
public string? PersonalWebsite { get; set; }
public string? BlogUrl { get; set; }
public ICollection<PostDto> Posts { get; set; } = new List<PostDto>();
}
}
+8
View File
@@ -0,0 +1,8 @@
namespace PortBlog.API.Models
{
public class VerifyOtpRequest
{
public string UserId { get; set; } = string.Empty;
public string OtpCode { get; set; } = string.Empty;
}
}
@@ -0,0 +1,11 @@
namespace PortBlog.API.Options
{
public class JwtAuthenticationOptions
{
required public string SecretKey { get; set; }
required public int AccessTokenExpiryInMinutes { get; set; }
required public int RefreshTokenExpiryInHours { get; set; }
}
}

Some files were not shown because too many files have changed in this diff Show More