//
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using PokemonSleepAPI.Data;
#nullable disable
namespace PokemonSleepAPI.Migrations
{
[DbContext(typeof(PokemonDbContext))]
[Migration("20241205180806_AddNaturesWithRatings")]
partial class AddNaturesWithRatings
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "9.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("PokemonSleepAPI.Models.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");
b.HasData(
new
{
Id = 1,
BerryRating = 2,
IngredientRating = 2,
Nature = "Lonely",
SkillRating = 1
},
new
{
Id = 2,
BerryRating = 3,
IngredientRating = 0,
Nature = "Adamant",
SkillRating = 0
},
new
{
Id = 3,
BerryRating = 1,
IngredientRating = 1,
Nature = "Naughty",
SkillRating = -1
},
new
{
Id = 4,
BerryRating = 1,
IngredientRating = 1,
Nature = "Brave",
SkillRating = 1
},
new
{
Id = 5,
BerryRating = -2,
IngredientRating = -2,
Nature = "Bold",
SkillRating = -1
},
new
{
Id = 6,
BerryRating = 1,
IngredientRating = -2,
Nature = "Impish",
SkillRating = -1
},
new
{
Id = 7,
BerryRating = -1,
IngredientRating = -1,
Nature = "Lax",
SkillRating = -2
},
new
{
Id = 8,
BerryRating = -1,
IngredientRating = -1,
Nature = "Relaxed",
SkillRating = 0
},
new
{
Id = 9,
BerryRating = -3,
IngredientRating = 0,
Nature = "Modest",
SkillRating = 0
},
new
{
Id = 10,
BerryRating = -1,
IngredientRating = 2,
Nature = "Mild",
SkillRating = 1
},
new
{
Id = 11,
BerryRating = -2,
IngredientRating = 1,
Nature = "Rash",
SkillRating = -1
},
new
{
Id = 12,
BerryRating = -2,
IngredientRating = 1,
Nature = "Quiet",
SkillRating = 1
},
new
{
Id = 13,
BerryRating = -1,
IngredientRating = -1,
Nature = "Calm",
SkillRating = 1
},
new
{
Id = 14,
BerryRating = 1,
IngredientRating = 1,
Nature = "Gentle",
SkillRating = 2
},
new
{
Id = 15,
BerryRating = 2,
IngredientRating = -1,
Nature = "Careful",
SkillRating = 1
},
new
{
Id = 16,
BerryRating = 0,
IngredientRating = 0,
Nature = "Sassy",
SkillRating = 2
},
new
{
Id = 17,
BerryRating = -1,
IngredientRating = -1,
Nature = "Timid",
SkillRating = -1
},
new
{
Id = 18,
BerryRating = 1,
IngredientRating = 1,
Nature = "Hasty",
SkillRating = 0
},
new
{
Id = 19,
BerryRating = 2,
IngredientRating = -1,
Nature = "Jolly",
SkillRating = -1
},
new
{
Id = 20,
BerryRating = 0,
IngredientRating = 0,
Nature = "Naive",
SkillRating = -2
},
new
{
Id = 21,
BerryRating = 0,
IngredientRating = 0,
Nature = "Bashful",
SkillRating = 0
},
new
{
Id = 22,
BerryRating = 0,
IngredientRating = 0,
Nature = "Hardy",
SkillRating = 0
},
new
{
Id = 23,
BerryRating = 0,
IngredientRating = 0,
Nature = "Docile",
SkillRating = 0
},
new
{
Id = 24,
BerryRating = 0,
IngredientRating = 0,
Nature = "Quirky",
SkillRating = 0
},
new
{
Id = 25,
BerryRating = 0,
IngredientRating = 0,
Nature = "Serious",
SkillRating = 0
});
});
#pragma warning restore 612, 618
}
}
}