Upgraded projects to .NET 9.0 and added new projects `KBR.Cache`, `KBR.Shared`, and `KBR.Shared.Lite` to the solution. Introduced JWT authentication and OTP handling with new models, services, and configuration options. Updated database schema with new entities `Users` and `RefreshTokens`, and added migrations for schema changes. Implemented caching strategies using `AppDistributedCache` with support for in-memory, SQL Server, and Redis. Enhanced email handling with `MailHelpers` for domain replacement. Updated controllers, repositories, and configuration files to support new features.
1485 lines
62 KiB
C#
1485 lines
62 KiB
C#
// <auto-generated />
|
||
using System;
|
||
using Microsoft.EntityFrameworkCore;
|
||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||
using Microsoft.EntityFrameworkCore.Metadata;
|
||
using Microsoft.EntityFrameworkCore.Migrations;
|
||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||
using PortBlog.API.DbContexts;
|
||
|
||
#nullable disable
|
||
|
||
namespace PortBlog.API.Migrations
|
||
{
|
||
[DbContext(typeof(CvBlogContext))]
|
||
[Migration("20251113135040_update-refreshtoken")]
|
||
partial class updaterefreshtoken
|
||
{
|
||
/// <inheritdoc />
|
||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||
{
|
||
#pragma warning disable 612, 618
|
||
modelBuilder
|
||
.HasAnnotation("ProductVersion", "9.0.9")
|
||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||
|
||
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
||
|
||
modelBuilder.Entity("PortBlog.API.Entities.Academic", b =>
|
||
{
|
||
b.Property<int>("AcademicId")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("AcademicId"));
|
||
|
||
b.Property<string>("CreatedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("CreatedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Degree")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.Property<string>("DegreeSpecialization")
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.Property<int>("EndYear")
|
||
.HasColumnType("int");
|
||
|
||
b.Property<string>("Institution")
|
||
.IsRequired()
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("ModifiedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("ModifiedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<int>("ResumeId")
|
||
.HasColumnType("int");
|
||
|
||
b.Property<int>("StartYear")
|
||
.HasColumnType("int");
|
||
|
||
b.HasKey("AcademicId");
|
||
|
||
b.HasIndex("ResumeId");
|
||
|
||
b.ToTable("Academics");
|
||
|
||
b.HasData(
|
||
new
|
||
{
|
||
AcademicId = 1,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(1251),
|
||
Degree = "High School",
|
||
EndYear = 2007,
|
||
Institution = "Pragati Little Public School",
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(1252),
|
||
ResumeId = 1,
|
||
StartYear = 2006
|
||
},
|
||
new
|
||
{
|
||
AcademicId = 2,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(2024),
|
||
Degree = "Intermediate",
|
||
DegreeSpecialization = "MPC",
|
||
EndYear = 2009,
|
||
Institution = "Sri Chaitanya Junior College",
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(2024),
|
||
ResumeId = 1,
|
||
StartYear = 2007
|
||
},
|
||
new
|
||
{
|
||
AcademicId = 3,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(2184),
|
||
Degree = "BTech",
|
||
DegreeSpecialization = "ECE",
|
||
EndYear = 2013,
|
||
Institution = "Kakinada Institute of Technology & Science",
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(2184),
|
||
ResumeId = 1,
|
||
StartYear = 2009
|
||
});
|
||
});
|
||
|
||
modelBuilder.Entity("PortBlog.API.Entities.Blog", b =>
|
||
{
|
||
b.Property<string>("BlogUrl")
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("CreatedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("CreatedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Description")
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("ModifiedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("ModifiedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Name")
|
||
.IsRequired()
|
||
.HasMaxLength(50)
|
||
.HasColumnType("varchar(50)");
|
||
|
||
b.HasKey("BlogUrl");
|
||
|
||
b.ToTable("Blogs");
|
||
|
||
b.HasData(
|
||
new
|
||
{
|
||
BlogUrl = "https://bangararaju.kottedi.in/blog",
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(9145),
|
||
Description = "Your Hub for Tech, DIY, and Innovation",
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(9146),
|
||
Name = "Engineer's Odyssey"
|
||
});
|
||
});
|
||
|
||
modelBuilder.Entity("PortBlog.API.Entities.Cache", b =>
|
||
{
|
||
b.Property<string>("Id")
|
||
.ValueGeneratedOnAdd()
|
||
.HasMaxLength(449)
|
||
.HasColumnType("varchar(449)");
|
||
|
||
b.Property<DateTime?>("AbsoluteExpiration")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<DateTime>("ExpiresAtTime")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<long?>("SlidingExpirationInSeconds")
|
||
.HasColumnType("bigint");
|
||
|
||
b.Property<byte[]>("Value")
|
||
.IsRequired()
|
||
.HasColumnType("longblob");
|
||
|
||
b.HasKey("Id");
|
||
|
||
b.ToTable("Cache");
|
||
});
|
||
|
||
modelBuilder.Entity("PortBlog.API.Entities.Candidate", b =>
|
||
{
|
||
b.Property<int>("CandidateId")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("CandidateId"));
|
||
|
||
b.Property<string>("Address")
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("Avatar")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<string>("CreatedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("CreatedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<DateTime?>("Dob")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Email")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.Property<string>("FirstName")
|
||
.IsRequired()
|
||
.HasMaxLength(50)
|
||
.HasColumnType("varchar(50)");
|
||
|
||
b.Property<string>("Gender")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<string>("LastName")
|
||
.IsRequired()
|
||
.HasMaxLength(50)
|
||
.HasColumnType("varchar(50)");
|
||
|
||
b.Property<string>("ModifiedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("ModifiedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Phone")
|
||
.IsRequired()
|
||
.HasMaxLength(20)
|
||
.HasColumnType("varchar(20)");
|
||
|
||
b.HasKey("CandidateId");
|
||
|
||
b.ToTable("Candidates");
|
||
|
||
b.HasData(
|
||
new
|
||
{
|
||
CandidateId = 1,
|
||
Address = "Samalkot, Andhra Pradesh, India",
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 299, DateTimeKind.Local).AddTicks(5480),
|
||
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(2025, 11, 13, 19, 20, 39, 299, DateTimeKind.Local).AddTicks(5515),
|
||
Phone = "+91 9441212187"
|
||
});
|
||
});
|
||
|
||
modelBuilder.Entity("PortBlog.API.Entities.Certification", b =>
|
||
{
|
||
b.Property<int>("CertificationId")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("CertificationId"));
|
||
|
||
b.Property<string>("CertificationLink")
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("CertificationName")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.Property<string>("CreatedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("CreatedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<DateTime?>("ExpiryDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<DateTime>("IssueDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("IssuingOrganization")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.Property<string>("ModifiedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("ModifiedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<int>("ResumeId")
|
||
.HasColumnType("int");
|
||
|
||
b.HasKey("CertificationId");
|
||
|
||
b.HasIndex("ResumeId");
|
||
|
||
b.ToTable("Certifications");
|
||
});
|
||
|
||
modelBuilder.Entity("PortBlog.API.Entities.ClientLog", b =>
|
||
{
|
||
b.Property<int>("Id")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||
|
||
b.Property<string>("ClientIp")
|
||
.IsRequired()
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<string>("ClientLocation")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime>("CreatedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("SiteName")
|
||
.IsRequired()
|
||
.HasMaxLength(50)
|
||
.HasColumnType("varchar(50)");
|
||
|
||
b.Property<string>("SiteUrl")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.HasKey("Id");
|
||
|
||
b.ToTable("ClientLogs");
|
||
});
|
||
|
||
modelBuilder.Entity("PortBlog.API.Entities.Experience", b =>
|
||
{
|
||
b.Property<int>("ExperienceId")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ExperienceId"));
|
||
|
||
b.Property<string>("Company")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.Property<string>("CreatedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("CreatedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Description")
|
||
.HasMaxLength(500)
|
||
.HasColumnType("varchar(500)");
|
||
|
||
b.Property<DateTime?>("EndDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Location")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.Property<string>("ModifiedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("ModifiedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<int>("ResumeId")
|
||
.HasColumnType("int");
|
||
|
||
b.Property<DateTime>("StartDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Title")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.HasKey("ExperienceId");
|
||
|
||
b.HasIndex("ResumeId");
|
||
|
||
b.ToTable("Experiences");
|
||
|
||
b.HasData(
|
||
new
|
||
{
|
||
ExperienceId = 1,
|
||
Company = "Agility E Services",
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(6786),
|
||
Description = "",
|
||
EndDate = new DateTime(2016, 4, 25, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||
Location = "Hyderabad",
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(6793),
|
||
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(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(7965),
|
||
Description = "",
|
||
EndDate = new DateTime(2022, 1, 31, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||
Location = "Kuwait",
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(7966),
|
||
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(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(7970),
|
||
Description = "",
|
||
EndDate = new DateTime(2022, 10, 31, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||
Location = "Kuwait",
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(7971),
|
||
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(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(8081),
|
||
Description = "",
|
||
EndDate = new DateTime(2024, 4, 12, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
||
Location = "Hyderabad",
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(8081),
|
||
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<int>("Id")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||
|
||
b.Property<string>("CreatedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("CreatedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Details")
|
||
.IsRequired()
|
||
.HasMaxLength(500)
|
||
.HasColumnType("varchar(500)");
|
||
|
||
b.Property<int>("ExperienceId")
|
||
.HasColumnType("int");
|
||
|
||
b.Property<string>("ModifiedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("ModifiedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<int>("Order")
|
||
.HasColumnType("int");
|
||
|
||
b.HasKey("Id");
|
||
|
||
b.HasIndex("ExperienceId");
|
||
|
||
b.ToTable("ExperienceDetails");
|
||
|
||
b.HasData(
|
||
new
|
||
{
|
||
Id = 1,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(462),
|
||
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(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(464),
|
||
Order = 1
|
||
},
|
||
new
|
||
{
|
||
Id = 2,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(988),
|
||
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(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(988),
|
||
Order = 2
|
||
},
|
||
new
|
||
{
|
||
Id = 3,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(991),
|
||
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(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(991),
|
||
Order = 1
|
||
},
|
||
new
|
||
{
|
||
Id = 4,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(993),
|
||
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(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(993),
|
||
Order = 2
|
||
},
|
||
new
|
||
{
|
||
Id = 5,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(994),
|
||
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(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(995),
|
||
Order = 1
|
||
},
|
||
new
|
||
{
|
||
Id = 6,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(1004),
|
||
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(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(1005),
|
||
Order = 2
|
||
},
|
||
new
|
||
{
|
||
Id = 7,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(1006),
|
||
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(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(1007),
|
||
Order = 1
|
||
},
|
||
new
|
||
{
|
||
Id = 8,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(1008),
|
||
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(2025, 11, 13, 19, 20, 39, 303, DateTimeKind.Local).AddTicks(1009),
|
||
Order = 2
|
||
});
|
||
});
|
||
|
||
modelBuilder.Entity("PortBlog.API.Entities.Hobby", b =>
|
||
{
|
||
b.Property<int>("HobbyId")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("HobbyId"));
|
||
|
||
b.Property<string>("CreatedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("CreatedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Description")
|
||
.IsRequired()
|
||
.HasMaxLength(500)
|
||
.HasColumnType("varchar(500)");
|
||
|
||
b.Property<string>("Icon")
|
||
.HasMaxLength(50)
|
||
.HasColumnType("varchar(50)");
|
||
|
||
b.Property<string>("ModifiedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("ModifiedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Name")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.Property<int>("Order")
|
||
.HasColumnType("int");
|
||
|
||
b.Property<int>("ResumeId")
|
||
.HasColumnType("int");
|
||
|
||
b.HasKey("HobbyId");
|
||
|
||
b.HasIndex("ResumeId");
|
||
|
||
b.ToTable("Hobbies");
|
||
|
||
b.HasData(
|
||
new
|
||
{
|
||
HobbyId = 1,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(8352),
|
||
Description = "Crafting Professional-Quality Websites with Precision.",
|
||
Icon = "fa-square-terminal",
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(8353),
|
||
Name = "Web Development",
|
||
Order = 1,
|
||
ResumeId = 1
|
||
},
|
||
new
|
||
{
|
||
HobbyId = 2,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(9201),
|
||
Description = "Streamlining and Simplifying Complex Tasks through Automation.",
|
||
Icon = "fa-robot",
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(9201),
|
||
Name = "Automation",
|
||
Order = 2,
|
||
ResumeId = 1
|
||
},
|
||
new
|
||
{
|
||
HobbyId = 3,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(9204),
|
||
Description = "Sharing the knowledge and insights I’ve gathered along my journey.",
|
||
Icon = "fa-typewriter",
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(9205),
|
||
Name = "Blogging",
|
||
Order = 3,
|
||
ResumeId = 1
|
||
},
|
||
new
|
||
{
|
||
HobbyId = 4,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(9207),
|
||
Description = "Exploring, embracing, and leveraging the latest advancements.",
|
||
Icon = "fa-lightbulb-gear",
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(9208),
|
||
Name = "Technology",
|
||
Order = 4,
|
||
ResumeId = 1
|
||
});
|
||
});
|
||
|
||
modelBuilder.Entity("PortBlog.API.Entities.Message", b =>
|
||
{
|
||
b.Property<int>("Id")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||
|
||
b.Property<int>("CandidateId")
|
||
.HasColumnType("int");
|
||
|
||
b.Property<string>("Content")
|
||
.IsRequired()
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime>("CreatedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("FromEmail")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.Property<string>("Name")
|
||
.IsRequired()
|
||
.HasMaxLength(50)
|
||
.HasColumnType("varchar(50)");
|
||
|
||
b.Property<int>("SentStatus")
|
||
.HasColumnType("int");
|
||
|
||
b.Property<string>("Subject")
|
||
.IsRequired()
|
||
.HasMaxLength(50)
|
||
.HasColumnType("varchar(50)");
|
||
|
||
b.Property<string>("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<int>("PostId")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("PostId"));
|
||
|
||
b.Property<string>("Author")
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.Property<string>("BlogUrl")
|
||
.IsRequired()
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.PrimitiveCollection<string>("Categories")
|
||
.IsRequired()
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<int>("Comments")
|
||
.HasColumnType("int");
|
||
|
||
b.Property<string>("CreatedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("CreatedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Description")
|
||
.IsRequired()
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("Image")
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<int>("Likes")
|
||
.HasColumnType("int");
|
||
|
||
b.Property<string>("ModifiedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("ModifiedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("PostUrl")
|
||
.IsRequired()
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("Slug")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.Property<string>("Title")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.Property<int>("Views")
|
||
.HasColumnType("int");
|
||
|
||
b.HasKey("PostId");
|
||
|
||
b.HasIndex("BlogUrl");
|
||
|
||
b.ToTable("Posts");
|
||
|
||
b.HasData(
|
||
new
|
||
{
|
||
PostId = 1,
|
||
BlogUrl = "https://bangararaju.kottedi.in/blog",
|
||
Categories = "[\"Welcome\"]",
|
||
Comments = 0,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(2910),
|
||
Description = "Hello World",
|
||
Likes = 0,
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(2155),
|
||
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(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(3231),
|
||
Description = "Hello World",
|
||
Likes = 0,
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(3229),
|
||
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(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(3236),
|
||
Description = "Hello World",
|
||
Likes = 0,
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 302, DateTimeKind.Local).AddTicks(3233),
|
||
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<int>("ProjectId")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ProjectId"));
|
||
|
||
b.PrimitiveCollection<string>("Categories")
|
||
.IsRequired()
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("Challenges")
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("CreatedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("CreatedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Description")
|
||
.IsRequired()
|
||
.HasMaxLength(500)
|
||
.HasColumnType("varchar(500)");
|
||
|
||
b.Property<DateTime?>("EndDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("ImagePath")
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("Impact")
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("LessonsLearned")
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("ModifiedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("ModifiedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Name")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.Property<string>("Responsibilities")
|
||
.IsRequired()
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<int>("ResumeId")
|
||
.HasColumnType("int");
|
||
|
||
b.Property<string>("Roles")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.Property<DateTime?>("StartDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Status")
|
||
.HasMaxLength(20)
|
||
.HasColumnType("varchar(20)");
|
||
|
||
b.Property<string>("TechnologiesUsed")
|
||
.IsRequired()
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.HasKey("ProjectId");
|
||
|
||
b.HasIndex("ResumeId");
|
||
|
||
b.ToTable("Projects");
|
||
|
||
b.HasData(
|
||
new
|
||
{
|
||
ProjectId = 1,
|
||
Categories = "[\"Web Development\"]",
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(6787),
|
||
Description = "Business Process Management",
|
||
ImagePath = "bpm.jpg",
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(6789),
|
||
Name = "Transfora (Business Process Management)",
|
||
Responsibilities = "Developing, Testing, Support",
|
||
ResumeId = 1,
|
||
Roles = "Coding, Reviewing, Testing",
|
||
TechnologiesUsed = ".NET, Angular"
|
||
},
|
||
new
|
||
{
|
||
ProjectId = 2,
|
||
Categories = "[\"Web Design\"]",
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(7979),
|
||
Description = "Business Process Management",
|
||
ImagePath = "hcm.jpg",
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(7980),
|
||
Name = "Human Captial Management",
|
||
Responsibilities = "Developing, Testing, Support",
|
||
ResumeId = 1,
|
||
Roles = "Coding, Reviewing, Testing",
|
||
TechnologiesUsed = ".NET, Angular"
|
||
},
|
||
new
|
||
{
|
||
ProjectId = 3,
|
||
Categories = "[\"Web Development\"]",
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(7983),
|
||
Description = "Business Process Management",
|
||
ImagePath = "hms.png",
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(7984),
|
||
Name = "Transfora (Business Process Management)",
|
||
Responsibilities = "Hosting, Integrating, Monitoring",
|
||
ResumeId = 1,
|
||
Roles = "Integration, Monitor",
|
||
TechnologiesUsed = ".NET, Angular"
|
||
});
|
||
});
|
||
|
||
modelBuilder.Entity("PortBlog.API.Entities.RefreshToken", b =>
|
||
{
|
||
b.Property<int>("TokenId")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("TokenId"));
|
||
|
||
b.Property<DateTime>("CreatedAt")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("DeviceInfo")
|
||
.IsRequired()
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime>("ExpiryDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("JwtId")
|
||
.IsRequired()
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<string>("ReplacedByToken")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<bool>("Revoked")
|
||
.HasColumnType("tinyint(1)");
|
||
|
||
b.Property<string>("Token")
|
||
.IsRequired()
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<int>("UserId")
|
||
.HasColumnType("int");
|
||
|
||
b.HasKey("TokenId");
|
||
|
||
b.HasIndex("UserId");
|
||
|
||
b.ToTable("RefreshTokens");
|
||
});
|
||
|
||
modelBuilder.Entity("PortBlog.API.Entities.Resume", b =>
|
||
{
|
||
b.Property<int>("ResumeId")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ResumeId"));
|
||
|
||
b.Property<string>("About")
|
||
.IsRequired()
|
||
.HasMaxLength(1000)
|
||
.HasColumnType("varchar(1000)");
|
||
|
||
b.Property<int>("CandidateId")
|
||
.HasColumnType("int");
|
||
|
||
b.Property<string>("CreatedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("CreatedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("ModifiedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("ModifiedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<int>("Order")
|
||
.HasColumnType("int");
|
||
|
||
b.Property<string>("Title")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.HasKey("ResumeId");
|
||
|
||
b.HasIndex("CandidateId");
|
||
|
||
b.ToTable("Resumes");
|
||
|
||
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(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(4308),
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(4316),
|
||
Order = 1,
|
||
Title = "Full Stack Developer"
|
||
});
|
||
});
|
||
|
||
modelBuilder.Entity("PortBlog.API.Entities.ResumeFile", b =>
|
||
{
|
||
b.Property<int>("FileId")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("FileId"));
|
||
|
||
b.Property<string>("CreatedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("CreatedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("FileFormat")
|
||
.IsRequired()
|
||
.HasMaxLength(50)
|
||
.HasColumnType("varchar(50)");
|
||
|
||
b.Property<string>("FileName")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.Property<string>("FilePath")
|
||
.IsRequired()
|
||
.HasMaxLength(100)
|
||
.HasColumnType("varchar(100)");
|
||
|
||
b.Property<string>("ModifiedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("ModifiedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<int>("ResumeId")
|
||
.HasColumnType("int");
|
||
|
||
b.Property<string>("Version")
|
||
.HasMaxLength(10)
|
||
.HasColumnType("varchar(10)");
|
||
|
||
b.HasKey("FileId");
|
||
|
||
b.HasIndex("ResumeId")
|
||
.IsUnique();
|
||
|
||
b.ToTable("Files");
|
||
});
|
||
|
||
modelBuilder.Entity("PortBlog.API.Entities.Skill", b =>
|
||
{
|
||
b.Property<int>("SkillId")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("SkillId"));
|
||
|
||
b.Property<string>("CreatedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("CreatedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Description")
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("ModifiedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("ModifiedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Name")
|
||
.IsRequired()
|
||
.HasMaxLength(50)
|
||
.HasColumnType("varchar(50)");
|
||
|
||
b.Property<int>("ProficiencyLevel")
|
||
.HasColumnType("int");
|
||
|
||
b.Property<int>("ResumeId")
|
||
.HasColumnType("int");
|
||
|
||
b.HasKey("SkillId");
|
||
|
||
b.HasIndex("ResumeId");
|
||
|
||
b.ToTable("Skills");
|
||
|
||
b.HasData(
|
||
new
|
||
{
|
||
SkillId = 1,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(3819),
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(3820),
|
||
Name = "Web Development",
|
||
ProficiencyLevel = 80,
|
||
ResumeId = 1
|
||
},
|
||
new
|
||
{
|
||
SkillId = 2,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(4333),
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(4333),
|
||
Name = "Web Development",
|
||
ProficiencyLevel = 80,
|
||
ResumeId = 1
|
||
},
|
||
new
|
||
{
|
||
SkillId = 3,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(4335),
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(4336),
|
||
Name = "Web Development",
|
||
ProficiencyLevel = 80,
|
||
ResumeId = 1
|
||
},
|
||
new
|
||
{
|
||
SkillId = 4,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(4337),
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(4338),
|
||
Name = "Web Development",
|
||
ProficiencyLevel = 80,
|
||
ResumeId = 1
|
||
},
|
||
new
|
||
{
|
||
SkillId = 5,
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(4339),
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 301, DateTimeKind.Local).AddTicks(4340),
|
||
Name = "Web Development",
|
||
ProficiencyLevel = 80,
|
||
ResumeId = 1
|
||
});
|
||
});
|
||
|
||
modelBuilder.Entity("PortBlog.API.Entities.SocialLinks", b =>
|
||
{
|
||
b.Property<int>("Id")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||
|
||
b.Property<string>("BlogUrl")
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("CreatedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("CreatedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Facebook")
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("GitHub")
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("Instagram")
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("Linkedin")
|
||
.IsRequired()
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<string>("ModifiedBy")
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<DateTime?>("ModifiedDate")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("PersonalWebsite")
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.Property<int>("ResumeId")
|
||
.HasColumnType("int");
|
||
|
||
b.Property<string>("Twitter")
|
||
.HasMaxLength(200)
|
||
.HasColumnType("varchar(200)");
|
||
|
||
b.HasKey("Id");
|
||
|
||
b.HasIndex("BlogUrl");
|
||
|
||
b.HasIndex("ResumeId")
|
||
.IsUnique();
|
||
|
||
b.ToTable("SocialLinks");
|
||
|
||
b.HasData(
|
||
new
|
||
{
|
||
Id = 1,
|
||
BlogUrl = "https://bangararaju.kottedi.in/blog",
|
||
CreatedDate = new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(6144),
|
||
GitHub = "https://github.com/rajukottedi",
|
||
Linkedin = "https://in.linkedin.com/in/bangara-raju-kottedi-299072109",
|
||
ModifiedDate = new DateTime(2025, 11, 13, 19, 20, 39, 300, DateTimeKind.Local).AddTicks(6145),
|
||
ResumeId = 1
|
||
});
|
||
});
|
||
|
||
modelBuilder.Entity("PortBlog.API.Entities.User", b =>
|
||
{
|
||
b.Property<int>("UserId")
|
||
.ValueGeneratedOnAdd()
|
||
.HasColumnType("int");
|
||
|
||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("UserId"));
|
||
|
||
b.Property<DateTime>("CreatedAt")
|
||
.HasColumnType("datetime(6)");
|
||
|
||
b.Property<string>("Email")
|
||
.IsRequired()
|
||
.HasColumnType("longtext");
|
||
|
||
b.Property<string>("Username")
|
||
.IsRequired()
|
||
.HasColumnType("longtext");
|
||
|
||
b.HasKey("UserId");
|
||
|
||
b.ToTable("Users");
|
||
|
||
b.HasData(
|
||
new
|
||
{
|
||
UserId = 1,
|
||
CreatedAt = new DateTime(2025, 11, 13, 13, 50, 39, 303, DateTimeKind.Utc).AddTicks(2327),
|
||
Email = "bangararaju.kottedi@gmail.com",
|
||
Username = "rajukottedi"
|
||
});
|
||
});
|
||
|
||
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.RefreshToken", b =>
|
||
{
|
||
b.HasOne("PortBlog.API.Entities.User", "User")
|
||
.WithMany("RefreshTokens")
|
||
.HasForeignKey("UserId")
|
||
.OnDelete(DeleteBehavior.Cascade)
|
||
.IsRequired();
|
||
|
||
b.Navigation("User");
|
||
});
|
||
|
||
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");
|
||
});
|
||
|
||
modelBuilder.Entity("PortBlog.API.Entities.User", b =>
|
||
{
|
||
b.Navigation("RefreshTokens");
|
||
});
|
||
#pragma warning restore 612, 618
|
||
}
|
||
}
|
||
}
|