//
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Portfolio.Infrastructure;
#nullable disable
namespace Portfolio.Infrastructure.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
[Migration("20250404173359_include_flavortext")]
partial class include_flavortext
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "9.0.2")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("Portfolio.Domain.Features.Pokemon.Pokemon", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("FlavorText")
.HasColumnType("nvarchar(max)");
b.Property("IsVariation")
.HasColumnType("bit");
b.Property("PokemonId")
.HasColumnType("int");
b.Property("PokemonImageUrl")
.HasColumnType("nvarchar(max)");
b.Property("PokemonName")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("PokemonShinyImageUrl")
.HasColumnType("nvarchar(max)");
b.Property("PokemonType")
.HasColumnType("nvarchar(max)");
b.Property("SleepType")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("Speciality")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("VariationName")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("Pokemons");
});
modelBuilder.Entity("Portfolio.Domain.Features.Pokemon_Natures.PokemonNature", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("BerryRating")
.HasColumnType("int");
b.Property("IngredientRating")
.HasColumnType("int");
b.Property("Nature")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("SkillRating")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("PokemonNatures");
});
modelBuilder.Entity("Portfolio.Domain.Features.Pokemon_Subskills.PokemonSubskill", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
b.Property("BerryRank")
.HasColumnType("int");
b.Property("IngredientRank")
.HasColumnType("int");
b.Property("SkillRank")
.HasColumnType("int");
b.Property("SubSkill")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("PokemonSubskills");
});
#pragma warning restore 612, 618
}
}
}