migrate db
This commit is contained in:
parent
30ff1ae15c
commit
1e5676e8ab
6 changed files with 25936 additions and 0 deletions
|
|
@ -15186,6 +15186,239 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.ToTable("RetirementDischarges");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementEmployeeQuestion", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("char(36)")
|
||||
.HasColumnOrder(0)
|
||||
.HasComment("PrimaryKey")
|
||||
.HasAnnotation("Relational:JsonPropertyName", "id");
|
||||
|
||||
b.Property<string>("Adjust")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("อะไรคือสิ่งที่ท่านเห็นว่าควรปรับปรุง");
|
||||
|
||||
b.Property<string>("AdjustOther")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("อื่นๆ อะไรคือสิ่งที่ท่านเห็นว่าควรปรับปรุง");
|
||||
|
||||
b.Property<DateTime?>("AppointDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("กําหนดวันนัดหมายเพื่อทําการสัมภาษณ์การลาออก");
|
||||
|
||||
b.Property<string>("Comment")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ความคิดเห็น");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasColumnOrder(100)
|
||||
.HasComment("สร้างข้อมูลเมื่อ");
|
||||
|
||||
b.Property<string>("CreatedFullName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasColumnOrder(104)
|
||||
.HasComment("ชื่อ User ที่สร้างข้อมูล");
|
||||
|
||||
b.Property<string>("CreatedUserId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("varchar(40)")
|
||||
.HasColumnOrder(101)
|
||||
.HasComment("User Id ที่สร้างข้อมูล");
|
||||
|
||||
b.Property<string>("ExitFactor")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ปัจจัยใดที่ทำให้ท่านตัดสินใจลาออกจากราชการ");
|
||||
|
||||
b.Property<string>("ExitFactorOther")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("อื่นๆ ปัจจัยใดที่ทำให้ท่านตัดสินใจลาออกจากราชการ");
|
||||
|
||||
b.Property<bool?>("FutureWork")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasComment("หากท่านมีโอกาสในอนาคต ท่านอยากกลับมาร่วมงานกับกรุงเทพมหานครหรือไม่");
|
||||
|
||||
b.Property<string>("FutureWorkReason")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("เหตุผลหากท่านมีโอกาสในอนาคต ท่านอยากกลับมาร่วมงานกับกรุงเทพมหานครหรือไม่");
|
||||
|
||||
b.Property<bool?>("Havejob")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasComment("ท่านมีงานใหม่หรือไม่และอะไรคือสิ่งที่ที่ทำงานใหม่ให้กับท่าน ซึ่งท่านรู้สึกว่าเป็นที่น่าพอใจมากกว่าการปฏิบัติราชการกับกรุงเทพมหานคร");
|
||||
|
||||
b.Property<string>("HavejobReason")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("เหตุผลท่านมีงานใหม่หรือไม่และอะไรคือสิ่งที่ที่ทำงานใหม่ให้กับท่าน ซึ่งท่านรู้สึกว่าเป็นที่น่าพอใจมากกว่าการปฏิบัติราชการกับกรุงเทพมหานคร");
|
||||
|
||||
b.Property<string>("LastUpdateFullName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasColumnOrder(105)
|
||||
.HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
|
||||
|
||||
b.Property<string>("LastUpdateUserId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("varchar(40)")
|
||||
.HasColumnOrder(103)
|
||||
.HasComment("User Id ที่แก้ไขข้อมูลล่าสุด");
|
||||
|
||||
b.Property<DateTime?>("LastUpdatedAt")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasColumnOrder(102)
|
||||
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
|
||||
|
||||
b.Property<string>("NotExitFactor")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ปัจจัยใดที่จะช่วยทำให้ท่านเปลี่ยนใจ ไม่อยากลาออกจากการปฏิบัติราชการกับกรุงเทพมหานคร");
|
||||
|
||||
b.Property<string>("RealReason")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("โปรดระบุสาเหตุที่แท้จริง ที่ทำให้ท่านตัดสินใจลาออกจากการปฏิบัติราชการกับกรุงเทพมหานคร");
|
||||
|
||||
b.Property<string>("ReasonWork")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("เหตุใดท่านจึงตัดสินใจร่วมงานกับกรุงเทพมหานคร");
|
||||
|
||||
b.Property<string>("ReasonWorkOther")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("อื่นๆ เหตุใดท่านจึงตัดสินใจร่วมงานกับกรุงเทพมหานคร");
|
||||
|
||||
b.Property<Guid>("RetirementResignEmployeeId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<int?>("Score1")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 1");
|
||||
|
||||
b.Property<int?>("Score10")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 10");
|
||||
|
||||
b.Property<int?>("Score2")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 2");
|
||||
|
||||
b.Property<int?>("Score3")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 3");
|
||||
|
||||
b.Property<int?>("Score4")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 4");
|
||||
|
||||
b.Property<int?>("Score5")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 5");
|
||||
|
||||
b.Property<int?>("Score6")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 6");
|
||||
|
||||
b.Property<int?>("Score7")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 7");
|
||||
|
||||
b.Property<int?>("Score8")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 8");
|
||||
|
||||
b.Property<int?>("Score9")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนข้อ 9");
|
||||
|
||||
b.Property<int?>("ScoreTotal")
|
||||
.HasColumnType("int")
|
||||
.HasComment("คะแนนรวม");
|
||||
|
||||
b.Property<bool?>("SuggestFriends")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasComment("ท่านจะแนะนำเพื่อนให้มาร่วมงานกับกรุงเทพมหานครหรือไม่");
|
||||
|
||||
b.Property<string>("SuggestFriendsReason")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("เหตุผลท่านจะแนะนำเพื่อนให้มาร่วมงานกับกรุงเทพมหานครหรือไม่");
|
||||
|
||||
b.Property<string>("Suggestion")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ความคิดเห็นและข้อเสนอแนะอื่น ๆ ");
|
||||
|
||||
b.Property<int?>("TimeThink")
|
||||
.HasColumnType("int")
|
||||
.HasComment("สำหรับการลาออกในครั้งนี้ ท่านได้คิดทบทวนอย่างจริงจังเป็นระยะเวลานานเท่าใด");
|
||||
|
||||
b.Property<string>("child1")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child1 ");
|
||||
|
||||
b.Property<string>("child1DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1 ");
|
||||
|
||||
b.Property<string>("child1Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1 ");
|
||||
|
||||
b.Property<string>("child2")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child2 ");
|
||||
|
||||
b.Property<string>("child2DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2 ");
|
||||
|
||||
b.Property<string>("child2Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2 ");
|
||||
|
||||
b.Property<string>("child3")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child3 ");
|
||||
|
||||
b.Property<string>("child3DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3 ");
|
||||
|
||||
b.Property<string>("child3Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3 ");
|
||||
|
||||
b.Property<string>("child4")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child4 ");
|
||||
|
||||
b.Property<string>("child4DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4 ");
|
||||
|
||||
b.Property<string>("child4Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4 ");
|
||||
|
||||
b.Property<string>("root")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน root ");
|
||||
|
||||
b.Property<string>("rootDnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root ");
|
||||
|
||||
b.Property<string>("rootId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root ");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("RetirementResignEmployeeId");
|
||||
|
||||
b.ToTable("RetirementEmployeeQuestions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
|
|
@ -16565,6 +16798,66 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("int")
|
||||
.HasComment("สำหรับการลาออกในครั้งนี้ ท่านได้คิดทบทวนอย่างจริงจังเป็นระยะเวลานานเท่าใด");
|
||||
|
||||
b.Property<string>("child1")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child1 ");
|
||||
|
||||
b.Property<string>("child1DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1 ");
|
||||
|
||||
b.Property<string>("child1Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1 ");
|
||||
|
||||
b.Property<string>("child2")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child2 ");
|
||||
|
||||
b.Property<string>("child2DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2 ");
|
||||
|
||||
b.Property<string>("child2Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2 ");
|
||||
|
||||
b.Property<string>("child3")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child3 ");
|
||||
|
||||
b.Property<string>("child3DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3 ");
|
||||
|
||||
b.Property<string>("child3Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3 ");
|
||||
|
||||
b.Property<string>("child4")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child4 ");
|
||||
|
||||
b.Property<string>("child4DnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4 ");
|
||||
|
||||
b.Property<string>("child4Id")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4 ");
|
||||
|
||||
b.Property<string>("root")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน root ");
|
||||
|
||||
b.Property<string>("rootDnaId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root ");
|
||||
|
||||
b.Property<string>("rootId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root ");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("RetirementResignId");
|
||||
|
|
@ -17589,6 +17882,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("สถานะลาออก");
|
||||
|
||||
b.Property<string>("child1DnaOldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1 old");
|
||||
|
||||
b.Property<string>("child1Old")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child1 old");
|
||||
|
|
@ -17601,6 +17898,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child1 old");
|
||||
|
||||
b.Property<string>("child2DnaOldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2 old");
|
||||
|
||||
b.Property<string>("child2Old")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child2 old");
|
||||
|
|
@ -17613,6 +17914,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child2 old");
|
||||
|
||||
b.Property<string>("child3DnaOldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3 old");
|
||||
|
||||
b.Property<string>("child3Old")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child3 old");
|
||||
|
|
@ -17625,6 +17930,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child3 old");
|
||||
|
||||
b.Property<string>("child4DnaOldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4 old");
|
||||
|
||||
b.Property<string>("child4Old")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child4 old");
|
||||
|
|
@ -17693,6 +18002,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("profile Id");
|
||||
|
||||
b.Property<string>("rootDnaOldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root old");
|
||||
|
||||
b.Property<string>("rootOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน root old");
|
||||
|
|
@ -18546,6 +18859,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("สถานะลาออก");
|
||||
|
||||
b.Property<string>("child1DnaOldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child1 old");
|
||||
|
||||
b.Property<string>("child1Old")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child1 old");
|
||||
|
|
@ -18558,6 +18875,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child1 old");
|
||||
|
||||
b.Property<string>("child2DnaOldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child2 old");
|
||||
|
||||
b.Property<string>("child2Old")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child2 old");
|
||||
|
|
@ -18570,6 +18891,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child2 old");
|
||||
|
||||
b.Property<string>("child3DnaOldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child3 old");
|
||||
|
||||
b.Property<string>("child3Old")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child3 old");
|
||||
|
|
@ -18582,6 +18907,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อย่อหน่วยงาน child3 old");
|
||||
|
||||
b.Property<string>("child4DnaOldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน child4 old");
|
||||
|
||||
b.Property<string>("child4Old")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน child4 old");
|
||||
|
|
@ -18634,6 +18963,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("profile Id");
|
||||
|
||||
b.Property<string>("rootDnaOldId")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("id หน่วยงาน root old");
|
||||
|
||||
b.Property<string>("rootOld")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อหน่วยงาน root old");
|
||||
|
|
@ -20340,6 +20673,17 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Navigation("Profile");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementEmployeeQuestion", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee", "RetirementResignEmployee")
|
||||
.WithMany()
|
||||
.HasForeignKey("RetirementResignEmployeeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("RetirementResignEmployee");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Retirement.RetirementExpulsion", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue