67 lines
3.2 KiB
C#
67 lines
3.2 KiB
C#
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<int>(nullable: false),
|
|
created = table.Column<DateTime>(nullable: false),
|
|
updated = table.Column<DateTime>(nullable: false),
|
|
isActive = table.Column<bool>(nullable: false),
|
|
adjust_postponement_id = table.Column<int>(nullable: true),
|
|
adjust_postponement_quota_id = table.Column<int>(nullable: true),
|
|
employee_id = table.Column<int>(nullable: true),
|
|
sarary = table.Column<decimal>(nullable: true),
|
|
cost_living = table.Column<decimal>(nullable: true),
|
|
middle = table.Column<decimal>(nullable: true),
|
|
promoted_percentage = table.Column<decimal>(nullable: true),
|
|
total_promote = table.Column<decimal>(nullable: true),
|
|
new_sarary = table.Column<decimal>(nullable: true),
|
|
new_cost_living = table.Column<decimal>(nullable: true),
|
|
remark = table.Column<string>(maxLength: 1000, nullable: true),
|
|
receive_quota = table.Column<decimal>(nullable: true),
|
|
new_sarary_with_quota = table.Column<decimal>(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");
|
|
}
|
|
}
|
|
}
|