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