Compare commits
29 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 912457755e | |||
| 8cede3ba55 | |||
| 5fbeb9f732 | |||
| 2676921d7a | |||
| 8eeedf6dad | |||
| 50911e0de7 | |||
| 2b25c55a70 | |||
| c6538b8d0d | |||
| d8c59d7bd1 | |||
| 50c5f87f93 | |||
| 5c1a50ea64 | |||
| cd1ad0a47f | |||
| 62c7a29909 | |||
| 4672d82975 | |||
| 9a4db75e85 | |||
| d2548941fa | |||
| e8b9fe0dc3 | |||
| 22c0d933af | |||
| 167b736493 | |||
| 9cfe5676bc | |||
| aa22cbe708 | |||
| bd2ec7272f | |||
| efb1f344e0 | |||
| c7b1f28c92 | |||
| 46edddc84f | |||
| 61d97d40b0 | |||
| b3cb7b351f | |||
| 21e02ab3ca | |||
| 4c6f9a4ba8 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -360,4 +360,5 @@ MigrationBackup/
|
|||||||
.ionide/
|
.ionide/
|
||||||
|
|
||||||
# Fody - auto-generated XML schema
|
# Fody - auto-generated XML schema
|
||||||
FodyWeavers.xsd
|
FodyWeavers.xsd
|
||||||
|
/PortBlog.API/appsettings.Production.json
|
||||||
|
|||||||
11
AesEncryption/AesEncryption.csproj
Normal file
11
AesEncryption/AesEncryption.csproj
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<IsPublishable>false</IsPublishable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
138
AesEncryption/Program.cs
Normal file
138
AesEncryption/Program.cs
Normal 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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||||||
# Visual Studio Version 17
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 17.9.34701.34
|
VisualStudioVersion = 17.9.34701.34
|
||||||
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
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@ -15,6 +17,10 @@ Global
|
|||||||
{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}.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
|
||||||
|
{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}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{26654BFD-EE9B-49BA-84BA-9156AC348076}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
12
PortBlog.API/Common/MailConstants.cs
Normal file
12
PortBlog.API/Common/MailConstants.cs
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
namespace PortBlog.API.Common
|
||||||
|
{
|
||||||
|
public static class MailConstants
|
||||||
|
{
|
||||||
|
public static string Name { get; set; } = "Bangara Raju";
|
||||||
|
public enum MailStatus
|
||||||
|
{
|
||||||
|
Failed = 0,
|
||||||
|
Success = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
155
PortBlog.API/Controllers/BlogController.cs
Normal file
155
PortBlog.API/Controllers/BlogController.cs
Normal file
@ -0,0 +1,155 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
|
using AutoMapper;
|
||||||
|
using Microsoft.AspNetCore.Http.HttpResults;
|
||||||
|
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)]
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
272
PortBlog.API/Controllers/CvController.cs
Normal file
272
PortBlog.API/Controllers/CvController.cs
Normal file
@ -0,0 +1,272 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
|
using AutoMapper;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[Route("api/v{versions:apiVersion}/cv")]
|
||||||
|
[ApiController]
|
||||||
|
[ApiVersion(1)]
|
||||||
|
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.CandidateName = candidateDto.DisplayName;
|
||||||
|
messageSendDto.CandidateId = candidateDto.CandidateId;
|
||||||
|
await _mailService.SendAsync(messageSendDto);
|
||||||
|
return Ok(true);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
_logger.LogCritical($"Exception while sending message from {message.Name}.", ex);
|
||||||
|
return StatusCode(500, "A problem happened while handling your request.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
16
PortBlog.API/Controllers/PostController.cs
Normal file
16
PortBlog.API/Controllers/PostController.cs
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Controllers
|
||||||
|
{
|
||||||
|
[Route("api/blog/post")]
|
||||||
|
[ApiController]
|
||||||
|
public class PostController : ControllerBase
|
||||||
|
{
|
||||||
|
private readonly ILogger<PostController> _logger;
|
||||||
|
|
||||||
|
public PostController(ILogger<PostController> logger)
|
||||||
|
{
|
||||||
|
this._logger = logger;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,8 +0,0 @@
|
|||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
|
|
||||||
namespace PortBlog.API.DbContexts
|
|
||||||
{
|
|
||||||
public class BlogContext : DbContext
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
57
PortBlog.API/DbContexts/CvBlogContext.cs
Normal file
57
PortBlog.API/DbContexts/CvBlogContext.cs
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using PortBlog.API.DbContexts.Seed;
|
||||||
|
using PortBlog.API.Entities;
|
||||||
|
|
||||||
|
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; }
|
||||||
|
|
||||||
|
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());
|
||||||
|
|
||||||
|
base.OnModelCreating(modelBuilder);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,8 +0,0 @@
|
|||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
|
|
||||||
namespace PortBlog.API.DbContexts
|
|
||||||
{
|
|
||||||
public class PortfolioContext : DbContext
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
377
PortBlog.API/DbContexts/Seed/InitialData.cs
Normal file
377
PortBlog.API/DbContexts/Seed/InitialData.cs
Normal file
@ -0,0 +1,377 @@
|
|||||||
|
using PortBlog.API.Entities;
|
||||||
|
using System.Net.NetworkInformation;
|
||||||
|
|
||||||
|
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 I’ve 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
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
34
PortBlog.API/Entities/Academic.cs
Normal file
34
PortBlog.API/Entities/Academic.cs
Normal 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
PortBlog.API/Entities/BaseEntity.cs
Normal file
13
PortBlog.API/Entities/BaseEntity.cs
Normal 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
PortBlog.API/Entities/Blog.cs
Normal file
24
PortBlog.API/Entities/Blog.cs
Normal 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>();
|
||||||
|
}
|
||||||
|
}
|
||||||
41
PortBlog.API/Entities/Candidate.cs
Normal file
41
PortBlog.API/Entities/Candidate.cs
Normal 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
PortBlog.API/Entities/Certification.cs
Normal file
33
PortBlog.API/Entities/Certification.cs
Normal 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
PortBlog.API/Entities/ClientLog.cs
Normal file
27
PortBlog.API/Entities/ClientLog.cs
Normal 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
PortBlog.API/Entities/Experience.cs
Normal file
39
PortBlog.API/Entities/Experience.cs
Normal 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>();
|
||||||
|
}
|
||||||
|
}
|
||||||
23
PortBlog.API/Entities/ExperienceDetails.cs
Normal file
23
PortBlog.API/Entities/ExperienceDetails.cs
Normal file
@ -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
PortBlog.API/Entities/Hobby.cs
Normal file
31
PortBlog.API/Entities/Hobby.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
43
PortBlog.API/Entities/Message.cs
Normal file
43
PortBlog.API/Entities/Message.cs
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
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]
|
||||||
|
[MaxLength(500)]
|
||||||
|
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
PortBlog.API/Entities/Post.cs
Normal file
51
PortBlog.API/Entities/Post.cs
Normal 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
PortBlog.API/Entities/Project.cs
Normal file
60
PortBlog.API/Entities/Project.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
44
PortBlog.API/Entities/Resume.cs
Normal file
44
PortBlog.API/Entities/Resume.cs
Normal 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
PortBlog.API/Entities/ResumeFile.cs
Normal file
32
PortBlog.API/Entities/ResumeFile.cs
Normal 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
PortBlog.API/Entities/Skill.cs
Normal file
27
PortBlog.API/Entities/Skill.cs
Normal 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
PortBlog.API/Entities/SocialLinks.cs
Normal file
42
PortBlog.API/Entities/SocialLinks.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
44
PortBlog.API/Extensions/ConfigurationExtensions.cs
Normal file
44
PortBlog.API/Extensions/ConfigurationExtensions.cs
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
using System.Security.Cryptography;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Extensions
|
||||||
|
{
|
||||||
|
public static class ConfigurationExtensions
|
||||||
|
{
|
||||||
|
public static string DecryptConnectionString(this IConfiguration configuration, string encryptedConnectionString)
|
||||||
|
{
|
||||||
|
string keyBase64 = configuration.GetValue<string>("ConnectionStrings:Key").ToString();
|
||||||
|
|
||||||
|
string vectorBase64 = encryptedConnectionString.Split(":")[1];
|
||||||
|
string cipherText = encryptedConnectionString.Split(":")[0];
|
||||||
|
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
25
PortBlog.API/Extensions/ServiceExtensions.cs
Normal file
25
PortBlog.API/Extensions/ServiceExtensions.cs
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
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>();
|
||||||
|
return services;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
PortBlog.API/Images/bpm.jpg
Normal file
BIN
PortBlog.API/Images/bpm.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 57 KiB |
BIN
PortBlog.API/Images/bpm.png
Normal file
BIN
PortBlog.API/Images/bpm.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
BIN
PortBlog.API/Images/hcm.jpg
Normal file
BIN
PortBlog.API/Images/hcm.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
BIN
PortBlog.API/Images/hms-in-brief.png
Normal file
BIN
PortBlog.API/Images/hms-in-brief.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 278 KiB |
BIN
PortBlog.API/Images/hms.png
Normal file
BIN
PortBlog.API/Images/hms.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 202 KiB |
40
PortBlog.API/Middleware/ApiKeyMiddleware.cs
Normal file
40
PortBlog.API/Middleware/ApiKeyMiddleware.cs
Normal file
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
981
PortBlog.API/Migrations/20240425092224_InitialDBMigration.Designer.cs
generated
Normal file
981
PortBlog.API/Migrations/20240425092224_InitialDBMigration.Designer.cs
generated
Normal file
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
662
PortBlog.API/Migrations/20240425092224_InitialDBMigration.cs
Normal file
662
PortBlog.API/Migrations/20240425092224_InitialDBMigration.cs
Normal file
@ -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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1378
PortBlog.API/Migrations/20240425092347_InitialSeedData.Designer.cs
generated
Normal file
1378
PortBlog.API/Migrations/20240425092347_InitialSeedData.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
290
PortBlog.API/Migrations/20240425092347_InitialSeedData.cs
Normal file
290
PortBlog.API/Migrations/20240425092347_InitialSeedData.cs
Normal file
@ -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 I’ve 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1381
PortBlog.API/Migrations/20240425191634_AddDobToCandidate.Designer.cs
generated
Normal file
1381
PortBlog.API/Migrations/20240425191634_AddDobToCandidate.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
505
PortBlog.API/Migrations/20240425191634_AddDobToCandidate.cs
Normal file
505
PortBlog.API/Migrations/20240425191634_AddDobToCandidate.cs
Normal file
@ -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) });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1382
PortBlog.API/Migrations/20240425191821_AddDobData.Designer.cs
generated
Normal file
1382
PortBlog.API/Migrations/20240425191821_AddDobData.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
495
PortBlog.API/Migrations/20240425191821_AddDobData.cs
Normal file
495
PortBlog.API/Migrations/20240425191821_AddDobData.cs
Normal file
@ -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) });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1380
PortBlog.API/Migrations/20240430123112_messagestatuslogtablechanges.Designer.cs
generated
Normal file
1380
PortBlog.API/Migrations/20240430123112_messagestatuslogtablechanges.Designer.cs
generated
Normal file
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) });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1348
PortBlog.API/Migrations/20240430143027_MessageStatusLogRemoved.Designer.cs
generated
Normal file
1348
PortBlog.API/Migrations/20240430143027_MessageStatusLogRemoved.Designer.cs
generated
Normal file
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1369
PortBlog.API/Migrations/20240430150543_MessageChanges.Designer.cs
generated
Normal file
1369
PortBlog.API/Migrations/20240430150543_MessageChanges.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
550
PortBlog.API/Migrations/20240430150543_MessageChanges.cs
Normal file
550
PortBlog.API/Migrations/20240430150543_MessageChanges.cs
Normal file
@ -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) });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1369
PortBlog.API/Migrations/20240502091648_ProjectAndPostChanges.Designer.cs
generated
Normal file
1369
PortBlog.API/Migrations/20240502091648_ProjectAndPostChanges.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
547
PortBlog.API/Migrations/20240502091648_ProjectAndPostChanges.cs
Normal file
547
PortBlog.API/Migrations/20240502091648_ProjectAndPostChanges.cs
Normal file
@ -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) });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1369
PortBlog.API/Migrations/20240506170311_categorycolumnchanges.Designer.cs
generated
Normal file
1369
PortBlog.API/Migrations/20240506170311_categorycolumnchanges.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
495
PortBlog.API/Migrations/20240506170311_categorycolumnchanges.cs
Normal file
495
PortBlog.API/Migrations/20240506170311_categorycolumnchanges.cs
Normal file
@ -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) });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1369
PortBlog.API/Migrations/20240507173808_Dataupdate.Designer.cs
generated
Normal file
1369
PortBlog.API/Migrations/20240507173808_Dataupdate.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
495
PortBlog.API/Migrations/20240507173808_Dataupdate.cs
Normal file
495
PortBlog.API/Migrations/20240507173808_Dataupdate.cs
Normal file
@ -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 I’ve 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 I’ve 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) });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1366
PortBlog.API/Migrations/CvBlogContextModelSnapshot.cs
Normal file
1366
PortBlog.API/Migrations/CvBlogContextModelSnapshot.cs
Normal file
File diff suppressed because it is too large
Load Diff
9
PortBlog.API/Models/AboutDto.cs
Normal file
9
PortBlog.API/Models/AboutDto.cs
Normal 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
PortBlog.API/Models/AcademicDto.cs
Normal file
19
PortBlog.API/Models/AcademicDto.cs
Normal 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
PortBlog.API/Models/BlogDto.cs
Normal file
15
PortBlog.API/Models/BlogDto.cs
Normal 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
PortBlog.API/Models/CandidateDto.cs
Normal file
26
PortBlog.API/Models/CandidateDto.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
11
PortBlog.API/Models/CandidateSocialLinksDto.cs
Normal file
11
PortBlog.API/Models/CandidateSocialLinksDto.cs
Normal file
@ -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
PortBlog.API/Models/CertificationDto.cs
Normal file
17
PortBlog.API/Models/CertificationDto.cs
Normal 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
PortBlog.API/Models/CvDto.cs
Normal file
78
PortBlog.API/Models/CvDto.cs
Normal 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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
PortBlog.API/Models/ExperienceDetailsDto.cs
Normal file
11
PortBlog.API/Models/ExperienceDetailsDto.cs
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
23
PortBlog.API/Models/ExperienceDto.cs
Normal file
23
PortBlog.API/Models/ExperienceDto.cs
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
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 StartYear { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public string EndYear { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public string Period { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public ICollection<ExperienceDetailsDto> Details { get; set; } = new List<ExperienceDetailsDto>();
|
||||||
|
}
|
||||||
|
}
|
||||||
13
PortBlog.API/Models/HobbyDto.cs
Normal file
13
PortBlog.API/Models/HobbyDto.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
15
PortBlog.API/Models/MailSettingsDto.cs
Normal file
15
PortBlog.API/Models/MailSettingsDto.cs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
20
PortBlog.API/Models/MessageDto.cs
Normal file
20
PortBlog.API/Models/MessageDto.cs
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
26
PortBlog.API/Models/MessageSendDto.cs
Normal file
26
PortBlog.API/Models/MessageSendDto.cs
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
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 CandidateName { 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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
31
PortBlog.API/Models/PostCreationDto.cs
Normal file
31
PortBlog.API/Models/PostCreationDto.cs
Normal 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
PortBlog.API/Models/PostDto.cs
Normal file
29
PortBlog.API/Models/PostDto.cs
Normal 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
PortBlog.API/Models/PostMetricsDto.cs
Normal file
13
PortBlog.API/Models/PostMetricsDto.cs
Normal 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
PortBlog.API/Models/ProjectDto.cs
Normal file
39
PortBlog.API/Models/ProjectDto.cs
Normal 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
PortBlog.API/Models/ProjectsDto.cs
Normal file
20
PortBlog.API/Models/ProjectsDto.cs
Normal 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
PortBlog.API/Models/ResumeDto.cs
Normal file
21
PortBlog.API/Models/ResumeDto.cs
Normal 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
PortBlog.API/Models/SkillDto.cs
Normal file
13
PortBlog.API/Models/SkillDto.cs
Normal 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
PortBlog.API/Models/SocialLinksDto.cs
Normal file
23
PortBlog.API/Models/SocialLinksDto.cs
Normal 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>();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,25 +1,31 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||||
|
<DocumentationFile>PortBlog.API.xml</DocumentationFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Asp.Versioning.Mvc.ApiExplorer" Version="8.1.0" />
|
||||||
|
<PackageReference Include="AutoMapper" Version="13.0.1" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.4" />
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.4" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.4" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.4" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.4" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.4">
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="8.0.2" />
|
||||||
<PackageReference Include="Serilog.AspNetCore" Version="8.0.1" />
|
<PackageReference Include="Serilog.AspNetCore" Version="8.0.1" />
|
||||||
<PackageReference Include="serilog.sinks.console" Version="5.0.1" />
|
<PackageReference Include="serilog.sinks.console" Version="5.0.1" />
|
||||||
<PackageReference Include="serilog.sinks.file" Version="5.0.0" />
|
<PackageReference Include="serilog.sinks.file" Version="5.0.0" />
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="Controllers\" />
|
<Content Include="Images\**" CopyToPublishDirectory="PreserveNewest" />
|
||||||
<Folder Include="Models\" />
|
|
||||||
<Folder Include="Entities\" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
275
PortBlog.API/PortBlog.API.xml
Normal file
275
PortBlog.API/PortBlog.API.xml
Normal file
@ -0,0 +1,275 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<doc>
|
||||||
|
<assembly>
|
||||||
|
<name>PortBlog.API</name>
|
||||||
|
</assembly>
|
||||||
|
<members>
|
||||||
|
<member name="M:PortBlog.API.Controllers.CvController.Get(System.Int32)">
|
||||||
|
<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>
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Controllers.CvController.GetHobbies(System.Int32)">
|
||||||
|
<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>
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Controllers.CvController.GetContact(System.Int32)">
|
||||||
|
<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>
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Controllers.CvController.GetResume(System.Int32)">
|
||||||
|
<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>
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Controllers.CvController.GetProjects(System.Int32)">
|
||||||
|
<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>
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Controllers.CvController.GetBlog(System.Int32)">
|
||||||
|
<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>
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Controllers.CvController.SendMessage(System.Int32,PortBlog.API.Models.MessageDto)">
|
||||||
|
<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>
|
||||||
|
</member>
|
||||||
|
<member name="T:PortBlog.API.Migrations.InitialDBMigration">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.InitialDBMigration.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.InitialDBMigration.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.InitialDBMigration.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="T:PortBlog.API.Migrations.InitialSeedData">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.InitialSeedData.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.InitialSeedData.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.InitialSeedData.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="T:PortBlog.API.Migrations.AddDobToCandidate">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.AddDobToCandidate.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.AddDobToCandidate.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.AddDobToCandidate.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="T:PortBlog.API.Migrations.AddDobData">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.AddDobData.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.AddDobData.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.AddDobData.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="T:PortBlog.API.Migrations.messagestatuslogtablechanges">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.messagestatuslogtablechanges.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.messagestatuslogtablechanges.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.messagestatuslogtablechanges.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="T:PortBlog.API.Migrations.MessageStatusLogRemoved">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.MessageStatusLogRemoved.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.MessageStatusLogRemoved.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.MessageStatusLogRemoved.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="T:PortBlog.API.Migrations.MessageChanges">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.MessageChanges.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.MessageChanges.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.MessageChanges.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="T:PortBlog.API.Migrations.ProjectAndPostChanges">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.ProjectAndPostChanges.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.ProjectAndPostChanges.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.ProjectAndPostChanges.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="T:PortBlog.API.Migrations.categorycolumnchanges">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.categorycolumnchanges.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.categorycolumnchanges.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.categorycolumnchanges.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="T:PortBlog.API.Migrations.Dataupdate">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.Dataupdate.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.Dataupdate.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="M:PortBlog.API.Migrations.Dataupdate.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||||
|
<inheritdoc />
|
||||||
|
</member>
|
||||||
|
<member name="T:PortBlog.API.Models.CvDto">
|
||||||
|
<summary>
|
||||||
|
CV details of the candidate
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:PortBlog.API.Models.CvDto.ResumeId">
|
||||||
|
<summary>
|
||||||
|
The id of the cv
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:PortBlog.API.Models.CvDto.Title">
|
||||||
|
<summary>
|
||||||
|
The title of the candidate
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:PortBlog.API.Models.CvDto.About">
|
||||||
|
<summary>
|
||||||
|
A brief description about the candidate
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:PortBlog.API.Models.CvDto.Candidate">
|
||||||
|
<summary>
|
||||||
|
Candidate's information
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:PortBlog.API.Models.CvDto.SocialLinks">
|
||||||
|
<summary>
|
||||||
|
Candidate's Social Media links
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:PortBlog.API.Models.CvDto.Posts">
|
||||||
|
<summary>
|
||||||
|
Candidate's blog posts
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:PortBlog.API.Models.CvDto.Academics">
|
||||||
|
<summary>
|
||||||
|
The education details of the candidate
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:PortBlog.API.Models.CvDto.Skills">
|
||||||
|
<summary>
|
||||||
|
The skills of the candidate
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:PortBlog.API.Models.CvDto.Experiences">
|
||||||
|
<summary>
|
||||||
|
The work experiences of the candidate
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:PortBlog.API.Models.CvDto.Certifications">
|
||||||
|
<summary>
|
||||||
|
The certifications done by the candidate
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:PortBlog.API.Models.CvDto.Hobbies">
|
||||||
|
<summary>
|
||||||
|
The hobbies of the candidate
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:PortBlog.API.Models.CvDto.Projects">
|
||||||
|
<summary>
|
||||||
|
The projects of the candidate
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:PortBlog.API.Models.CvDto.ProjectsCategories">
|
||||||
|
<summary>
|
||||||
|
The project categories of all the projects
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:PortBlog.API.Models.ResumeDto">
|
||||||
|
<summary>
|
||||||
|
CV details of the candidate
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:PortBlog.API.Models.ResumeDto.Academics">
|
||||||
|
<summary>
|
||||||
|
The education details of the candidate
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:PortBlog.API.Models.ResumeDto.Skills">
|
||||||
|
<summary>
|
||||||
|
The skills of the candidate
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:PortBlog.API.Models.ResumeDto.Experiences">
|
||||||
|
<summary>
|
||||||
|
The work experiences of the candidate
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
</members>
|
||||||
|
</doc>
|
||||||
25
PortBlog.API/Profiles/BlogProfile.cs
Normal file
25
PortBlog.API/Profiles/BlogProfile.cs
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
using AutoMapper;
|
||||||
|
using PortBlog.API.Entities;
|
||||||
|
using PortBlog.API.Models;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Profiles
|
||||||
|
{
|
||||||
|
public class BlogProfile : Profile
|
||||||
|
{
|
||||||
|
public BlogProfile()
|
||||||
|
{
|
||||||
|
CreateMap<Blog, BlogDto>();
|
||||||
|
CreateMap<Post, PostDto>()
|
||||||
|
.ForMember(
|
||||||
|
dest => dest.CreatedDate,
|
||||||
|
opts => opts.MapFrom(src => src.CreatedDate != null ? src.CreatedDate.Value.ToString("MMM dd, yyyy") : string.Empty)
|
||||||
|
)
|
||||||
|
.ForMember(
|
||||||
|
dest => dest.ModifiedDate,
|
||||||
|
opts => opts.MapFrom(src => !string.IsNullOrEmpty(src.ModifiedDate.ToString()) ? src.ModifiedDate.Value.ToString("MMM dd, yyyy") : string.Empty)
|
||||||
|
);
|
||||||
|
CreateMap<Post, PostMetricsDto>();
|
||||||
|
CreateMap<PostCreationDto, Post>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
78
PortBlog.API/Profiles/ResumeProfile.cs
Normal file
78
PortBlog.API/Profiles/ResumeProfile.cs
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
using AutoMapper;
|
||||||
|
using PortBlog.API.Entities;
|
||||||
|
using PortBlog.API.Models;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Profiles
|
||||||
|
{
|
||||||
|
public class ResumeProfile : Profile
|
||||||
|
{
|
||||||
|
public ResumeProfile()
|
||||||
|
{
|
||||||
|
CreateMap<Candidate, CandidateDto>()
|
||||||
|
.ForMember
|
||||||
|
(
|
||||||
|
dest => dest.Dob,
|
||||||
|
src => src.MapFrom(src => src.Dob != null ? src.Dob.Value.ToString("MMM dd, yyyy") : string.Empty)
|
||||||
|
);
|
||||||
|
CreateMap<Academic, AcademicDto>()
|
||||||
|
.ForMember(
|
||||||
|
dest => dest.Period,
|
||||||
|
src => src.MapFrom(src => src.StartYear + " - " + src.EndYear)
|
||||||
|
);
|
||||||
|
CreateMap<Certification, CertificationDto>();
|
||||||
|
CreateMap<Hobby, HobbyDto>();
|
||||||
|
CreateMap<Experience, ExperienceDto>()
|
||||||
|
.ForMember(
|
||||||
|
dest => dest.Period,
|
||||||
|
src => src.MapFrom(src => src.StartDate.ToString("MMM yyyy") + " - " + (src.EndDate != null ? src.EndDate.Value.ToString("MMM yyyy") : "Present"))
|
||||||
|
)
|
||||||
|
.ForMember
|
||||||
|
(
|
||||||
|
dest => dest.StartYear,
|
||||||
|
opts => opts.MapFrom(src => src.StartDate.Year.ToString())
|
||||||
|
)
|
||||||
|
.ForMember
|
||||||
|
(
|
||||||
|
dest => dest.EndYear,
|
||||||
|
opts => opts.MapFrom(src => src.EndDate != null ? src.EndDate.Value.Year.ToString() : "Present")
|
||||||
|
);
|
||||||
|
CreateMap<ExperienceDetails, ExperienceDetailsDto>();
|
||||||
|
CreateMap<Project, ProjectDto>()
|
||||||
|
.ForMember
|
||||||
|
(
|
||||||
|
dest => dest.Roles,
|
||||||
|
src => src.MapFrom(src => !string.IsNullOrEmpty(src.Roles) ? src.Roles.Split(",", StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries).ToList() : new List<string>())
|
||||||
|
)
|
||||||
|
.ForMember
|
||||||
|
(
|
||||||
|
dest => dest.Responsibilities,
|
||||||
|
src => src.MapFrom(src => !string.IsNullOrEmpty(src.Responsibilities) ? src.Responsibilities.Split(",", StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries).ToList() : new List<string>())
|
||||||
|
)
|
||||||
|
.ForMember
|
||||||
|
(
|
||||||
|
dest => dest.TechnologiesUsed,
|
||||||
|
src => src.MapFrom(src => !string.IsNullOrEmpty(src.TechnologiesUsed) ? src.TechnologiesUsed.Split(",", StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries).ToList() : new List<string>())
|
||||||
|
);
|
||||||
|
|
||||||
|
CreateMap<Skill, SkillDto>();
|
||||||
|
CreateMap<SocialLinks, SocialLinksDto>()
|
||||||
|
.ForMember
|
||||||
|
(
|
||||||
|
dest => dest.Posts,
|
||||||
|
src => src.MapFrom(src => src.Blog != null ? src.Blog.Posts : new List<Post>())
|
||||||
|
);
|
||||||
|
CreateMap<Resume, CvDto>();
|
||||||
|
CreateMap<Resume, ResumeDto>();
|
||||||
|
CreateMap<Resume, AboutDto>();
|
||||||
|
CreateMap<Resume, CandidateSocialLinksDto>();
|
||||||
|
CreateMap<Resume, ProjectsDto>();
|
||||||
|
CreateMap<MessageDto, MessageSendDto>()
|
||||||
|
.ForMember
|
||||||
|
(
|
||||||
|
dest => dest.FromEmail,
|
||||||
|
src => src.MapFrom(src => src.Email)
|
||||||
|
);
|
||||||
|
CreateMap<MessageSendDto, Message>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,14 +1,59 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
|
using Asp.Versioning.ApiExplorer;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Microsoft.Extensions.FileProviders;
|
||||||
|
using Microsoft.OpenApi.Models;
|
||||||
using PortBlog.API.DbContexts;
|
using PortBlog.API.DbContexts;
|
||||||
|
using PortBlog.API.Extensions;
|
||||||
|
using PortBlog.API.Middleware;
|
||||||
using Serilog;
|
using Serilog;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
Log.Logger = new LoggerConfiguration()
|
|
||||||
|
|
||||||
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
|
if (builder.Environment.IsDevelopment())
|
||||||
|
{
|
||||||
|
Log.Logger = new LoggerConfiguration()
|
||||||
.MinimumLevel.Debug()
|
.MinimumLevel.Debug()
|
||||||
.WriteTo.Console()
|
.WriteTo.Console()
|
||||||
.WriteTo.File("logs/portblog.txt", rollingInterval: RollingInterval.Day)
|
.WriteTo.File("logs/portblog.txt", rollingInterval: RollingInterval.Day)
|
||||||
.CreateLogger();
|
.CreateLogger();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Log.Logger = new LoggerConfiguration()
|
||||||
|
.MinimumLevel.Information()
|
||||||
|
.WriteTo.File("logs/portblog.txt", rollingInterval: RollingInterval.Day)
|
||||||
|
.CreateLogger();
|
||||||
|
}
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var urls = builder.Configuration.GetSection("Urls");
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(urls.Value))
|
||||||
|
{
|
||||||
|
var allowedUrlsToUse = urls.Value.Split(',');
|
||||||
|
|
||||||
|
builder.WebHost.UseUrls(allowedUrlsToUse);
|
||||||
|
}
|
||||||
|
|
||||||
|
var allowedCorsOrigins = builder.Configuration.GetSection("AllowedCorsOrigins");
|
||||||
|
|
||||||
|
if (!String.IsNullOrEmpty(allowedCorsOrigins.Value))
|
||||||
|
{
|
||||||
|
var origins = allowedCorsOrigins.Value.Split(",");
|
||||||
|
|
||||||
|
builder.Services.AddCors(options =>
|
||||||
|
{
|
||||||
|
options.AddDefaultPolicy(
|
||||||
|
policy =>
|
||||||
|
{
|
||||||
|
policy.WithOrigins(origins);
|
||||||
|
policy.AllowAnyHeader();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
builder.Host.UseSerilog();
|
builder.Host.UseSerilog();
|
||||||
|
|
||||||
@ -23,18 +68,96 @@ builder.Services.AddProblemDetails();
|
|||||||
|
|
||||||
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|
||||||
builder.Services.AddEndpointsApiExplorer();
|
builder.Services.AddEndpointsApiExplorer();
|
||||||
builder.Services.AddSwaggerGen();
|
|
||||||
|
var connectionString = builder.Configuration.GetConnectionString("PortBlogDBConnectionString");
|
||||||
|
|
||||||
|
if (builder.Configuration.GetValue<bool>("ConnectionStrings:Encryption"))
|
||||||
|
{
|
||||||
|
connectionString = builder.Configuration.DecryptConnectionString(connectionString);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (string.IsNullOrEmpty(connectionString))
|
||||||
|
{
|
||||||
|
throw new Exception("Connection string cannot be empty");
|
||||||
|
}
|
||||||
|
|
||||||
builder.Services
|
builder.Services
|
||||||
.AddDbContext<PortfolioContext>(dbContextOptions
|
.AddDbContext<CvBlogContext>(dbContextOptions
|
||||||
=> dbContextOptions.UseSqlite(builder.Configuration["ConnectionStrings:PortBlogDBConnectionString"]));
|
=> dbContextOptions.UseMySql(connectionString, ServerVersion.AutoDetect(connectionString)));
|
||||||
|
|
||||||
builder.Services
|
builder.Services.AddRepositories();
|
||||||
.AddDbContext<BlogContext>(dbContextOptions
|
builder.Services.AddServices();
|
||||||
=> dbContextOptions.UseSqlite(builder.Configuration["ConnectionStrings:PortBlogDBConnectionString"]));
|
|
||||||
|
builder.Services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies());
|
||||||
|
|
||||||
|
|
||||||
|
// Registering API Versioning Specification services
|
||||||
|
builder.Services.AddApiVersioning(setupAction =>
|
||||||
|
{
|
||||||
|
setupAction.ReportApiVersions = true;
|
||||||
|
setupAction.AssumeDefaultVersionWhenUnspecified = true;
|
||||||
|
setupAction.DefaultApiVersion = new ApiVersion(1, 0);
|
||||||
|
}).AddMvc()
|
||||||
|
.AddApiExplorer(setupAction =>
|
||||||
|
{
|
||||||
|
setupAction.SubstituteApiVersionInUrl = true;
|
||||||
|
});
|
||||||
|
|
||||||
|
var apiVersionDescriptionProvider = builder.Services.BuildServiceProvider()
|
||||||
|
.GetRequiredService<IApiVersionDescriptionProvider>();
|
||||||
|
|
||||||
|
builder.Services.AddSwaggerGen(c =>
|
||||||
|
{
|
||||||
|
foreach(var description in apiVersionDescriptionProvider.ApiVersionDescriptions)
|
||||||
|
{
|
||||||
|
c.SwaggerDoc(
|
||||||
|
$"{description.GroupName}",
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
Title = "Portfolio Blog API",
|
||||||
|
Version = description.ApiVersion.ToString(),
|
||||||
|
Description = "Through this API you can access candidate cv details and along with other details."
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// XML Comments file for API Documentation
|
||||||
|
var xmlCommentsFile = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml";
|
||||||
|
var xmlCommentsFullPath = $"{Path.Combine(AppContext.BaseDirectory, xmlCommentsFile)}";
|
||||||
|
|
||||||
|
c.IncludeXmlComments(xmlCommentsFullPath);
|
||||||
|
|
||||||
|
// Add Security Definition to the Swagger
|
||||||
|
c.AddSecurityDefinition("ApiKey", new OpenApiSecurityScheme
|
||||||
|
{
|
||||||
|
Description = "ApiKey must appear in header",
|
||||||
|
Type = SecuritySchemeType.ApiKey,
|
||||||
|
Name = "XApiKey",
|
||||||
|
In = ParameterLocation.Header,
|
||||||
|
Scheme = "ApiKeyScheme"
|
||||||
|
});
|
||||||
|
|
||||||
|
var key = new OpenApiSecurityScheme()
|
||||||
|
{
|
||||||
|
Reference = new OpenApiReference
|
||||||
|
{
|
||||||
|
Type = ReferenceType.SecurityScheme,
|
||||||
|
Id = "ApiKey"
|
||||||
|
},
|
||||||
|
In = ParameterLocation.Header
|
||||||
|
};
|
||||||
|
|
||||||
|
var requirement = new OpenApiSecurityRequirement()
|
||||||
|
{
|
||||||
|
{key, new List<string> {} }
|
||||||
|
};
|
||||||
|
|
||||||
|
c.AddSecurityRequirement(requirement);
|
||||||
|
});
|
||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
|
app.UseCors();
|
||||||
|
|
||||||
if (!app.Environment.IsDevelopment())
|
if (!app.Environment.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseExceptionHandler();
|
app.UseExceptionHandler();
|
||||||
@ -44,13 +167,31 @@ if (!app.Environment.IsDevelopment())
|
|||||||
if (app.Environment.IsDevelopment())
|
if (app.Environment.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseSwagger();
|
app.UseSwagger();
|
||||||
app.UseSwaggerUI();
|
app.UseSwaggerUI(setupAction =>
|
||||||
|
{
|
||||||
|
var descriptions = app.DescribeApiVersions();
|
||||||
|
foreach(var description in descriptions)
|
||||||
|
{
|
||||||
|
setupAction.SwaggerEndpoint(
|
||||||
|
$"/swagger/{description.GroupName}/swagger.json",
|
||||||
|
description.GroupName.ToUpperInvariant());
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
app.UseHttpsRedirection();
|
app.UseHttpsRedirection();
|
||||||
|
|
||||||
|
|
||||||
|
app.UseStaticFiles(new StaticFileOptions()
|
||||||
|
{
|
||||||
|
FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), @"Images")),
|
||||||
|
RequestPath = new PathString("/images")
|
||||||
|
});
|
||||||
|
|
||||||
app.UseAuthorization();
|
app.UseAuthorization();
|
||||||
|
|
||||||
|
app.UseMiddleware<ApiKeyMiddleware>();
|
||||||
|
|
||||||
app.MapControllers();
|
app.MapControllers();
|
||||||
|
|
||||||
app.Run();
|
app.Run();
|
||||||
|
|||||||
21
PortBlog.API/Repositories/AcademicRepository.cs
Normal file
21
PortBlog.API/Repositories/AcademicRepository.cs
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using PortBlog.API.DbContexts;
|
||||||
|
using PortBlog.API.Entities;
|
||||||
|
using PortBlog.API.Repositories.Contracts;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Repositories
|
||||||
|
{
|
||||||
|
public class AcademicRepository : IAcademicRepository
|
||||||
|
{
|
||||||
|
private readonly CvBlogContext _cvBlogContext;
|
||||||
|
|
||||||
|
public AcademicRepository(CvBlogContext cvBlogContext)
|
||||||
|
{
|
||||||
|
_cvBlogContext = cvBlogContext;
|
||||||
|
}
|
||||||
|
public async Task<IEnumerable<Academic>> GetAcademicsForResumeAsync(int resumeId)
|
||||||
|
{
|
||||||
|
return await _cvBlogContext.Academics.Where(a => a.ResumeId == resumeId).OrderByDescending(a => a.StartYear).ToListAsync();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
58
PortBlog.API/Repositories/BlogRepository.cs
Normal file
58
PortBlog.API/Repositories/BlogRepository.cs
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using PortBlog.API.DbContexts;
|
||||||
|
using PortBlog.API.Entities;
|
||||||
|
using PortBlog.API.Repositories.Contracts;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Repositories
|
||||||
|
{
|
||||||
|
public class BlogRepository : IBlogRepository
|
||||||
|
{
|
||||||
|
private readonly CvBlogContext _cvBlogContext;
|
||||||
|
|
||||||
|
public BlogRepository(CvBlogContext cvBlogContext)
|
||||||
|
{
|
||||||
|
_cvBlogContext = cvBlogContext;
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<Blog?> GetBlogAsync(string blogUrl, bool includePosts)
|
||||||
|
{
|
||||||
|
if (includePosts)
|
||||||
|
{
|
||||||
|
return await _cvBlogContext.Blogs.Include(b => b.Posts)
|
||||||
|
.Where(b => b.BlogUrl == blogUrl).FirstOrDefaultAsync();
|
||||||
|
}
|
||||||
|
return await _cvBlogContext.Blogs.Where(b => b.BlogUrl == blogUrl).FirstOrDefaultAsync();
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<Post?> GetPostAsync(string blogUrl, string postSlug)
|
||||||
|
{
|
||||||
|
return await _cvBlogContext.Posts.Where(p => p.Slug == postSlug && p.BlogUrl == blogUrl).FirstOrDefaultAsync();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public async Task<bool> PostExistsAsync(string blogUrl, string postSlug)
|
||||||
|
{
|
||||||
|
return await _cvBlogContext.Posts.AnyAsync(p => p.Slug == postSlug && p.BlogUrl == blogUrl);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<bool> BlogExistsAsync(string blogUrl)
|
||||||
|
{
|
||||||
|
return await _cvBlogContext.Blogs.AnyAsync(b => b.BlogUrl == blogUrl);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void AddPost(Post post)
|
||||||
|
{
|
||||||
|
_cvBlogContext.Posts.Add(post);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UpdatePost(Post post)
|
||||||
|
{
|
||||||
|
_cvBlogContext.Posts.Update(post);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<bool> SaveChangesAsync()
|
||||||
|
{
|
||||||
|
return (await _cvBlogContext.SaveChangesAsync() >= 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
27
PortBlog.API/Repositories/CandidateRepository.cs
Normal file
27
PortBlog.API/Repositories/CandidateRepository.cs
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using PortBlog.API.DbContexts;
|
||||||
|
using PortBlog.API.Entities;
|
||||||
|
using PortBlog.API.Repositories.Contracts;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Repositories
|
||||||
|
{
|
||||||
|
public class CandidateRepository : ICandidateRepository
|
||||||
|
{
|
||||||
|
private readonly CvBlogContext _cvBlogContext;
|
||||||
|
|
||||||
|
public CandidateRepository(CvBlogContext cvBlogContext)
|
||||||
|
{
|
||||||
|
_cvBlogContext = cvBlogContext ?? throw new ArgumentNullException(nameof(cvBlogContext));
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<bool> CandidateExistAsync(int candidateId)
|
||||||
|
{
|
||||||
|
return await _cvBlogContext.Candidates.AnyAsync(c => c.CandidateId == candidateId);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<Candidate?> GetCandidateAsync(int id)
|
||||||
|
{
|
||||||
|
return await _cvBlogContext.Candidates.FirstOrDefaultAsync(c => c.CandidateId == id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
using PortBlog.API.Entities;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Repositories.Contracts
|
||||||
|
{
|
||||||
|
public interface IAcademicRepository
|
||||||
|
{
|
||||||
|
Task<IEnumerable<Academic>> GetAcademicsForResumeAsync(int resumeId);
|
||||||
|
}
|
||||||
|
}
|
||||||
21
PortBlog.API/Repositories/Contracts/IBlogRepository.cs
Normal file
21
PortBlog.API/Repositories/Contracts/IBlogRepository.cs
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
using PortBlog.API.Entities;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Repositories.Contracts
|
||||||
|
{
|
||||||
|
public interface IBlogRepository
|
||||||
|
{
|
||||||
|
Task<Blog?> GetBlogAsync(string blogUrl, bool includePosts);
|
||||||
|
|
||||||
|
Task<Post> GetPostAsync(string blogUrl, string postSlug);
|
||||||
|
|
||||||
|
Task<bool> PostExistsAsync(string blogUrl, string postSlug);
|
||||||
|
|
||||||
|
Task<bool> BlogExistsAsync(string blogUrl);
|
||||||
|
|
||||||
|
void AddPost(Post post);
|
||||||
|
|
||||||
|
void UpdatePost(Post post);
|
||||||
|
|
||||||
|
Task<bool> SaveChangesAsync();
|
||||||
|
}
|
||||||
|
}
|
||||||
11
PortBlog.API/Repositories/Contracts/ICandidateRepository.cs
Normal file
11
PortBlog.API/Repositories/Contracts/ICandidateRepository.cs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
using PortBlog.API.Entities;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Repositories.Contracts
|
||||||
|
{
|
||||||
|
public interface ICandidateRepository
|
||||||
|
{
|
||||||
|
Task<Candidate?> GetCandidateAsync(int id);
|
||||||
|
|
||||||
|
Task<bool> CandidateExistAsync(int candidateId);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
using PortBlog.API.Entities;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Repositories.Contracts
|
||||||
|
{
|
||||||
|
public interface IExperienceRepository
|
||||||
|
{
|
||||||
|
Task<IEnumerable<Experience>> GetExperiencesForResumeAsync(int resumeId);
|
||||||
|
}
|
||||||
|
}
|
||||||
10
PortBlog.API/Repositories/Contracts/IHobbyRepository.cs
Normal file
10
PortBlog.API/Repositories/Contracts/IHobbyRepository.cs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
using PortBlog.API.Entities;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Repositories.Contracts
|
||||||
|
{
|
||||||
|
public interface IHobbyRepository
|
||||||
|
{
|
||||||
|
Task<IEnumerable<Hobby>> GetHobbiesForResumeAsync(int resumeId);
|
||||||
|
}
|
||||||
|
}
|
||||||
11
PortBlog.API/Repositories/Contracts/IMailRepository.cs
Normal file
11
PortBlog.API/Repositories/Contracts/IMailRepository.cs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
using PortBlog.API.Entities;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Repositories.Contracts
|
||||||
|
{
|
||||||
|
public interface IMailRepository
|
||||||
|
{
|
||||||
|
void AddMessage(Message message);
|
||||||
|
|
||||||
|
Task<bool> SaveChangesAsync();
|
||||||
|
}
|
||||||
|
}
|
||||||
19
PortBlog.API/Repositories/Contracts/IResumeRepository.cs
Normal file
19
PortBlog.API/Repositories/Contracts/IResumeRepository.cs
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
using PortBlog.API.Entities;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Repositories.Contracts
|
||||||
|
{
|
||||||
|
public interface IResumeRepository
|
||||||
|
{
|
||||||
|
Task<Resume?> GetLatestResumeForCandidateAsync(int candidateId, bool includeOtherData = false);
|
||||||
|
|
||||||
|
Task<Resume?> GetHobbiesAsync(int candidateId);
|
||||||
|
|
||||||
|
Task<Resume?> GetResumeAsync(int candidateId);
|
||||||
|
|
||||||
|
Task<Resume?> GetCandidateWithSocialLinksAsync(int candidateId);
|
||||||
|
|
||||||
|
Task<Resume?> GetProjectsAsync(int candidateId);
|
||||||
|
|
||||||
|
Task<Blog?> GetBlogAsync(int candidate);
|
||||||
|
}
|
||||||
|
}
|
||||||
22
PortBlog.API/Repositories/ExperienceRepository.cs
Normal file
22
PortBlog.API/Repositories/ExperienceRepository.cs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using PortBlog.API.DbContexts;
|
||||||
|
using PortBlog.API.Entities;
|
||||||
|
using PortBlog.API.Repositories.Contracts;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Repositories
|
||||||
|
{
|
||||||
|
public class ExperienceRepository : IExperienceRepository
|
||||||
|
{
|
||||||
|
private readonly CvBlogContext _cvBlogContext;
|
||||||
|
|
||||||
|
public ExperienceRepository(CvBlogContext cvBlogContext)
|
||||||
|
{
|
||||||
|
_cvBlogContext = cvBlogContext;
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<IEnumerable<Experience>> GetExperiencesForResumeAsync(int resumeId)
|
||||||
|
{
|
||||||
|
return await _cvBlogContext.Experiences.Where(e => e.ResumeId == resumeId).OrderByDescending(e => e.StartDate).ToListAsync();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
22
PortBlog.API/Repositories/HobbyRepository.cs
Normal file
22
PortBlog.API/Repositories/HobbyRepository.cs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using PortBlog.API.DbContexts;
|
||||||
|
using PortBlog.API.Entities;
|
||||||
|
using PortBlog.API.Repositories.Contracts;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Repositories
|
||||||
|
{
|
||||||
|
public class HobbyRepository : IHobbyRepository
|
||||||
|
{
|
||||||
|
private readonly CvBlogContext _cvBlogContext;
|
||||||
|
|
||||||
|
public HobbyRepository(CvBlogContext cvBlogContext)
|
||||||
|
{
|
||||||
|
_cvBlogContext = cvBlogContext;
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<IEnumerable<Hobby>> GetHobbiesForResumeAsync(int resumeId)
|
||||||
|
{
|
||||||
|
return await _cvBlogContext.Hobbies.Where(h => h.ResumeId == resumeId).OrderBy(h => h.Order).ToListAsync();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
25
PortBlog.API/Repositories/MailRepository.cs
Normal file
25
PortBlog.API/Repositories/MailRepository.cs
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
using PortBlog.API.DbContexts;
|
||||||
|
using PortBlog.API.Entities;
|
||||||
|
using PortBlog.API.Repositories.Contracts;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Repositories
|
||||||
|
{
|
||||||
|
public class MailRepository : IMailRepository
|
||||||
|
{
|
||||||
|
private readonly CvBlogContext _cvBlogContext;
|
||||||
|
|
||||||
|
public MailRepository(CvBlogContext cvBlogContext)
|
||||||
|
{
|
||||||
|
_cvBlogContext = cvBlogContext;
|
||||||
|
}
|
||||||
|
public void AddMessage(Message message)
|
||||||
|
{
|
||||||
|
_cvBlogContext.Messages.Add(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<bool> SaveChangesAsync()
|
||||||
|
{
|
||||||
|
return (await _cvBlogContext.SaveChangesAsync() >= 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
87
PortBlog.API/Repositories/ResumeRepository.cs
Normal file
87
PortBlog.API/Repositories/ResumeRepository.cs
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using PortBlog.API.DbContexts;
|
||||||
|
using PortBlog.API.Entities;
|
||||||
|
using PortBlog.API.Models;
|
||||||
|
using PortBlog.API.Repositories.Contracts;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Repositories
|
||||||
|
{
|
||||||
|
public class ResumeRepository : IResumeRepository
|
||||||
|
{
|
||||||
|
private readonly CvBlogContext _cvBlogContext;
|
||||||
|
|
||||||
|
public ResumeRepository(CvBlogContext cvBlogContext)
|
||||||
|
{
|
||||||
|
_cvBlogContext = cvBlogContext;
|
||||||
|
}
|
||||||
|
public async Task<Resume?> GetLatestResumeForCandidateAsync(int candidateId, bool includeOtherData)
|
||||||
|
{
|
||||||
|
if(includeOtherData)
|
||||||
|
{
|
||||||
|
return await _cvBlogContext.Resumes
|
||||||
|
.Include(r => r.Candidate)
|
||||||
|
.Include(r => r.Academics.OrderByDescending(a => a.StartYear))
|
||||||
|
.Include(r => r.Experiences.OrderByDescending(e => e.StartDate))
|
||||||
|
.ThenInclude(e => e.Details)
|
||||||
|
.Include(r => r.SocialLinks)
|
||||||
|
.ThenInclude(s => s.Blog)
|
||||||
|
.ThenInclude(b => b.Posts.OrderByDescending(p => p.Likes).Take(5))
|
||||||
|
.Include(r => r.Hobbies)
|
||||||
|
.Include(r => r.Certifications)
|
||||||
|
.Include(r => r.Skills)
|
||||||
|
.Include(r => r.Projects)
|
||||||
|
.Where(r => r.CandidateId == candidateId)
|
||||||
|
.OrderByDescending(r => r.Order).FirstOrDefaultAsync();
|
||||||
|
}
|
||||||
|
|
||||||
|
return await _cvBlogContext.Resumes.Where(r => r.CandidateId == candidateId).OrderByDescending(r => r.Order).FirstOrDefaultAsync();
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<Resume?> GetHobbiesAsync(int candidateId)
|
||||||
|
{
|
||||||
|
return await _cvBlogContext.Resumes
|
||||||
|
.Include(r => r.Hobbies)
|
||||||
|
.Where(r => r.CandidateId == candidateId)
|
||||||
|
.OrderByDescending(r => r.Order).FirstOrDefaultAsync();
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<Resume?> GetResumeAsync(int candidateId)
|
||||||
|
{
|
||||||
|
return await _cvBlogContext.Resumes
|
||||||
|
.Include(r => r.Academics.OrderByDescending(a => a.StartYear))
|
||||||
|
.Include(r => r.Experiences.OrderByDescending(e => e.StartDate))
|
||||||
|
.Include(r => r.Skills)
|
||||||
|
.Where(r => r.CandidateId == candidateId)
|
||||||
|
.FirstOrDefaultAsync();
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<Resume?> GetCandidateWithSocialLinksAsync(int candidateId)
|
||||||
|
{
|
||||||
|
return await _cvBlogContext.Resumes
|
||||||
|
.Include(r => r.Candidate)
|
||||||
|
.Include(r => r.SocialLinks)
|
||||||
|
.Where(r => r.CandidateId == candidateId)
|
||||||
|
.FirstOrDefaultAsync();
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<Resume?> GetProjectsAsync(int candidateId)
|
||||||
|
{
|
||||||
|
return await _cvBlogContext.Resumes
|
||||||
|
.Include(r => r.Projects)
|
||||||
|
.Where(r => r.CandidateId == candidateId)
|
||||||
|
.FirstOrDefaultAsync();
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<Blog?> GetBlogAsync(int candidate)
|
||||||
|
{
|
||||||
|
var result = await _cvBlogContext.Resumes
|
||||||
|
.Include(r => r.SocialLinks)
|
||||||
|
.ThenInclude(s => s.Blog)
|
||||||
|
.ThenInclude(b => b.Posts.OrderByDescending(p => p.Likes).Take(5))
|
||||||
|
.Where(r => r.CandidateId == candidate)
|
||||||
|
.FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
return result?.SocialLinks?.Blog;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
10
PortBlog.API/Services/Contracts/IMailService.cs
Normal file
10
PortBlog.API/Services/Contracts/IMailService.cs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
using PortBlog.API.Entities;
|
||||||
|
using PortBlog.API.Models;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Services.Contracts
|
||||||
|
{
|
||||||
|
public interface IMailService
|
||||||
|
{
|
||||||
|
Task SendAsync(MessageSendDto message);
|
||||||
|
}
|
||||||
|
}
|
||||||
75
PortBlog.API/Services/MailService.cs
Normal file
75
PortBlog.API/Services/MailService.cs
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
using AutoMapper;
|
||||||
|
using PortBlog.API.Common;
|
||||||
|
using PortBlog.API.Entities;
|
||||||
|
using PortBlog.API.Models;
|
||||||
|
using PortBlog.API.Repositories.Contracts;
|
||||||
|
using PortBlog.API.Services.Contracts;
|
||||||
|
using System.Net;
|
||||||
|
using System.Net.Mail;
|
||||||
|
|
||||||
|
namespace PortBlog.API.Services
|
||||||
|
{
|
||||||
|
public class MailService : IMailService
|
||||||
|
{
|
||||||
|
private readonly ILogger<MailService> _logger;
|
||||||
|
private readonly IConfiguration _configuration;
|
||||||
|
private readonly IMailRepository _mailRepository;
|
||||||
|
private readonly IMapper _mapper;
|
||||||
|
|
||||||
|
public MailService(IConfiguration configuration, ILogger<MailService> logger, IMailRepository mailRepository, IMapper mapper)
|
||||||
|
{
|
||||||
|
_logger = logger;
|
||||||
|
_configuration = configuration;
|
||||||
|
_mailRepository = mailRepository;
|
||||||
|
_mapper = mapper;
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task SendAsync(MessageSendDto messageSendDto)
|
||||||
|
{
|
||||||
|
_logger.LogInformation($"Sending message from {messageSendDto.Name} ({messageSendDto.FromEmail}).");
|
||||||
|
messageSendDto.Subject = $"Message from {messageSendDto.Name}: Portfolio";
|
||||||
|
var messageEntity = _mapper.Map<Message>(messageSendDto);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var mailSettings = _configuration.GetSection("MailSettings").Get<MailSettingsDto>();
|
||||||
|
|
||||||
|
if (mailSettings != null && mailSettings.Enable)
|
||||||
|
{
|
||||||
|
using (var client = new SmtpClient())
|
||||||
|
{
|
||||||
|
client.Host = mailSettings.Host;
|
||||||
|
client.Port = mailSettings.Port;
|
||||||
|
client.DeliveryMethod = SmtpDeliveryMethod.Network;
|
||||||
|
client.UseDefaultCredentials = false;
|
||||||
|
client.EnableSsl = true;
|
||||||
|
client.Credentials = new NetworkCredential(mailSettings.Email, mailSettings.Password);
|
||||||
|
|
||||||
|
using (var messageMessage = new MailMessage(
|
||||||
|
from: new MailAddress(messageSendDto.FromEmail),
|
||||||
|
to: new MailAddress(messageSendDto.ToEmail, messageSendDto.CandidateName)
|
||||||
|
))
|
||||||
|
{
|
||||||
|
|
||||||
|
messageMessage.Subject = messageSendDto.Subject;
|
||||||
|
messageMessage.Body = messageSendDto.Content;
|
||||||
|
|
||||||
|
client.Send(messageMessage);
|
||||||
|
messageSendDto.SentStatus = (int)MailConstants.MailStatus.Success;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_mailRepository.AddMessage(messageEntity);
|
||||||
|
await _mailRepository.SaveChangesAsync();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
_logger.LogCritical($"Exception while sending mail from {new MailAddress(messageSendDto.FromEmail, messageSendDto.Name)}", ex);
|
||||||
|
messageSendDto.SentStatus = (int)MailConstants.MailStatus.Failed;
|
||||||
|
_mailRepository.AddMessage(messageEntity);
|
||||||
|
await _mailRepository.SaveChangesAsync();
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,8 +1,22 @@
|
|||||||
{
|
{
|
||||||
|
"ConnectionStrings": {
|
||||||
|
"PortBlogDBConnectionString": "SERVER=192.168.0.197; DATABASE=cv_blog; UID=PortBlogDevUser; PWD=p@$$w0rd1234",
|
||||||
|
"Encryption": "false",
|
||||||
|
"Key": "rgdBsYjrgQV9YaE+6QFK5oyTOWwbl2bSWkuc2JXcIyw="
|
||||||
|
},
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"Default": "Information",
|
"Default": "Information",
|
||||||
"Microsoft.AspNetCore": "Warning"
|
"Microsoft.AspNetCore": "Warning"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"XApiKey": "c6eAXYcNT873TT7BfMgQyS4ii7hxa53TLEUN7pAGaaU=",
|
||||||
|
"MailSettings": {
|
||||||
|
"Enable": false,
|
||||||
|
"Host": "smtp.gmail.com",
|
||||||
|
"Port": 587,
|
||||||
|
"Email": "",
|
||||||
|
"Password": ""
|
||||||
|
},
|
||||||
|
"AllowedCorsOrigins": "http://localhost:4000,http://127.0.0.1:4000"
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user