using Microsoft.EntityFrameworkCore.Migrations; namespace TestPushApp.Data.Migrations { public partial class addCompany : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Companies", columns: table => new { Id = table.Column(nullable: false) .Annotation("SqlServer:Identity", "1, 1"), Name = table.Column(nullable: true), Email = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_Companies", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Companies"); } } }