แก้โครงสร้างพ้นราชการ
This commit is contained in:
parent
18d75f4b04
commit
db712d586a
41 changed files with 125142 additions and 411 deletions
|
|
@ -11084,9 +11084,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("double")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม เงินเดือน");
|
||||
|
||||
b.Property<Guid?>("CommandTypeId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasColumnOrder(100)
|
||||
|
|
@ -11106,6 +11103,11 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnOrder(101)
|
||||
.HasComment("User Id ที่สร้างข้อมูล");
|
||||
|
||||
b.Property<DateTime?>("DateOfBirth")
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันเกิด");
|
||||
|
||||
b.Property<string>("EducationOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("วุฒิ/สาขาเดิม");
|
||||
|
|
@ -11133,10 +11135,14 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnOrder(102)
|
||||
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
|
||||
|
||||
b.Property<string>("OrganizationPositionOld")
|
||||
b.Property<string>("OrganizationOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดเดิม");
|
||||
|
||||
b.Property<string>("OrganizationPositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัด/ตำแหน่งเเดิม");
|
||||
|
||||
b.Property<DateTime?>("PositionDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ดำรงตำแหน่งในระดับปัจจุบันเมื่อ");
|
||||
|
|
@ -11149,6 +11155,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม เลขที่");
|
||||
|
||||
b.Property<string>("PositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งเดิม");
|
||||
|
||||
b.Property<string>("PositionTypeOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท");
|
||||
|
|
@ -11161,6 +11171,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่บรรจุ");
|
||||
|
||||
b.Property<DateTime?>("ReportingDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่รายงานตัว");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
|
|
@ -11326,6 +11340,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("id ประเภทตำแหน่ง old");
|
||||
|
||||
b.Property<string>("position")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อตำแหน่งในสายงาน");
|
||||
|
||||
b.Property<string>("positionField")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สายงาน");
|
||||
|
|
@ -11334,10 +11352,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("id ตำแหน่ง");
|
||||
|
||||
b.Property<string>("positionName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อตำแหน่งในสายงาน");
|
||||
|
||||
b.Property<string>("positionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อตำแหน่งในสายงาน old");
|
||||
|
|
@ -11382,9 +11396,11 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ประเภทราชการ");
|
||||
|
||||
b.HasKey("Id");
|
||||
b.Property<string>("typeCommand")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ประเภทคำสั่ง");
|
||||
|
||||
b.HasIndex("CommandTypeId");
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PlacementAppointments");
|
||||
});
|
||||
|
|
@ -11790,6 +11806,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("หน่วยงานที่ช่วยราชการไป");
|
||||
|
||||
b.Property<string>("OrganizationOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดเดิม");
|
||||
|
||||
b.Property<string>("OrganizationPositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัด");
|
||||
|
|
@ -11802,6 +11822,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม เลขที่");
|
||||
|
||||
b.Property<string>("PositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งเดิม");
|
||||
|
||||
b.Property<string>("PositionTypeOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท");
|
||||
|
|
@ -12650,6 +12674,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("varchar(100)")
|
||||
.HasComment("สัญชาติ");
|
||||
|
||||
b.Property<string>("OrganizationOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดเดิม");
|
||||
|
||||
b.Property<string>("OrganizationPositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดเดิม");
|
||||
|
|
@ -12662,6 +12690,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม เลขที่");
|
||||
|
||||
b.Property<string>("PositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งเดิม");
|
||||
|
||||
b.Property<string>("PositionTypeOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท");
|
||||
|
|
@ -12703,10 +12735,22 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1");
|
||||
|
||||
b.Property<string>("child1Old")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child1 old");
|
||||
|
||||
b.Property<string>("child1OldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1 old");
|
||||
|
||||
b.Property<string>("child1ShortName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child1");
|
||||
|
||||
b.Property<string>("child1ShortNameOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child1 old");
|
||||
|
||||
b.Property<string>("child2")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child2");
|
||||
|
|
@ -12715,10 +12759,22 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2");
|
||||
|
||||
b.Property<string>("child2Old")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child2 old");
|
||||
|
||||
b.Property<string>("child2OldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2 old");
|
||||
|
||||
b.Property<string>("child2ShortName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child2");
|
||||
|
||||
b.Property<string>("child2ShortNameOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child2 old");
|
||||
|
||||
b.Property<string>("child3")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child3");
|
||||
|
|
@ -12727,10 +12783,22 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3");
|
||||
|
||||
b.Property<string>("child3Old")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child3 old");
|
||||
|
||||
b.Property<string>("child3OldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3 old");
|
||||
|
||||
b.Property<string>("child3ShortName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child3");
|
||||
|
||||
b.Property<string>("child3ShortNameOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child3 old");
|
||||
|
||||
b.Property<string>("child4")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child4");
|
||||
|
|
@ -12739,10 +12807,22 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4");
|
||||
|
||||
b.Property<string>("child4Old")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child4 old");
|
||||
|
||||
b.Property<string>("child4OldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4 old");
|
||||
|
||||
b.Property<string>("child4ShortName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child4");
|
||||
|
||||
b.Property<string>("child4ShortNameOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child4 old");
|
||||
|
||||
b.Property<string>("citizenId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("เลขบัตรประชาชน");
|
||||
|
|
@ -12775,10 +12855,22 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อระดับตำแหน่ง");
|
||||
|
||||
b.Property<string>("posLevelNameOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อระดับตำแหน่ง old");
|
||||
|
||||
b.Property<string>("posLevelOldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id ระดับตำแหน่ง old");
|
||||
|
||||
b.Property<int?>("posMasterNo")
|
||||
.HasColumnType("int")
|
||||
.HasComment("เลขที่ตำแหน่ง");
|
||||
|
||||
b.Property<int?>("posMasterNoOld")
|
||||
.HasColumnType("int")
|
||||
.HasComment("เลขที่ตำแหน่ง old");
|
||||
|
||||
b.Property<string>("posTypeId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id ประเภทตำแหน่ง");
|
||||
|
|
@ -12787,6 +12879,18 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อประเภทตำแหน่ง");
|
||||
|
||||
b.Property<string>("posTypeNameOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อประเภทตำแหน่ง old");
|
||||
|
||||
b.Property<string>("posTypeOldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id ประเภทตำแหน่ง old");
|
||||
|
||||
b.Property<string>("position")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อตำแหน่งในสายงาน");
|
||||
|
||||
b.Property<string>("positionField")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สายงาน");
|
||||
|
|
@ -12795,9 +12899,9 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("id ตำแหน่ง");
|
||||
|
||||
b.Property<string>("positionName")
|
||||
b.Property<string>("positionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อตำแหน่งในสายงาน");
|
||||
.HasComment("ชื่อตำแหน่งในสายงาน old");
|
||||
|
||||
b.Property<string>("posmasterId")
|
||||
.HasColumnType("longtext")
|
||||
|
|
@ -12819,10 +12923,22 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root");
|
||||
|
||||
b.Property<string>("rootOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน root old");
|
||||
|
||||
b.Property<string>("rootOldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root old");
|
||||
|
||||
b.Property<string>("rootShortName")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน root");
|
||||
|
||||
b.Property<string>("rootShortNameOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน root old");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("AvatarId");
|
||||
|
|
@ -13227,6 +13343,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("หน่วยงานที่ส่งตัวกลับไป");
|
||||
|
||||
b.Property<string>("OrganizationOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดเดิม");
|
||||
|
||||
b.Property<string>("OrganizationPositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัด");
|
||||
|
|
@ -13239,6 +13359,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม เลขที่");
|
||||
|
||||
b.Property<string>("PositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งเดิม");
|
||||
|
||||
b.Property<string>("PositionTypeOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท");
|
||||
|
|
@ -13952,9 +14076,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("varchar(50)")
|
||||
.HasComment("คำนำหน้านาม");
|
||||
|
||||
b.Property<Guid>("ReceiveUserId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid>("RetirementDeceasedId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
|
|
@ -13962,8 +14083,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
b.HasIndex("DocumentId");
|
||||
|
||||
b.HasIndex("ReceiveUserId");
|
||||
|
||||
b.HasIndex("RetirementDeceasedId");
|
||||
|
||||
b.ToTable("RetirementDeceasedNotis");
|
||||
|
|
@ -14235,6 +14354,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่พ้นจากราชการทหาร");
|
||||
|
||||
b.Property<string>("OrganizationOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดเดิม");
|
||||
|
||||
b.Property<string>("OrganizationPositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดเดิม");
|
||||
|
|
@ -14251,6 +14374,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม เลขที่");
|
||||
|
||||
b.Property<string>("PositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งเดิม");
|
||||
|
||||
b.Property<string>("PositionTypeOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท");
|
||||
|
|
@ -14504,6 +14631,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("หน่วยงานที่ให้ออกไป");
|
||||
|
||||
b.Property<string>("OrganizationOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัดเดิม");
|
||||
|
||||
b.Property<string>("OrganizationPositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัด");
|
||||
|
|
@ -14516,6 +14647,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม เลขที่");
|
||||
|
||||
b.Property<string>("PositionOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งเดิม");
|
||||
|
||||
b.Property<string>("PositionTypeOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท");
|
||||
|
|
@ -16662,15 +16797,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Navigation("PlacementType");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointment", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.Commands.Core.CommandType", "CommandType")
|
||||
.WithMany()
|
||||
.HasForeignKey("CommandTypeId");
|
||||
|
||||
b.Navigation("CommandType");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "Document")
|
||||
|
|
@ -17115,12 +17241,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.WithMany()
|
||||
.HasForeignKey("DocumentId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "ReceiveUser")
|
||||
.WithMany()
|
||||
.HasForeignKey("ReceiveUserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementDeceased", "RetirementDeceased")
|
||||
.WithMany("RetirementDeceasedNotis")
|
||||
.HasForeignKey("RetirementDeceasedId")
|
||||
|
|
@ -17129,8 +17249,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
b.Navigation("Document");
|
||||
|
||||
b.Navigation("ReceiveUser");
|
||||
|
||||
b.Navigation("RetirementDeceased");
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue