add table certificate
This commit is contained in:
parent
0a626fb393
commit
55a5914967
4 changed files with 10631 additions and 32 deletions
|
|
@ -8529,7 +8529,7 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.ToTable("Placements");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCareer", b =>
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
|
|
@ -8538,6 +8538,16 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasComment("PrimaryKey")
|
||||
.HasAnnotation("Relational:JsonPropertyName", "id");
|
||||
|
||||
b.Property<string>("CertificateNo")
|
||||
.HasMaxLength(20)
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasComment("เลขที่ใบอนุญาต");
|
||||
|
||||
b.Property<string>("CertificateType")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasComment("ชื่อใบอนุญาต");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasColumnOrder(100)
|
||||
|
|
@ -8557,13 +8567,18 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnOrder(101)
|
||||
.HasComment("User Id ที่สร้างข้อมูล");
|
||||
|
||||
b.Property<DateTime>("DurationEnd")
|
||||
b.Property<DateTime?>("ExpireDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ระยะเวลาสิ้นสุด");
|
||||
.HasComment("วันที่หมดอายุ");
|
||||
|
||||
b.Property<DateTime>("DurationStart")
|
||||
b.Property<DateTime?>("IssueDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ระยะเวลาเริ่ม");
|
||||
.HasComment("วันที่ออกใบอนุญาต");
|
||||
|
||||
b.Property<string>("Issuer")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasComment("หน่วยงานผู้ออกใบอนุญาต");
|
||||
|
||||
b.Property<string>("LastUpdateFullName")
|
||||
.IsRequired()
|
||||
|
|
@ -8584,34 +8599,14 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnOrder(102)
|
||||
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สถานที่ทำงาน/ฝึกงาน");
|
||||
|
||||
b.Property<Guid>("PlacementProfileId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("Position")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่ง/ลักษณะงาน");
|
||||
|
||||
b.Property<string>("Reason")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("เหตุผลที่ออก");
|
||||
|
||||
b.Property<int>("Salary")
|
||||
.HasMaxLength(20)
|
||||
.HasColumnType("int")
|
||||
.HasComment("เงินเดือนสุดท้ายก่อนออก");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("PlacementProfileId");
|
||||
|
||||
b.ToTable("PlacementCareers");
|
||||
b.ToTable("PlacementCertificates");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b =>
|
||||
|
|
@ -8773,6 +8768,9 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("double")
|
||||
.HasComment("เงินเดือน");
|
||||
|
||||
b.Property<Guid?>("BloodGroupId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<DateTime?>("CitizenDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่ออกบัตร");
|
||||
|
|
@ -9070,6 +9068,11 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Property<Guid?>("PrefixId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("Race")
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("varchar(40)")
|
||||
.HasComment("เชื้อชาติ");
|
||||
|
||||
b.Property<DateTime?>("RecruitDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่บรรจุ");
|
||||
|
|
@ -9110,6 +9113,9 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("เหตุผลผ่อนผัน");
|
||||
|
||||
b.Property<Guid?>("ReligionId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<DateTime?>("ReportingDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่รายงานตัว");
|
||||
|
|
@ -9129,6 +9135,8 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("BloodGroupId");
|
||||
|
||||
b.HasIndex("CitizenDistrictId");
|
||||
|
||||
b.HasIndex("CitizenProvinceId");
|
||||
|
|
@ -9175,6 +9183,8 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
b.HasIndex("ReliefDocId");
|
||||
|
||||
b.HasIndex("ReligionId");
|
||||
|
||||
b.ToTable("PlacementProfiles");
|
||||
});
|
||||
|
||||
|
|
@ -9956,10 +9966,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Navigation("PlacementType");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCareer", b =>
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCertificate", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile")
|
||||
.WithMany("PlacementCareers")
|
||||
.WithMany("PlacementCertificates")
|
||||
.HasForeignKey("PlacementProfileId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
|
@ -9986,6 +9996,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.BloodGroup", "BloodGroup")
|
||||
.WithMany()
|
||||
.HasForeignKey("BloodGroupId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "CitizenDistrict")
|
||||
.WithMany()
|
||||
.HasForeignKey("CitizenDistrictId");
|
||||
|
|
@ -10078,6 +10092,12 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.WithMany()
|
||||
.HasForeignKey("ReliefDocId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.Religion", "Religion")
|
||||
.WithMany()
|
||||
.HasForeignKey("ReligionId");
|
||||
|
||||
b.Navigation("BloodGroup");
|
||||
|
||||
b.Navigation("CitizenDistrict");
|
||||
|
||||
b.Navigation("CitizenProvince");
|
||||
|
|
@ -10123,6 +10143,8 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Navigation("Relationship");
|
||||
|
||||
b.Navigation("ReliefDoc");
|
||||
|
||||
b.Navigation("Religion");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b =>
|
||||
|
|
@ -10299,7 +10321,7 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b =>
|
||||
{
|
||||
b.Navigation("PlacementCareers");
|
||||
b.Navigation("PlacementCertificates");
|
||||
|
||||
b.Navigation("PlacementEducations");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue