สรุปผลวินัยเพิ่มstatusบุคคล

This commit is contained in:
Kittapath 2023-12-01 21:44:16 +07:00
parent 49d70b1e05
commit 8dae449c62
10 changed files with 11384 additions and 28 deletions

View file

@ -0,0 +1,62 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
{
/// <inheritdoc />
public partial class updatetableDisciplineDisciplinarysaddDisciplineDisciplinary_ProfileComplaintInvestigates : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_DisciplineReport_Profiles_DisciplineDisciplinarys_Discipline~",
table: "DisciplineReport_Profiles");
migrationBuilder.RenameColumn(
name: "DisciplineDisciplinaryId",
table: "DisciplineReport_Profiles",
newName: "DisciplineDisciplinary_ProfileComplaintInvestigateId");
migrationBuilder.RenameIndex(
name: "IX_DisciplineReport_Profiles_DisciplineDisciplinaryId",
table: "DisciplineReport_Profiles",
newName: "IX_DisciplineReport_Profiles_DisciplineDisciplinary_ProfileComp~");
migrationBuilder.AddForeignKey(
name: "FK_DisciplineReport_Profiles_DisciplineDisciplinary_ProfileComp~",
table: "DisciplineReport_Profiles",
column: "DisciplineDisciplinary_ProfileComplaintInvestigateId",
principalTable: "DisciplineDisciplinary_ProfileComplaintInvestigates",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_DisciplineReport_Profiles_DisciplineDisciplinary_ProfileComp~",
table: "DisciplineReport_Profiles");
migrationBuilder.RenameColumn(
name: "DisciplineDisciplinary_ProfileComplaintInvestigateId",
table: "DisciplineReport_Profiles",
newName: "DisciplineDisciplinaryId");
migrationBuilder.RenameIndex(
name: "IX_DisciplineReport_Profiles_DisciplineDisciplinary_ProfileComp~",
table: "DisciplineReport_Profiles",
newName: "IX_DisciplineReport_Profiles_DisciplineDisciplinaryId");
migrationBuilder.AddForeignKey(
name: "FK_DisciplineReport_Profiles_DisciplineDisciplinarys_Discipline~",
table: "DisciplineReport_Profiles",
column: "DisciplineDisciplinaryId",
principalTable: "DisciplineDisciplinarys",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
}
}

View file

@ -1899,7 +1899,7 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
.HasColumnType("longtext")
.HasComment("เหตุที่ถูกสั่งพักราชการ/ออกจากราชการไว้ก่อน");
b.Property<Guid>("DisciplineDisciplinaryId")
b.Property<Guid>("DisciplineDisciplinary_ProfileComplaintInvestigateId")
.HasColumnType("char(36)");
b.Property<DateTime?>("EndDateSuspend")
@ -1975,7 +1975,7 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
b.HasKey("Id");
b.HasIndex("DisciplineDisciplinaryId");
b.HasIndex("DisciplineDisciplinary_ProfileComplaintInvestigateId");
b.ToTable("DisciplineReport_Profiles");
});
@ -10260,13 +10260,13 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineReport_Profile", b =>
{
b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary", "DisciplineDisciplinary")
b.HasOne("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_ProfileComplaintInvestigate", "DisciplineDisciplinary_ProfileComplaintInvestigate")
.WithMany("DisciplineReport_Profiles")
.HasForeignKey("DisciplineDisciplinaryId")
.HasForeignKey("DisciplineDisciplinary_ProfileComplaintInvestigateId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("DisciplineDisciplinary");
b.Navigation("DisciplineDisciplinary_ProfileComplaintInvestigate");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b =>
@ -11079,7 +11079,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
b.Navigation("DisciplineDisciplinary_DocWitnessess");
b.Navigation("DisciplineDisciplinary_ProfileComplaintInvestigates");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDisciplinary_ProfileComplaintInvestigate", b =>
{
b.Navigation("DisciplineReport_Profiles");
});