using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Portfolio.Infrastructure.Migrations
{
///
public partial class Initial : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "PokemonNatures",
columns: table => new
{
Id = table.Column(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Nature = table.Column(type: "nvarchar(max)", nullable: false),
BerryRating = table.Column(type: "int", nullable: false),
IngredientRating = table.Column(type: "int", nullable: false),
SkillRating = table.Column(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_PokemonNatures", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Pokemons",
columns: table => new
{
Id = table.Column(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
PokemonId = table.Column(type: "int", nullable: false),
PokemonName = table.Column(type: "nvarchar(max)", nullable: false),
IsVariation = table.Column(type: "bit", nullable: false),
VariationName = table.Column(type: "nvarchar(max)", nullable: false),
SleepType = table.Column(type: "nvarchar(max)", nullable: false),
Speciality = table.Column(type: "nvarchar(max)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Pokemons", x => x.Id);
});
migrationBuilder.CreateTable(
name: "PokemonSubskills",
columns: table => new
{
Id = table.Column(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SubSkill = table.Column(type: "nvarchar(max)", nullable: false),
BerryRank = table.Column(type: "int", nullable: false),
IngredientRank = table.Column(type: "int", nullable: false),
SkillRank = table.Column(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_PokemonSubskills", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "PokemonNatures");
migrationBuilder.DropTable(
name: "Pokemons");
migrationBuilder.DropTable(
name: "PokemonSubskills");
}
}
}