using System; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace ThAmCo.Stock.Data.Migrations { public partial class AddBaseOrderRequests : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "OrderRequests", columns: table => new { Id = table.Column(nullable: false) .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), ProductId = table.Column(nullable: false), Quantity = table.Column(nullable: false), Price = table.Column(nullable: false), SubmittedTime = table.Column(nullable: false), Approved = table.Column(nullable: false), ApprovedTime = table.Column(nullable: false), Deleted = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_OrderRequests", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "OrderRequests"); } } }