From 62c7a299090eee55b2422ff7024863928946cf76 Mon Sep 17 00:00:00 2001 From: Bangara Raju Kottedi Date: Thu, 2 May 2024 17:06:43 +0530 Subject: [PATCH] code refactoring --- PortBlog.API/DbContexts/Seed/InitialData.cs | 12 +- PortBlog.API/Entities/Post.cs | 4 +- PortBlog.API/Entities/Project.cs | 4 +- ...02091648_ProjectAndPostChanges.Designer.cs | 1369 +++++++++++++++++ .../20240502091648_ProjectAndPostChanges.cs | 547 +++++++ .../Migrations/CvBlogContextModelSnapshot.cs | 160 +- PortBlog.API/Models/CvDto.cs | 7 +- PortBlog.API/Models/PostDto.cs | 2 +- PortBlog.API/Models/ProjectDto.cs | 2 +- PortBlog.API/Models/ProjectsDto.cs | 7 +- PortBlog.API/PortBlog.API.xml | 12 + PortBlog.API/Profiles/BlogProfile.cs | 2 +- PortBlog.API/Profiles/ResumeProfile.cs | 12 +- 13 files changed, 2042 insertions(+), 98 deletions(-) create mode 100644 PortBlog.API/Migrations/20240502091648_ProjectAndPostChanges.Designer.cs create mode 100644 PortBlog.API/Migrations/20240502091648_ProjectAndPostChanges.cs diff --git a/PortBlog.API/DbContexts/Seed/InitialData.cs b/PortBlog.API/DbContexts/Seed/InitialData.cs index 7387553..74a40c9 100644 --- a/PortBlog.API/DbContexts/Seed/InitialData.cs +++ b/PortBlog.API/DbContexts/Seed/InitialData.cs @@ -175,7 +175,7 @@ namespace PortBlog.API.DbContexts.Seed ProjectId = 1, Name = "Transfora (Business Process Management)", Description = "Business Process Management", - Category = "Web Development", + Categories = "Web Development", ImagePath = "", TechnologiesUsed = ".NET, Angular", Responsibilities = "Developing, Testing, Support", @@ -187,7 +187,7 @@ namespace PortBlog.API.DbContexts.Seed ProjectId = 2, Name = "Transfora (Business Process Management)", Description = "Business Process Management", - Category = "Web Development", + Categories = "Web Development", ImagePath = "", TechnologiesUsed = ".NET, Angular", Responsibilities = "Developing, Testing, Support", @@ -199,7 +199,7 @@ namespace PortBlog.API.DbContexts.Seed ProjectId = 3, Name = "Transfora (Business Process Management)", Description = "Business Process Management", - Category = "Web Development", + Categories = "Web Development", ImagePath = "", TechnologiesUsed = ".NET, Angular", Responsibilities = "Developing, Testing, Support", @@ -229,7 +229,7 @@ namespace PortBlog.API.DbContexts.Seed Slug = "hello-world", Title = "Hello World", Description = "Hello World", - Category = "Welcome", + Categories = "Welcome", PostUrl = "https://bangararaju.kottedi.in/blog/hello-world", CreatedDate = DateTime.Now, BlogUrl = "https://bangararaju.kottedi.in/blog" @@ -240,7 +240,7 @@ namespace PortBlog.API.DbContexts.Seed Slug = "hello-world", Title = "Hello World", Description = "Hello World", - Category = "Welcome", + Categories = "Welcome", PostUrl = "https://bangararaju.kottedi.in/blog/hello-world", CreatedDate = DateTime.Now, BlogUrl = "https://bangararaju.kottedi.in/blog" @@ -251,7 +251,7 @@ namespace PortBlog.API.DbContexts.Seed Slug = "hello-world", Title = "Hello World", Description = "Hello World", - Category = "Welcome", + Categories = "Welcome", PostUrl = "https://bangararaju.kottedi.in/blog/hello-world", CreatedDate = DateTime.Now, BlogUrl = "https://bangararaju.kottedi.in/blog", diff --git a/PortBlog.API/Entities/Post.cs b/PortBlog.API/Entities/Post.cs index 26f98c4..f54cf9f 100644 --- a/PortBlog.API/Entities/Post.cs +++ b/PortBlog.API/Entities/Post.cs @@ -22,8 +22,8 @@ namespace PortBlog.API.Entities public string Description { get; set; } = string.Empty; [Required] - [MaxLength(100)] - public string Category { get; set; } = string.Empty; + [MaxLength(200)] + public string Categories { get; set; } = string.Empty; [MaxLength(100)] public string? Author { get; set; } diff --git a/PortBlog.API/Entities/Project.cs b/PortBlog.API/Entities/Project.cs index 3309156..f1cf2d4 100644 --- a/PortBlog.API/Entities/Project.cs +++ b/PortBlog.API/Entities/Project.cs @@ -18,8 +18,8 @@ namespace PortBlog.API.Entities public string Description { get; set; } = string.Empty; [Required] - [MaxLength(100)] - public string Category { get; set; } = string.Empty; + [MaxLength(200)] + public string Categories { get; set; } = string.Empty; [Required] [MaxLength(100)] diff --git a/PortBlog.API/Migrations/20240502091648_ProjectAndPostChanges.Designer.cs b/PortBlog.API/Migrations/20240502091648_ProjectAndPostChanges.Designer.cs new file mode 100644 index 0000000..9c9a7ec --- /dev/null +++ b/PortBlog.API/Migrations/20240502091648_ProjectAndPostChanges.Designer.cs @@ -0,0 +1,1369 @@ +// +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("20240502091648_ProjectAndPostChanges")] + partial class ProjectAndPostChanges + { + /// + 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("AcademicId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("AcademicId")); + + b.Property("CreatedBy") + .HasColumnType("longtext"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Degree") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("DegreeSpecialization") + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("EndYear") + .HasColumnType("int"); + + b.Property("Institution") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("ModifiedBy") + .HasColumnType("longtext"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("ResumeId") + .HasColumnType("int"); + + b.Property("StartYear") + .HasColumnType("int"); + + b.HasKey("AcademicId"); + + b.HasIndex("ResumeId"); + + b.ToTable("Academics"); + + b.HasData( + new + { + AcademicId = 1, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6162), + Degree = "High School", + EndYear = 2007, + Institution = "Pragati Little Public School", + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6162), + ResumeId = 1, + StartYear = 2006 + }, + new + { + AcademicId = 2, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6166), + Degree = "Intermediate", + DegreeSpecialization = "MPC", + EndYear = 2009, + Institution = "Sri Chaitanya Junior College", + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6166), + ResumeId = 1, + StartYear = 2007 + }, + new + { + AcademicId = 3, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6168), + Degree = "BTech", + DegreeSpecialization = "ECE", + EndYear = 2013, + Institution = "Kakinada Institute of Technology & Science", + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6168), + ResumeId = 1, + StartYear = 2009 + }); + }); + + modelBuilder.Entity("PortBlog.API.Entities.Blog", b => + { + b.Property("BlogUrl") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedBy") + .HasColumnType("longtext"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Description") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("ModifiedBy") + .HasColumnType("longtext"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("BlogUrl"); + + b.ToTable("Blogs"); + + b.HasData( + new + { + BlogUrl = "https://bangararaju.kottedi.in/blog", + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6248), + Description = "Your Hub for Tech, DIY, and Innovation", + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6248), + Name = "Engineer's Odyssey" + }); + }); + + modelBuilder.Entity("PortBlog.API.Entities.Candidate", b => + { + b.Property("CandidateId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("CandidateId")); + + b.Property("Address") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Avatar") + .HasColumnType("longtext"); + + b.Property("CreatedBy") + .HasColumnType("longtext"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Dob") + .HasColumnType("datetime(6)"); + + b.Property("Email") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("FirstName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Gender") + .HasColumnType("longtext"); + + b.Property("LastName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ModifiedBy") + .HasColumnType("longtext"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("Phone") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)"); + + b.HasKey("CandidateId"); + + b.ToTable("Candidates"); + + b.HasData( + new + { + CandidateId = 1, + Address = "Samalkot, Andhra Pradesh, India", + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(5877), + Dob = new DateTime(1992, 5, 6, 0, 0, 0, 0, DateTimeKind.Unspecified), + Email = "bangararaju.kottedi@gmail.com", + FirstName = "Bangara Raju", + Gender = "Male", + LastName = "Kottedi", + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(5895), + Phone = "+91 9441212187" + }); + }); + + modelBuilder.Entity("PortBlog.API.Entities.Certification", b => + { + b.Property("CertificationId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("CertificationId")); + + b.Property("CertificationLink") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CertificationName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedBy") + .HasColumnType("longtext"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("ExpiryDate") + .HasColumnType("datetime(6)"); + + b.Property("IssueDate") + .HasColumnType("datetime(6)"); + + b.Property("IssuingOrganization") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("ModifiedBy") + .HasColumnType("longtext"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("ResumeId") + .HasColumnType("int"); + + b.HasKey("CertificationId"); + + b.HasIndex("ResumeId"); + + b.ToTable("Certifications"); + }); + + modelBuilder.Entity("PortBlog.API.Entities.ClientLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id")); + + b.Property("ClientIp") + .IsRequired() + .HasColumnType("longtext"); + + b.Property("ClientLocation") + .HasColumnType("longtext"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("SiteName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("SiteUrl") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.ToTable("ClientLogs"); + }); + + modelBuilder.Entity("PortBlog.API.Entities.Experience", b => + { + b.Property("ExperienceId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("ExperienceId")); + + b.Property("Company") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("CreatedBy") + .HasColumnType("longtext"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Description") + .HasMaxLength(500) + .HasColumnType("varchar(500)"); + + b.Property("EndDate") + .HasColumnType("datetime(6)"); + + b.Property("Location") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("ModifiedBy") + .HasColumnType("longtext"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("ResumeId") + .HasColumnType("int"); + + b.Property("StartDate") + .HasColumnType("datetime(6)"); + + b.Property("Title") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("ExperienceId"); + + b.HasIndex("ResumeId"); + + b.ToTable("Experiences"); + + b.HasData( + new + { + ExperienceId = 1, + Company = "Agility E Services", + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6297), + Description = "", + EndDate = new DateTime(2016, 4, 25, 0, 0, 0, 0, DateTimeKind.Unspecified), + Location = "Hyderabad", + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6297), + ResumeId = 1, + StartDate = new DateTime(2015, 9, 2, 0, 0, 0, 0, DateTimeKind.Unspecified), + Title = "Jr. Software Engineer" + }, + new + { + ExperienceId = 2, + Company = "Agility", + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6302), + Description = "", + EndDate = new DateTime(2022, 1, 31, 0, 0, 0, 0, DateTimeKind.Unspecified), + Location = "Kuwait", + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6302), + ResumeId = 1, + StartDate = new DateTime(2016, 5, 12, 0, 0, 0, 0, DateTimeKind.Unspecified), + Title = "Web Developer" + }, + new + { + ExperienceId = 3, + Company = "Agility", + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6305), + Description = "", + EndDate = new DateTime(2022, 10, 31, 0, 0, 0, 0, DateTimeKind.Unspecified), + Location = "Kuwait", + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6305), + ResumeId = 1, + StartDate = new DateTime(2022, 2, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + Title = "Senior Web Developer" + }, + new + { + ExperienceId = 4, + Company = "Agility E Services", + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6307), + Description = "", + EndDate = new DateTime(2024, 4, 12, 0, 0, 0, 0, DateTimeKind.Unspecified), + Location = "Hyderabad", + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6308), + ResumeId = 1, + StartDate = new DateTime(2022, 11, 4, 0, 0, 0, 0, DateTimeKind.Unspecified), + Title = "Technology Specialist" + }); + }); + + modelBuilder.Entity("PortBlog.API.Entities.ExperienceDetails", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id")); + + b.Property("CreatedBy") + .HasColumnType("longtext"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Details") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)"); + + b.Property("ExperienceId") + .HasColumnType("int"); + + b.Property("ModifiedBy") + .HasColumnType("longtext"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("Order") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("ExperienceId"); + + b.ToTable("ExperienceDetails"); + + b.HasData( + new + { + Id = 1, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6333), + 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.", + ExperienceId = 1, + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6333), + Order = 1 + }, + new + { + Id = 2, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6336), + 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.", + ExperienceId = 1, + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6337), + Order = 2 + }, + new + { + Id = 3, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6338), + 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.", + ExperienceId = 2, + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6338), + Order = 1 + }, + new + { + Id = 4, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6339), + 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.", + ExperienceId = 2, + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6340), + Order = 2 + }, + new + { + Id = 5, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6341), + 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.", + ExperienceId = 3, + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6341), + Order = 1 + }, + new + { + Id = 6, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6343), + 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.", + ExperienceId = 3, + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6343), + Order = 2 + }, + new + { + Id = 7, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6344), + 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.", + ExperienceId = 4, + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6345), + Order = 1 + }, + new + { + Id = 8, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6346), + 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.", + ExperienceId = 4, + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6346), + Order = 2 + }); + }); + + modelBuilder.Entity("PortBlog.API.Entities.Hobby", b => + { + b.Property("HobbyId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("HobbyId")); + + b.Property("CreatedBy") + .HasColumnType("longtext"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Description") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)"); + + b.Property("Icon") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ModifiedBy") + .HasColumnType("longtext"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Order") + .HasColumnType("int"); + + b.Property("ResumeId") + .HasColumnType("int"); + + b.HasKey("HobbyId"); + + b.HasIndex("ResumeId"); + + b.ToTable("Hobbies"); + + b.HasData( + new + { + HobbyId = 1, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6128), + Description = "Crafting Professional-Quality Websites with Precision", + Icon = "fa-square-terminal", + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6128), + Name = "Web Development", + Order = 1, + ResumeId = 1 + }, + new + { + HobbyId = 2, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6134), + Description = "Streamlining and Simplifying Complex Tasks through Automation", + Icon = "fa-robot", + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6135), + Name = "Automation", + Order = 2, + ResumeId = 1 + }, + new + { + HobbyId = 3, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6137), + Description = "Sharing the knowledge and insights I’ve gathered along my journey", + Icon = "fa-typewriter", + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6137), + Name = "Blogging", + Order = 3, + ResumeId = 1 + }, + new + { + HobbyId = 4, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6139), + Description = "Cultivating Nature's Beauty and Bounty", + Icon = "fa-seedling", + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6139), + Name = "Gardening", + Order = 4, + ResumeId = 1 + }); + }); + + modelBuilder.Entity("PortBlog.API.Entities.Message", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id")); + + b.Property("CandidateId") + .HasColumnType("int"); + + b.Property("Content") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FromEmail") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("SentStatus") + .HasColumnType("int"); + + b.Property("Subject") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ToEmail") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("Id"); + + b.HasIndex("CandidateId"); + + b.ToTable("Messages"); + }); + + modelBuilder.Entity("PortBlog.API.Entities.Post", b => + { + b.Property("PostId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("PostId")); + + b.Property("Author") + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("BlogUrl") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Categories") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Comments") + .HasColumnType("int"); + + b.Property("CreatedBy") + .HasColumnType("longtext"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Description") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Image") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Likes") + .HasColumnType("int"); + + b.Property("ModifiedBy") + .HasColumnType("longtext"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("PostUrl") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Slug") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Title") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Views") + .HasColumnType("int"); + + b.HasKey("PostId"); + + b.HasIndex("BlogUrl"); + + b.ToTable("Posts"); + + b.HasData( + new + { + PostId = 1, + BlogUrl = "https://bangararaju.kottedi.in/blog", + Categories = "Welcome", + Comments = 0, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6269), + Description = "Hello World", + Likes = 0, + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6266), + PostUrl = "https://bangararaju.kottedi.in/blog/hello-world", + Slug = "hello-world", + Title = "Hello World", + Views = 0 + }, + new + { + PostId = 2, + BlogUrl = "https://bangararaju.kottedi.in/blog", + Categories = "Welcome", + Comments = 0, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6274), + Description = "Hello World", + Likes = 0, + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6273), + PostUrl = "https://bangararaju.kottedi.in/blog/hello-world", + Slug = "hello-world", + Title = "Hello World", + Views = 0 + }, + new + { + PostId = 3, + BlogUrl = "https://bangararaju.kottedi.in/blog", + Categories = "Welcome", + Comments = 0, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6277), + Description = "Hello World", + Likes = 0, + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6276), + PostUrl = "https://bangararaju.kottedi.in/blog/hello-world", + Slug = "hello-world", + Title = "Hello World", + Views = 0 + }); + }); + + modelBuilder.Entity("PortBlog.API.Entities.Project", b => + { + b.Property("ProjectId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("ProjectId")); + + b.Property("Categories") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Challenges") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedBy") + .HasColumnType("longtext"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Description") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("varchar(500)"); + + b.Property("EndDate") + .HasColumnType("datetime(6)"); + + b.Property("ImagePath") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Impact") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("LessonsLearned") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("ModifiedBy") + .HasColumnType("longtext"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("Responsibilities") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("ResumeId") + .HasColumnType("int"); + + b.Property("Roles") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("StartDate") + .HasColumnType("datetime(6)"); + + b.Property("Status") + .HasMaxLength(20) + .HasColumnType("varchar(20)"); + + b.Property("TechnologiesUsed") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("ProjectId"); + + b.HasIndex("ResumeId"); + + b.ToTable("Projects"); + + b.HasData( + new + { + ProjectId = 1, + Categories = "Web Development", + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6218), + Description = "Business Process Management", + ImagePath = "", + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6219), + Name = "Transfora (Business Process Management)", + Responsibilities = "Developing, Testing, Support", + ResumeId = 1, + Roles = "Coding, Reviewing, Testing", + TechnologiesUsed = ".NET, Angular" + }, + new + { + ProjectId = 2, + Categories = "Web Development", + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6224), + Description = "Business Process Management", + ImagePath = "", + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6225), + Name = "Transfora (Business Process Management)", + Responsibilities = "Developing, Testing, Support", + ResumeId = 1, + Roles = "Coding, Reviewing, Testing", + TechnologiesUsed = ".NET, Angular" + }, + new + { + ProjectId = 3, + Categories = "Web Development", + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6227), + Description = "Business Process Management", + ImagePath = "", + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6227), + Name = "Transfora (Business Process Management)", + Responsibilities = "Developing, Testing, Support", + ResumeId = 1, + Roles = "Coding, Reviewing, Testing", + TechnologiesUsed = ".NET, Angular" + }); + }); + + modelBuilder.Entity("PortBlog.API.Entities.Resume", b => + { + b.Property("ResumeId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("ResumeId")); + + b.Property("About") + .IsRequired() + .HasMaxLength(1000) + .HasColumnType("varchar(1000)"); + + b.Property("CandidateId") + .HasColumnType("int"); + + b.Property("CreatedBy") + .HasColumnType("longtext"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("ModifiedBy") + .HasColumnType("longtext"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("Order") + .HasColumnType("int"); + + b.Property("Title") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.HasKey("ResumeId"); + + b.HasIndex("CandidateId"); + + b.ToTable("Resumes"); + + b.HasData( + new + { + ResumeId = 1, + 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.", + CandidateId = 1, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6082), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6082), + Order = 1, + Title = "Full Stack Developer" + }); + }); + + modelBuilder.Entity("PortBlog.API.Entities.ResumeFile", b => + { + b.Property("FileId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("FileId")); + + b.Property("CreatedBy") + .HasColumnType("longtext"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("FileFormat") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("FilePath") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("varchar(100)"); + + b.Property("ModifiedBy") + .HasColumnType("longtext"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("ResumeId") + .HasColumnType("int"); + + b.Property("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("SkillId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("SkillId")); + + b.Property("CreatedBy") + .HasColumnType("longtext"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Description") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("ModifiedBy") + .HasColumnType("longtext"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ProficiencyLevel") + .HasColumnType("int"); + + b.Property("ResumeId") + .HasColumnType("int"); + + b.HasKey("SkillId"); + + b.HasIndex("ResumeId"); + + b.ToTable("Skills"); + + b.HasData( + new + { + SkillId = 1, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6187), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6187), + Name = "Web Development", + ProficiencyLevel = 80, + ResumeId = 1 + }, + new + { + SkillId = 2, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6191), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6191), + Name = "Web Development", + ProficiencyLevel = 80, + ResumeId = 1 + }, + new + { + SkillId = 3, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6193), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6193), + Name = "Web Development", + ProficiencyLevel = 80, + ResumeId = 1 + }, + new + { + SkillId = 4, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6194), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6195), + Name = "Web Development", + ProficiencyLevel = 80, + ResumeId = 1 + }, + new + { + SkillId = 5, + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6196), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6196), + Name = "Web Development", + ProficiencyLevel = 80, + ResumeId = 1 + }); + }); + + modelBuilder.Entity("PortBlog.API.Entities.SocialLinks", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id")); + + b.Property("BlogUrl") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("CreatedBy") + .HasColumnType("longtext"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Facebook") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("GitHub") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Instagram") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Linkedin") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("ModifiedBy") + .HasColumnType("longtext"); + + b.Property("ModifiedDate") + .HasColumnType("datetime(6)"); + + b.Property("PersonalWebsite") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("ResumeId") + .HasColumnType("int"); + + b.Property("Twitter") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.HasKey("Id"); + + b.HasIndex("BlogUrl"); + + b.HasIndex("ResumeId") + .IsUnique(); + + b.ToTable("SocialLinks"); + + b.HasData( + new + { + Id = 1, + BlogUrl = "https://bangararaju.kottedi.in/blog", + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6106), + GitHub = "https://github.com/rajukottedi", + Linkedin = "https://in.linkedin.com/in/bangara-raju-kottedi-299072109", + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6106), + ResumeId = 1 + }); + }); + + 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("Hobbies") + .HasForeignKey("ResumeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Resume"); + }); + + modelBuilder.Entity("PortBlog.API.Entities.Message", b => + { + b.HasOne("PortBlog.API.Entities.Candidate", "Candidate") + .WithMany() + .HasForeignKey("CandidateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Candidate"); + }); + + 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("Hobbies"); + + b.Navigation("Projects"); + + b.Navigation("ResumeFile"); + + b.Navigation("Skills"); + + b.Navigation("SocialLinks"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/PortBlog.API/Migrations/20240502091648_ProjectAndPostChanges.cs b/PortBlog.API/Migrations/20240502091648_ProjectAndPostChanges.cs new file mode 100644 index 0000000..a94875d --- /dev/null +++ b/PortBlog.API/Migrations/20240502091648_ProjectAndPostChanges.cs @@ -0,0 +1,547 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace PortBlog.API.Migrations +{ + /// + public partial class ProjectAndPostChanges : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "Category", + table: "Projects"); + + migrationBuilder.DropColumn( + name: "Category", + table: "Posts"); + + migrationBuilder.AddColumn( + name: "Categories", + table: "Projects", + type: "varchar(200)", + maxLength: 200, + nullable: false, + defaultValue: "") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + 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) }); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "Categories", + table: "Projects"); + + migrationBuilder.DropColumn( + name: "Categories", + table: "Posts"); + + migrationBuilder.AddColumn( + name: "Category", + table: "Projects", + type: "varchar(100)", + maxLength: 100, + nullable: false, + defaultValue: "") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + 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) }); + } + } +} diff --git a/PortBlog.API/Migrations/CvBlogContextModelSnapshot.cs b/PortBlog.API/Migrations/CvBlogContextModelSnapshot.cs index 880a64b..ad7d96b 100644 --- a/PortBlog.API/Migrations/CvBlogContextModelSnapshot.cs +++ b/PortBlog.API/Migrations/CvBlogContextModelSnapshot.cs @@ -75,35 +75,35 @@ namespace PortBlog.API.Migrations new { AcademicId = 1, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4502), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6162), Degree = "High School", EndYear = 2007, Institution = "Pragati Little Public School", - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4503), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6162), ResumeId = 1, StartYear = 2006 }, new { AcademicId = 2, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4505), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6166), Degree = "Intermediate", DegreeSpecialization = "MPC", EndYear = 2009, Institution = "Sri Chaitanya Junior College", - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4505), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6166), ResumeId = 1, StartYear = 2007 }, new { AcademicId = 3, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4538), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6168), Degree = "BTech", DegreeSpecialization = "ECE", EndYear = 2013, Institution = "Kakinada Institute of Technology & Science", - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4538), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6168), ResumeId = 1, StartYear = 2009 }); @@ -144,9 +144,9 @@ namespace PortBlog.API.Migrations new { BlogUrl = "https://bangararaju.kottedi.in/blog", - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4614), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6248), Description = "Your Hub for Tech, DIY, and Innovation", - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4615), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6248), Name = "Engineer's Odyssey" }); }); @@ -213,13 +213,13 @@ namespace PortBlog.API.Migrations { CandidateId = 1, Address = "Samalkot, Andhra Pradesh, India", - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4300), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(5877), Dob = new DateTime(1992, 5, 6, 0, 0, 0, 0, DateTimeKind.Unspecified), Email = "bangararaju.kottedi@gmail.com", FirstName = "Bangara Raju", Gender = "Male", LastName = "Kottedi", - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4316), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(5895), Phone = "+91 9441212187" }); }); @@ -366,11 +366,11 @@ namespace PortBlog.API.Migrations { ExperienceId = 1, Company = "Agility E Services", - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4663), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6297), Description = "", EndDate = new DateTime(2016, 4, 25, 0, 0, 0, 0, DateTimeKind.Unspecified), Location = "Hyderabad", - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4664), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6297), ResumeId = 1, StartDate = new DateTime(2015, 9, 2, 0, 0, 0, 0, DateTimeKind.Unspecified), Title = "Jr. Software Engineer" @@ -379,11 +379,11 @@ namespace PortBlog.API.Migrations { ExperienceId = 2, Company = "Agility", - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4668), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6302), Description = "", EndDate = new DateTime(2022, 1, 31, 0, 0, 0, 0, DateTimeKind.Unspecified), Location = "Kuwait", - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4668), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6302), ResumeId = 1, StartDate = new DateTime(2016, 5, 12, 0, 0, 0, 0, DateTimeKind.Unspecified), Title = "Web Developer" @@ -392,11 +392,11 @@ namespace PortBlog.API.Migrations { ExperienceId = 3, Company = "Agility", - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4671), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6305), Description = "", EndDate = new DateTime(2022, 10, 31, 0, 0, 0, 0, DateTimeKind.Unspecified), Location = "Kuwait", - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4671), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6305), ResumeId = 1, StartDate = new DateTime(2022, 2, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), Title = "Senior Web Developer" @@ -405,11 +405,11 @@ namespace PortBlog.API.Migrations { ExperienceId = 4, Company = "Agility E Services", - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4673), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6307), Description = "", EndDate = new DateTime(2024, 4, 12, 0, 0, 0, 0, DateTimeKind.Unspecified), Location = "Hyderabad", - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4673), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6308), ResumeId = 1, StartDate = new DateTime(2022, 11, 4, 0, 0, 0, 0, DateTimeKind.Unspecified), Title = "Technology Specialist" @@ -457,73 +457,73 @@ namespace PortBlog.API.Migrations new { Id = 1, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4696), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6333), 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.", ExperienceId = 1, - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4696), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6333), Order = 1 }, new { Id = 2, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4699), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6336), 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.", ExperienceId = 1, - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4699), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6337), Order = 2 }, new { Id = 3, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4700), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6338), 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.", ExperienceId = 2, - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4701), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6338), Order = 1 }, new { Id = 4, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4702), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6339), 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.", ExperienceId = 2, - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4702), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6340), Order = 2 }, new { Id = 5, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4703), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6341), 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.", ExperienceId = 3, - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4703), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6341), Order = 1 }, new { Id = 6, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4705), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6343), 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.", ExperienceId = 3, - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4705), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6343), Order = 2 }, new { Id = 7, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4706), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6344), 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.", ExperienceId = 4, - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4707), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6345), Order = 1 }, new { Id = 8, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4708), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6346), 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.", ExperienceId = 4, - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4708), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6346), Order = 2 }); }); @@ -578,10 +578,10 @@ namespace PortBlog.API.Migrations new { HobbyId = 1, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4471), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6128), Description = "Crafting Professional-Quality Websites with Precision", Icon = "fa-square-terminal", - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4471), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6128), Name = "Web Development", Order = 1, ResumeId = 1 @@ -589,10 +589,10 @@ namespace PortBlog.API.Migrations new { HobbyId = 2, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4476), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6134), Description = "Streamlining and Simplifying Complex Tasks through Automation", Icon = "fa-robot", - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4476), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6135), Name = "Automation", Order = 2, ResumeId = 1 @@ -600,10 +600,10 @@ namespace PortBlog.API.Migrations new { HobbyId = 3, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4478), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6137), Description = "Sharing the knowledge and insights I’ve gathered along my journey", Icon = "fa-typewriter", - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4478), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6137), Name = "Blogging", Order = 3, ResumeId = 1 @@ -611,10 +611,10 @@ namespace PortBlog.API.Migrations new { HobbyId = 4, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4480), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6139), Description = "Cultivating Nature's Beauty and Bounty", Icon = "fa-seedling", - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4480), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6139), Name = "Gardening", Order = 4, ResumeId = 1 @@ -687,10 +687,10 @@ namespace PortBlog.API.Migrations .HasMaxLength(200) .HasColumnType("varchar(200)"); - b.Property("Category") + b.Property("Categories") .IsRequired() - .HasMaxLength(100) - .HasColumnType("varchar(100)"); + .HasMaxLength(200) + .HasColumnType("varchar(200)"); b.Property("Comments") .HasColumnType("int"); @@ -748,12 +748,12 @@ namespace PortBlog.API.Migrations { PostId = 1, BlogUrl = "https://bangararaju.kottedi.in/blog", - Category = "Welcome", + Categories = "Welcome", Comments = 0, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4636), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6269), Description = "Hello World", Likes = 0, - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4634), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6266), PostUrl = "https://bangararaju.kottedi.in/blog/hello-world", Slug = "hello-world", Title = "Hello World", @@ -763,12 +763,12 @@ namespace PortBlog.API.Migrations { PostId = 2, BlogUrl = "https://bangararaju.kottedi.in/blog", - Category = "Welcome", + Categories = "Welcome", Comments = 0, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4641), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6274), Description = "Hello World", Likes = 0, - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4639), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6273), PostUrl = "https://bangararaju.kottedi.in/blog/hello-world", Slug = "hello-world", Title = "Hello World", @@ -778,12 +778,12 @@ namespace PortBlog.API.Migrations { PostId = 3, BlogUrl = "https://bangararaju.kottedi.in/blog", - Category = "Welcome", + Categories = "Welcome", Comments = 0, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4643), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6277), Description = "Hello World", Likes = 0, - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4642), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6276), PostUrl = "https://bangararaju.kottedi.in/blog/hello-world", Slug = "hello-world", Title = "Hello World", @@ -799,10 +799,10 @@ namespace PortBlog.API.Migrations MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("ProjectId")); - b.Property("Category") + b.Property("Categories") .IsRequired() - .HasMaxLength(100) - .HasColumnType("varchar(100)"); + .HasMaxLength(200) + .HasColumnType("varchar(200)"); b.Property("Challenges") .HasMaxLength(200) @@ -880,11 +880,11 @@ namespace PortBlog.API.Migrations new { ProjectId = 1, - Category = "Web Development", - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4586), + Categories = "Web Development", + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6218), Description = "Business Process Management", ImagePath = "", - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4586), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6219), Name = "Transfora (Business Process Management)", Responsibilities = "Developing, Testing, Support", ResumeId = 1, @@ -894,11 +894,11 @@ namespace PortBlog.API.Migrations new { ProjectId = 2, - Category = "Web Development", - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4590), + Categories = "Web Development", + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6224), Description = "Business Process Management", ImagePath = "", - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4591), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6225), Name = "Transfora (Business Process Management)", Responsibilities = "Developing, Testing, Support", ResumeId = 1, @@ -908,11 +908,11 @@ namespace PortBlog.API.Migrations new { ProjectId = 3, - Category = "Web Development", - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4593), + Categories = "Web Development", + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6227), Description = "Business Process Management", ImagePath = "", - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4593), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6227), Name = "Transfora (Business Process Management)", Responsibilities = "Developing, Testing, Support", ResumeId = 1, @@ -969,8 +969,8 @@ namespace PortBlog.API.Migrations ResumeId = 1, 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.", CandidateId = 1, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4431), - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4431), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6082), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6082), Order = 1, Title = "Full Stack Developer" }); @@ -1071,8 +1071,8 @@ namespace PortBlog.API.Migrations new { SkillId = 1, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4559), - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4559), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6187), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6187), Name = "Web Development", ProficiencyLevel = 80, ResumeId = 1 @@ -1080,8 +1080,8 @@ namespace PortBlog.API.Migrations new { SkillId = 2, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4562), - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4562), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6191), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6191), Name = "Web Development", ProficiencyLevel = 80, ResumeId = 1 @@ -1089,8 +1089,8 @@ namespace PortBlog.API.Migrations new { SkillId = 3, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4564), - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4564), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6193), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6193), Name = "Web Development", ProficiencyLevel = 80, ResumeId = 1 @@ -1098,8 +1098,8 @@ namespace PortBlog.API.Migrations new { SkillId = 4, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4565), - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4565), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6194), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6195), Name = "Web Development", ProficiencyLevel = 80, ResumeId = 1 @@ -1107,8 +1107,8 @@ namespace PortBlog.API.Migrations new { SkillId = 5, - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4566), - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4567), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6196), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6196), Name = "Web Development", ProficiencyLevel = 80, ResumeId = 1 @@ -1181,10 +1181,10 @@ namespace PortBlog.API.Migrations { Id = 1, BlogUrl = "https://bangararaju.kottedi.in/blog", - CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4453), + CreatedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6106), GitHub = "https://github.com/rajukottedi", Linkedin = "https://in.linkedin.com/in/bangara-raju-kottedi-299072109", - ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4453), + ModifiedDate = new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6106), ResumeId = 1 }); }); diff --git a/PortBlog.API/Models/CvDto.cs b/PortBlog.API/Models/CvDto.cs index 57a467c..0bdc31c 100644 --- a/PortBlog.API/Models/CvDto.cs +++ b/PortBlog.API/Models/CvDto.cs @@ -66,7 +66,12 @@ { get { - return Projects.Select(p => p.Category).Distinct().ToList(); + var projectCategories = new List(); + foreach (var project in Projects) + { + projectCategories.AddRange(project.Categories); + } + return projectCategories.Distinct().ToList(); } } } diff --git a/PortBlog.API/Models/PostDto.cs b/PortBlog.API/Models/PostDto.cs index 0ac0944..e5f303f 100644 --- a/PortBlog.API/Models/PostDto.cs +++ b/PortBlog.API/Models/PostDto.cs @@ -10,7 +10,7 @@ public string Description { get; set; } = string.Empty; - public string Category { get; set; } = string.Empty; + public string Categories { get; set; } = string.Empty; public string PostUrl { get; set; } = string.Empty; diff --git a/PortBlog.API/Models/ProjectDto.cs b/PortBlog.API/Models/ProjectDto.cs index 8d3c023..2f79b73 100644 --- a/PortBlog.API/Models/ProjectDto.cs +++ b/PortBlog.API/Models/ProjectDto.cs @@ -10,7 +10,7 @@ namespace PortBlog.API.Models public string Description { get; set; } = string.Empty; - public string Category { get; set; } = string.Empty; + public ICollection Categories { get; set; } = new List(); public ICollection Roles { get; set; } = new List(); diff --git a/PortBlog.API/Models/ProjectsDto.cs b/PortBlog.API/Models/ProjectsDto.cs index b4df49f..b2a6732 100644 --- a/PortBlog.API/Models/ProjectsDto.cs +++ b/PortBlog.API/Models/ProjectsDto.cs @@ -8,7 +8,12 @@ { get { - return Projects.Select(p => p.Category).Distinct().ToList(); + var projectCategories = new List(); + foreach(var project in Projects) + { + projectCategories.AddRange(project.Categories); + } + return projectCategories.Distinct().ToList(); } } } diff --git a/PortBlog.API/PortBlog.API.xml b/PortBlog.API/PortBlog.API.xml index ba38f4e..2aa9968 100644 --- a/PortBlog.API/PortBlog.API.xml +++ b/PortBlog.API/PortBlog.API.xml @@ -145,6 +145,18 @@ + + + + + + + + + + + + CV details of the candidate diff --git a/PortBlog.API/Profiles/BlogProfile.cs b/PortBlog.API/Profiles/BlogProfile.cs index b1c8575..fb920f3 100644 --- a/PortBlog.API/Profiles/BlogProfile.cs +++ b/PortBlog.API/Profiles/BlogProfile.cs @@ -16,7 +16,7 @@ namespace PortBlog.API.Profiles ) .ForMember( dest => dest.ModifiedDate, - opts => opts.MapFrom(src => src.CreatedDate != null ? src.ModifiedDate.Value.ToString("MMM dd, yyyy") : string.Empty) + opts => opts.MapFrom(src => src.ModifiedDate != null ? src.ModifiedDate.Value.ToString("MMM dd, yyyy") : string.Empty) ); } } diff --git a/PortBlog.API/Profiles/ResumeProfile.cs b/PortBlog.API/Profiles/ResumeProfile.cs index 31ad2a3..fa66c5f 100644 --- a/PortBlog.API/Profiles/ResumeProfile.cs +++ b/PortBlog.API/Profiles/ResumeProfile.cs @@ -41,18 +41,24 @@ namespace PortBlog.API.Profiles .ForMember ( dest => dest.Roles, - src => src.MapFrom(src => !string.IsNullOrEmpty(src.Roles) ? src.Roles.Split(",", StringSplitOptions.RemoveEmptyEntries).ToList() : new List()) + src => src.MapFrom(src => !string.IsNullOrEmpty(src.Roles) ? src.Roles.Split(",", StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries).ToList() : new List()) ) .ForMember ( dest => dest.Responsibilities, - src => src.MapFrom(src => !string.IsNullOrEmpty(src.Responsibilities) ? src.Responsibilities.Split(",", StringSplitOptions.RemoveEmptyEntries).ToList() : new List()) + src => src.MapFrom(src => !string.IsNullOrEmpty(src.Responsibilities) ? src.Responsibilities.Split(",", StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries).ToList() : new List()) ) .ForMember ( dest => dest.TechnologiesUsed, - src => src.MapFrom(src => !string.IsNullOrEmpty(src.TechnologiesUsed) ? src.TechnologiesUsed.Split(",", StringSplitOptions.RemoveEmptyEntries).ToList() : new List()) + src => src.MapFrom(src => !string.IsNullOrEmpty(src.TechnologiesUsed) ? src.TechnologiesUsed.Split(",", StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries).ToList() : new List()) + ) + .ForMember + ( + dest => dest.Categories, + src => src.MapFrom(src => !string.IsNullOrEmpty(src.Categories) ? src.Categories.Split(",", StringSplitOptions.TrimEntries | StringSplitOptions.TrimEntries).ToList() : new List()) ); + CreateMap(); CreateMap() .ForMember