using Microsoft.EntityFrameworkCore.Migrations; namespace Product.Api.Migrations { public partial class Init : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "ProductType", columns: table => new { Id = table.Column(maxLength: 32, nullable: false), Name = table.Column(maxLength: 256, nullable: false) }, constraints: table => { table.PrimaryKey("PK_ProductType", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "ProductType"); } } }