api cms แก้หน้าสมัครสอบ

This commit is contained in:
Kittapath 2023-04-07 16:26:11 +07:00
parent c986fc1500
commit 9486ad160d
21 changed files with 9389 additions and 0 deletions

View file

@ -88,6 +88,243 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations
b.ToTable("BankExams");
});
modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CMSAgency", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)")
.HasColumnOrder(0)
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
b.Property<Guid>("CMSCandidateId")
.HasColumnType("char(36)");
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>("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>("Link")
.HasColumnType("longtext")
.HasComment("ลิงค์");
b.Property<string>("Name")
.HasColumnType("longtext")
.HasComment("ชื่อลิงค์");
b.HasKey("Id");
b.HasIndex("CMSCandidateId");
b.ToTable("CMSAgencys");
});
modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CMSCandidate", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)")
.HasColumnOrder(0)
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
b.Property<string>("About")
.HasColumnType("longtext")
.HasComment("ข้อมูลเกี่ยวกับเรา");
b.Property<string>("Address")
.HasColumnType("longtext")
.HasComment("ที่อยู่");
b.Property<Guid?>("BannerImgId")
.HasColumnType("char(36)");
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>("Description")
.HasColumnType("longtext")
.HasComment("ข้อมูลเว็บโดยย่อ");
b.Property<Guid?>("DistrictId")
.HasColumnType("char(36)");
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<Guid?>("LogoImgId")
.HasColumnType("char(36)");
b.Property<string>("NameEn")
.HasColumnType("longtext")
.HasComment("ชื่อเว็บภาษาอังกฤษ");
b.Property<string>("NameTh")
.HasColumnType("longtext")
.HasComment("ชื่อเว็บภาษาไทย");
b.Property<Guid?>("ProvinceId")
.HasColumnType("char(36)");
b.Property<Guid?>("SubDistrictId")
.HasColumnType("char(36)");
b.Property<string>("Telephone")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasComment("โทรศัพท์");
b.Property<string>("ZipCode")
.HasMaxLength(10)
.HasColumnType("varchar(10)")
.HasComment("รหัสไปรษณีย์");
b.HasKey("Id");
b.HasIndex("BannerImgId");
b.HasIndex("DistrictId");
b.HasIndex("LogoImgId");
b.HasIndex("ProvinceId");
b.HasIndex("SubDistrictId");
b.ToTable("CMSCandidates");
});
modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CMSGovernment", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)")
.HasColumnOrder(0)
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
b.Property<Guid>("CMSCandidateId")
.HasColumnType("char(36)");
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>("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>("Link")
.HasColumnType("longtext")
.HasComment("ลิงค์");
b.Property<string>("Name")
.HasColumnType("longtext")
.HasComment("ชื่อลิงค์");
b.HasKey("Id");
b.HasIndex("CMSCandidateId");
b.ToTable("CMSGovernments");
});
modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Candidate", b =>
{
b.Property<Guid>("Id")
@ -1450,6 +1687,61 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations
b.Navigation("PeriodExam");
});
modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CMSAgency", b =>
{
b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.CMSCandidate", "CMSCandidate")
.WithMany("CMSAgencys")
.HasForeignKey("CMSCandidateId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("CMSCandidate");
});
modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CMSCandidate", b =>
{
b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Documents.Document", "BannerImg")
.WithMany()
.HasForeignKey("BannerImgId");
b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.District", "District")
.WithMany()
.HasForeignKey("DistrictId");
b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Documents.Document", "LogoImg")
.WithMany()
.HasForeignKey("LogoImgId");
b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Province", "Province")
.WithMany()
.HasForeignKey("ProvinceId");
b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.SubDistrict", "SubDistrict")
.WithMany()
.HasForeignKey("SubDistrictId");
b.Navigation("BannerImg");
b.Navigation("District");
b.Navigation("LogoImg");
b.Navigation("Province");
b.Navigation("SubDistrict");
});
modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CMSGovernment", b =>
{
b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.CMSCandidate", "CMSCandidate")
.WithMany("CMSGovernments")
.HasForeignKey("CMSCandidateId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("CMSCandidate");
});
modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Candidate", b =>
{
b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.District", "CitizenDistrict")
@ -1654,6 +1946,13 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations
b.Navigation("District");
});
modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CMSCandidate", b =>
{
b.Navigation("CMSAgencys");
b.Navigation("CMSGovernments");
});
modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.District", b =>
{
b.Navigation("SubDistricts");