using System; using Microsoft.EntityFrameworkCore.Migrations; namespace tb320eva.Migrations { public partial class Postponement01 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "eva_adjust_postponement", columns: table => new { id = table.Column(nullable: false), created = table.Column(nullable: false), updated = table.Column(nullable: false), isActive = table.Column(nullable: false), fiscal_year = table.Column(nullable: true), theDate = table.Column(nullable: true), theRound = table.Column(nullable: true), create_evaluation_id = table.Column(nullable: true), limit = table.Column(nullable: true), limit_frame = table.Column(nullable: true), limit_quota = table.Column(nullable: true), limit_frame_quota = table.Column(nullable: true), percentage = table.Column(nullable: true), command_no = table.Column(maxLength: 100, nullable: true), managed_by = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_eva_adjust_postponement", x => x.id); table.ForeignKey( name: "FK_eva_adjust_postponement_eva_create_evaluation_create_evalua~", column: x => x.create_evaluation_id, principalTable: "eva_create_evaluation", principalColumn: "id", onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateIndex( name: "IX_eva_adjust_postponement_create_evaluation_id", table: "eva_adjust_postponement", column: "create_evaluation_id"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "eva_adjust_postponement"); } } }