add migrations

This commit is contained in:
Suphonchai Phoonsawat 2023-04-11 12:53:25 +07:00
parent 4c0ae730df
commit 56fcf7749a
42 changed files with 2859 additions and 1227 deletions

View file

@ -658,6 +658,69 @@ namespace BMA.EHR.Recruit.Service.Migrations
b.ToTable("RecruitImports");
});
modelBuilder.Entity("BMA.EHR.Recruit.Service.Models.Recruits.RecruitImportHistory", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)")
.HasColumnOrder(0)
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
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")
.IsRequired()
.HasColumnType("longtext")
.HasColumnOrder(1)
.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<Guid>("RecruitImportId")
.HasColumnType("char(36)");
b.HasKey("Id");
b.HasIndex("RecruitImportId");
b.ToTable("RecruitImportHistories");
});
modelBuilder.Entity("BMA.EHR.Recruit.Service.Models.Recruits.RecruitOccupation", b =>
{
b.Property<Guid>("Id")
@ -1121,6 +1184,17 @@ namespace BMA.EHR.Recruit.Service.Migrations
b.Navigation("ImportFile");
});
modelBuilder.Entity("BMA.EHR.Recruit.Service.Models.Recruits.RecruitImportHistory", b =>
{
b.HasOne("BMA.EHR.Recruit.Service.Models.Recruits.RecruitImport", "RecruitImport")
.WithMany("ImportHostories")
.HasForeignKey("RecruitImportId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("RecruitImport");
});
modelBuilder.Entity("BMA.EHR.Recruit.Service.Models.Recruits.RecruitOccupation", b =>
{
b.HasOne("BMA.EHR.Recruit.Service.Models.Recruits.Recruit", "Recruit")
@ -1190,6 +1264,8 @@ namespace BMA.EHR.Recruit.Service.Migrations
modelBuilder.Entity("BMA.EHR.Recruit.Service.Models.Recruits.RecruitImport", b =>
{
b.Navigation("ImportHostories");
b.Navigation("Recruits");
b.Navigation("ScoreImport")