เพิ่มประวัติ การดำเนินกิจกรรมการประเมิน
This commit is contained in:
1032
Migrations/20210413072130_AddEvaLog.Designer.cs
generated
Normal file
1032
Migrations/20210413072130_AddEvaLog.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
46
Migrations/20210413072130_AddEvaLog.cs
Normal file
46
Migrations/20210413072130_AddEvaLog.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace tb320eva.Migrations
|
||||
{
|
||||
public partial class AddEvaLog : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "eva_create_evaluation_detail_history",
|
||||
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),
|
||||
evaluation_detail_id = table.Column<int>(nullable: true),
|
||||
action_dt = table.Column<DateTime>(nullable: true),
|
||||
action_detail = table.Column<string>(maxLength: 4000, nullable: true),
|
||||
action_emp_id = table.Column<int>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_eva_create_evaluation_detail_history", x => x.id);
|
||||
table.ForeignKey(
|
||||
name: "FK_eva_create_evaluation_detail_history_eva_create_evaluation_~",
|
||||
column: x => x.evaluation_detail_id,
|
||||
principalTable: "eva_create_evaluation_detail",
|
||||
principalColumn: "id",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_eva_create_evaluation_detail_history_evaluation_detail_id",
|
||||
table: "eva_create_evaluation_detail_history",
|
||||
column: "evaluation_detail_id");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "eva_create_evaluation_detail_history");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -373,6 +373,32 @@ namespace tb320eva.Migrations
|
||||
b.ToTable("eva_create_evaluation_detail");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("TodoAPI2.Models.eva_create_evaluation_detail_historyEntity", b =>
|
||||
{
|
||||
b.Property<int>("id");
|
||||
|
||||
b.Property<string>("action_detail")
|
||||
.HasMaxLength(4000);
|
||||
|
||||
b.Property<DateTime?>("action_dt");
|
||||
|
||||
b.Property<int?>("action_emp_id");
|
||||
|
||||
b.Property<DateTime>("created");
|
||||
|
||||
b.Property<int?>("evaluation_detail_id");
|
||||
|
||||
b.Property<bool>("isActive");
|
||||
|
||||
b.Property<DateTime>("updated");
|
||||
|
||||
b.HasKey("id");
|
||||
|
||||
b.HasIndex("evaluation_detail_id");
|
||||
|
||||
b.ToTable("eva_create_evaluation_detail_history");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("TodoAPI2.Models.eva_evaluation_achievementEntity", b =>
|
||||
{
|
||||
b.Property<int>("id");
|
||||
@@ -918,6 +944,13 @@ namespace tb320eva.Migrations
|
||||
.HasForeignKey("create_evaluation_id");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("TodoAPI2.Models.eva_create_evaluation_detail_historyEntity", b =>
|
||||
{
|
||||
b.HasOne("TodoAPI2.Models.eva_create_evaluation_detailEntity", "eva_create_evaluation_detail_evaluation_detail_id")
|
||||
.WithMany()
|
||||
.HasForeignKey("evaluation_detail_id");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("TodoAPI2.Models.eva_evaluation_achievementEntity", b =>
|
||||
{
|
||||
b.HasOne("TodoAPI2.Models.eva_create_evaluation_detailEntity", "eva_create_evaluation_detail")
|
||||
|
||||
Reference in New Issue
Block a user