// 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("20250217210310_Initial")] partial class Initial { /// 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("IsVariation") .HasColumnType("bit"); b.Property("PokemonId") .HasColumnType("int"); b.Property("PokemonName") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("SleepType") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Speciality") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("VariationName") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Pokemons"); }); modelBuilder.Entity("Portfolio.Domain.Features.Pokemon_Natures.PokemonNatures", 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.PokemonSubskills", 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 } } }