PortBlog.API/PortBlog.API/Migrations/20240425092347_InitialSeedData.cs
Bangara Raju Kottedi 4c6f9a4ba8 Changes:
Database Migration, Repositories, Automapper, Logger, StaticFiles
2024-04-26 02:34:47 +05:30

291 lines
20 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class InitialSeedData : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "Blogs",
columns: new[] { "BlogUrl", "CreatedBy", "CreatedDate", "Description", "ModifiedBy", "ModifiedDate", "Name" },
values: new object[] { "https://bangararaju.kottedi.in/blog", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6122), "Your Hub for Tech, DIY, and Innovation", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6122), "Engineer's Odyssey" });
migrationBuilder.InsertData(
table: "Candidates",
columns: new[] { "CandidateId", "Address", "Avatar", "CreatedBy", "CreatedDate", "Email", "FirstName", "Gender", "LastName", "ModifiedBy", "ModifiedDate", "Phone" },
values: new object[] { 1, "Samalkot, Andhra Pradesh, India", null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5678), "bangararaju.kottedi@gmail.com", "Bangara Raju", "Male", "Kottedi", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5692), "+91 9441212187" });
migrationBuilder.InsertData(
table: "Posts",
columns: new[] { "PostId", "Author", "BlogUrl", "Category", "Comments", "CreatedBy", "CreatedDate", "Description", "Image", "Likes", "ModifiedBy", "ModifiedDate", "PostUrl", "Slug", "Title", "Views" },
values: new object[,]
{
{ 1, null, "https://bangararaju.kottedi.in/blog", "Welcome", 0, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6152), "Hello World", null, 0, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6148), "https://bangararaju.kottedi.in/blog/hello-world", "hello-world", "Hello World", 0 },
{ 2, null, "https://bangararaju.kottedi.in/blog", "Welcome", 0, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6157), "Hello World", null, 0, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6155), "https://bangararaju.kottedi.in/blog/hello-world", "hello-world", "Hello World", 0 },
{ 3, null, "https://bangararaju.kottedi.in/blog", "Welcome", 0, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6160), "Hello World", null, 0, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6158), "https://bangararaju.kottedi.in/blog/hello-world", "hello-world", "Hello World", 0 }
});
migrationBuilder.InsertData(
table: "Resumes",
columns: new[] { "ResumeId", "About", "CandidateId", "CreatedBy", "CreatedDate", "ModifiedBy", "ModifiedDate", "Order", "Title" },
values: new object[] { 1, "I'm Full Stack Developer with 8+ years of hands-on experience in .NET development. Passionate and driven professional with expertise in .NET WebAPI, Angular, CI/CD, and a growing proficiency in Azure. I've successfully delivered robust applications, prioritizing efficiency and user experience. While I'm currently in the early stages of exploring Azure, I'm eager to expand my skill set and leverage cloud technologies to enhance scalability and performance. Known for my proactive approach and dedication to continuous learning, I'm committed to staying abreast of the latest technologies and methodologies to drive innovation and deliver exceptional results.", 1, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5849), null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5849), 1, "Full Stack Developer" });
migrationBuilder.InsertData(
table: "Academics",
columns: new[] { "AcademicId", "CreatedBy", "CreatedDate", "Degree", "DegreeSpecialization", "EndYear", "Institution", "ModifiedBy", "ModifiedDate", "ResumeId", "StartYear" },
values: new object[,]
{
{ 1, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6028), "High School", null, 2007, "Pragati Little Public School", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6029), 1, 2006 },
{ 2, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6032), "Intermediate", "MPC", 2009, "Sri Chaitanya Junior College", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6032), 1, 2007 },
{ 3, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6034), "BTech", "ECE", 2013, "Kakinada Institute of Technology & Science", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6035), 1, 2009 }
});
migrationBuilder.InsertData(
table: "Experiences",
columns: new[] { "ExperienceId", "Company", "CreatedBy", "CreatedDate", "Description", "EndDate", "Location", "ModifiedBy", "ModifiedDate", "ResumeId", "StartDate", "Title" },
values: new object[,]
{
{ 1, "Agility E Services", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6183), "", new DateTime(2016, 4, 25, 0, 0, 0, 0, DateTimeKind.Unspecified), "Hyderabad", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6183), 1, new DateTime(2015, 9, 2, 0, 0, 0, 0, DateTimeKind.Unspecified), "Jr. Software Engineer" },
{ 2, "Agility", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6192), "", new DateTime(2022, 1, 31, 0, 0, 0, 0, DateTimeKind.Unspecified), "Kuwait", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6192), 1, new DateTime(2016, 5, 12, 0, 0, 0, 0, DateTimeKind.Unspecified), "Web Developer" },
{ 3, "Agility", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6195), "", new DateTime(2022, 10, 31, 0, 0, 0, 0, DateTimeKind.Unspecified), "Kuwait", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6195), 1, new DateTime(2022, 2, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "Senior Web Developer" },
{ 4, "Agility E Services", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6198), "", new DateTime(2024, 4, 12, 0, 0, 0, 0, DateTimeKind.Unspecified), "Hyderabad", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6198), 1, new DateTime(2022, 11, 4, 0, 0, 0, 0, DateTimeKind.Unspecified), "Technology Specialist" }
});
migrationBuilder.InsertData(
table: "Hobbies",
columns: new[] { "HobbyId", "CreatedBy", "CreatedDate", "Description", "Icon", "ModifiedBy", "ModifiedDate", "Name", "Order", "ResumeId" },
values: new object[,]
{
{ 1, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5981), "Crafting Professional-Quality Websites with Precision", "fa-square-terminal", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5983), "Web Development", 1, 1 },
{ 2, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5990), "Streamlining and Simplifying Complex Tasks through Automation", "fa-robot", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5990), "Automation", 2, 1 },
{ 3, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5992), "Sharing the knowledge and insights Ive gathered along my journey", "fa-typewriter", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5993), "Blogging", 3, 1 },
{ 4, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5994), "Cultivating Nature's Beauty and Bounty", "fa-seedling", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5995), "Gardening", 4, 1 }
});
migrationBuilder.InsertData(
table: "Projects",
columns: new[] { "ProjectId", "Category", "Challenges", "CreatedBy", "CreatedDate", "Description", "EndDate", "ImagePath", "Impact", "LessonsLearned", "ModifiedBy", "ModifiedDate", "Name", "Responsibilities", "ResumeId", "Roles", "StartDate", "Status", "TechnologiesUsed" },
values: new object[,]
{
{ 1, "Web Development", null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6091), "Business Process Management", null, "", null, null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6091), "Transfora (Business Process Management)", "Developing, Testing, Support", 1, "Coding, Reviewing, Testing", null, null, ".NET, Angular" },
{ 2, "Web Development", null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6099), "Business Process Management", null, "", null, null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6099), "Transfora (Business Process Management)", "Developing, Testing, Support", 1, "Coding, Reviewing, Testing", null, null, ".NET, Angular" },
{ 3, "Web Development", null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6101), "Business Process Management", null, "", null, null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6102), "Transfora (Business Process Management)", "Developing, Testing, Support", 1, "Coding, Reviewing, Testing", null, null, ".NET, Angular" }
});
migrationBuilder.InsertData(
table: "Skills",
columns: new[] { "SkillId", "CreatedBy", "CreatedDate", "Description", "ModifiedBy", "ModifiedDate", "Name", "ProficiencyLevel", "ResumeId" },
values: new object[,]
{
{ 1, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6060), null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6061), "Web Development", 80, 1 },
{ 2, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6064), null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6064), "Web Development", 80, 1 },
{ 3, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6066), null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6066), "Web Development", 80, 1 },
{ 4, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6067), null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6068), "Web Development", 80, 1 },
{ 5, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6069), null, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6069), "Web Development", 80, 1 }
});
migrationBuilder.InsertData(
table: "SocialLinks",
columns: new[] { "Id", "BlogUrl", "CreatedBy", "CreatedDate", "Facebook", "GitHub", "Instagram", "Linkedin", "ModifiedBy", "ModifiedDate", "PersonalWebsite", "ResumeId", "Twitter" },
values: new object[] { 1, "https://bangararaju.kottedi.in/blog", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5878), null, "https://github.com/rajukottedi", null, "https://in.linkedin.com/in/bangara-raju-kottedi-299072109", null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(5878), null, 1, null });
migrationBuilder.InsertData(
table: "ExperienceDetails",
columns: new[] { "Id", "CreatedBy", "CreatedDate", "Details", "ExperienceId", "ModifiedBy", "ModifiedDate", "Order" },
values: new object[,]
{
{ 1, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6219), "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", 1, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6219), 1 },
{ 2, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6222), "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", 1, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6223), 2 },
{ 3, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6224), "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", 2, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6224), 1 },
{ 4, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6226), "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", 2, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6226), 2 },
{ 5, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6227), "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", 3, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6228), 1 },
{ 6, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6230), "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", 3, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6230), 2 },
{ 7, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6231), "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", 4, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6231), 1 },
{ 8, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6232), "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", 4, null, new DateTime(2024, 4, 25, 14, 53, 46, 863, DateTimeKind.Local).AddTicks(6233), 2 }
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3);
migrationBuilder.DeleteData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1);
migrationBuilder.DeleteData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2);
migrationBuilder.DeleteData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3);
migrationBuilder.DeleteData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4);
migrationBuilder.DeleteData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5);
migrationBuilder.DeleteData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6);
migrationBuilder.DeleteData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7);
migrationBuilder.DeleteData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8);
migrationBuilder.DeleteData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3);
migrationBuilder.DeleteData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4);
migrationBuilder.DeleteData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3);
migrationBuilder.DeleteData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3);
migrationBuilder.DeleteData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3);
migrationBuilder.DeleteData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4);
migrationBuilder.DeleteData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5);
migrationBuilder.DeleteData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog");
migrationBuilder.DeleteData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3);
migrationBuilder.DeleteData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4);
migrationBuilder.DeleteData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1);
}
}
}