using System; using Microsoft.EntityFrameworkCore.Migrations; namespace tb320eva.Migrations { public partial class PostponementDetail : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "eva_adjust_postponement_detail", columns: table => new { id = table.Column(nullable: false), created = table.Column(nullable: false), updated = table.Column(nullable: false), isActive = table.Column(nullable: false), adjust_postponement_id = table.Column(nullable: true), adjust_postponement_quota_id = table.Column(nullable: true), employee_id = table.Column(nullable: true), sarary = table.Column(nullable: true), cost_living = table.Column(nullable: true), middle = table.Column(nullable: true), promoted_percentage = table.Column(nullable: true), total_promote = table.Column(nullable: true), new_sarary = table.Column(nullable: true), new_cost_living = table.Column(nullable: true), remark = table.Column(maxLength: 1000, nullable: true), receive_quota = table.Column(nullable: true), new_sarary_with_quota = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_eva_adjust_postponement_detail", x => x.id); table.ForeignKey( name: "FK_eva_adjust_postponement_detail_eva_adjust_postponement_adju~", column: x => x.adjust_postponement_id, principalTable: "eva_adjust_postponement", principalColumn: "id", onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_eva_adjust_postponement_detail_eva_adjust_postponement_adj~1", column: x => x.adjust_postponement_quota_id, principalTable: "eva_adjust_postponement", principalColumn: "id", onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateIndex( name: "IX_eva_adjust_postponement_detail_adjust_postponement_id", table: "eva_adjust_postponement_detail", column: "adjust_postponement_id"); migrationBuilder.CreateIndex( name: "IX_eva_adjust_postponement_detail_adjust_postponement_quota_id", table: "eva_adjust_postponement_detail", column: "adjust_postponement_quota_id"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "eva_adjust_postponement_detail"); } } }