สร้าง table บรรจุ
This commit is contained in:
parent
b0228a5277
commit
d387cc68bc
10 changed files with 12070 additions and 0 deletions
|
|
@ -8459,6 +8459,792 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.ToTable("Report2Histories");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.Placement", 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<DateTime>("EndDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่สิ้นสุดบัญชี");
|
||||
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("tinyint(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<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("รอบการสอบ");
|
||||
|
||||
b.Property<int>("Number")
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("int")
|
||||
.HasComment("จำนวนผู้สอบได้");
|
||||
|
||||
b.Property<string>("Round")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ครั้งที่");
|
||||
|
||||
b.Property<DateTime>("StartDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่เริ่มบัญชีบัญชี");
|
||||
|
||||
b.Property<string>("TypeExam")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ประเภทการสอบ");
|
||||
|
||||
b.Property<int>("Year")
|
||||
.HasMaxLength(5)
|
||||
.HasColumnType("int")
|
||||
.HasComment("ปีงบประมาณ");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Placements");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCareer", 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<DateTime>("DurationEnd")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ระยะเวลาสิ้นสุด");
|
||||
|
||||
b.Property<DateTime>("DurationStart")
|
||||
.HasColumnType("datetime(6)")
|
||||
.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>("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");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", 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<DateTime>("DurationEnd")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ระยะเวลาสิ้นสุด");
|
||||
|
||||
b.Property<DateTime>("DurationStart")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ระยะเวลาเริ่ม");
|
||||
|
||||
b.Property<Guid?>("EducationLevelId")
|
||||
.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<string>("Major")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สาขาวิชา/วิชาเอก");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อสถานศึกษา");
|
||||
|
||||
b.Property<Guid>("PlacementProfileId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<float>("Scores")
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("float")
|
||||
.HasComment("คะแนนเฉลี่ยตลอดหลักสูตร");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("EducationLevelId");
|
||||
|
||||
b.HasIndex("PlacementProfileId");
|
||||
|
||||
b.ToTable("PlacementEducations");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementIsProperty", 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<bool>("IsActive")
|
||||
.HasColumnType("tinyint(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<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อคุณสมบัติ");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PlacementIsProperties");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("char(36)")
|
||||
.HasColumnOrder(0)
|
||||
.HasComment("PrimaryKey")
|
||||
.HasAnnotation("Relational:JsonPropertyName", "id");
|
||||
|
||||
b.Property<double?>("Amount")
|
||||
.HasColumnType("double")
|
||||
.HasComment("เงินเดือน");
|
||||
|
||||
b.Property<DateTime?>("CitizenDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่ออกบัตร");
|
||||
|
||||
b.Property<Guid?>("CitizenDistrictId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("CitizenId")
|
||||
.HasMaxLength(20)
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasComment("เลขประจำตัวประชาชน");
|
||||
|
||||
b.Property<Guid?>("CitizenProvinceId")
|
||||
.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>("CurrentAddress")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ที่อยู่ปัจจุบัน");
|
||||
|
||||
b.Property<Guid?>("CurrentDistrictId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("CurrentProvinceId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("CurrentSubDistrictId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("CurrentZipCode")
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("varchar(10)")
|
||||
.HasComment("รหัสไปรษณีย์ที่อยู่ปัจจุบัน");
|
||||
|
||||
b.Property<DateTime?>("DateOfBirth")
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันเกิด");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasComment("อีเมล");
|
||||
|
||||
b.Property<int>("ExamNumber")
|
||||
.HasColumnType("int")
|
||||
.HasComment("ลำดับที่สอบได้");
|
||||
|
||||
b.Property<int>("ExamRound")
|
||||
.HasColumnType("int")
|
||||
.HasComment("จำนวนครั้งที่สมัครสอบ");
|
||||
|
||||
b.Property<string>("FatherFirstName")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasComment("ชื่อจริงบิดา");
|
||||
|
||||
b.Property<string>("FatherLastName")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasComment("นามสกุลบิดา");
|
||||
|
||||
b.Property<string>("FatherNationality")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasComment("สัญชาติบิดา");
|
||||
|
||||
b.Property<string>("FatherOccupation")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasComment("อาชีพบิดา");
|
||||
|
||||
b.Property<Guid?>("FatherPrefixId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("Firstname")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อ");
|
||||
|
||||
b.Property<bool?>("IsOfficer")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasComment("ข้าราชการฯ กทม.");
|
||||
|
||||
b.Property<string>("IsProperty")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("การคัดกรองคุณสมบัติ");
|
||||
|
||||
b.Property<string>("Knowledge")
|
||||
.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>("Lastname")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("นามสกุล");
|
||||
|
||||
b.Property<bool?>("Marry")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasComment("คู่สมรส");
|
||||
|
||||
b.Property<string>("MarryFirstName")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasComment("ชื่อจริงคู่สมรส");
|
||||
|
||||
b.Property<string>("MarryLastName")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasComment("นามสกุลคู่สมรส");
|
||||
|
||||
b.Property<string>("MarryNationality")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasComment("สัญชาติคู่สมรส");
|
||||
|
||||
b.Property<string>("MarryOccupation")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasComment("อาชีพคู่สมรส");
|
||||
|
||||
b.Property<Guid?>("MarryPrefixId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("MobilePhone")
|
||||
.HasMaxLength(20)
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasComment("โทรศัพท์มือถือ");
|
||||
|
||||
b.Property<string>("MotherFirstName")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasComment("ชื่อจริงมารดา");
|
||||
|
||||
b.Property<string>("MotherLastName")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasComment("นามสกุลมารดา");
|
||||
|
||||
b.Property<string>("MotherNationality")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("varchar(100)")
|
||||
.HasComment("สัญชาติมารดา");
|
||||
|
||||
b.Property<string>("MotherOccupation")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasComment("อาชีพมารดา");
|
||||
|
||||
b.Property<Guid?>("MotherPrefixId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<double?>("MouthSalaryAmount")
|
||||
.HasColumnType("double")
|
||||
.HasComment("เงินค่าตอบแทนรายเดือน");
|
||||
|
||||
b.Property<string>("Nationality")
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("varchar(40)")
|
||||
.HasComment("สัญชาติ");
|
||||
|
||||
b.Property<int?>("Number")
|
||||
.HasColumnType("int")
|
||||
.HasComment("ลำดับที่สอบได้");
|
||||
|
||||
b.Property<string>("OccupationCompany")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สำนัก/บริษัท บริษัท");
|
||||
|
||||
b.Property<string>("OccupationDepartment")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("กอง/ฝ่าย บริษัท");
|
||||
|
||||
b.Property<string>("OccupationEmail")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasComment("อีเมล บริษัท");
|
||||
|
||||
b.Property<string>("OccupationPosition")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่งอาชีพ");
|
||||
|
||||
b.Property<string>("OccupationTelephone")
|
||||
.HasMaxLength(20)
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasComment("โทรศัพท์ บริษัท");
|
||||
|
||||
b.Property<string>("OccupationType")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ประเภทอาชีพที่ทำงานมาก่อน");
|
||||
|
||||
b.Property<Guid?>("OrganizationPositionId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("Pass")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ผลสมัครสอบ");
|
||||
|
||||
b.Property<Guid?>("PlacementId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("PlacementStatusId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<double?>("PointA")
|
||||
.HasColumnType("double")
|
||||
.HasComment("คะแนนภาค ก");
|
||||
|
||||
b.Property<double?>("PointB")
|
||||
.HasColumnType("double")
|
||||
.HasComment("คะแนนภาค ข");
|
||||
|
||||
b.Property<double?>("PointC")
|
||||
.HasColumnType("double")
|
||||
.HasComment("คะแนนภาค ค");
|
||||
|
||||
b.Property<double?>("PointTotalA")
|
||||
.HasColumnType("double")
|
||||
.HasComment("คะแนนเต็มภาค ก");
|
||||
|
||||
b.Property<double?>("PointTotalB")
|
||||
.HasColumnType("double")
|
||||
.HasComment("คะแนนเต็มภาค ข");
|
||||
|
||||
b.Property<double?>("PointTotalC")
|
||||
.HasColumnType("double")
|
||||
.HasComment("คะแนนเต็มภาค ค");
|
||||
|
||||
b.Property<Guid?>("PositionLevelId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("PositionLineId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("PositionNumberId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("PositionPathId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("PositionPathSideId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<double?>("PositionSalaryAmount")
|
||||
.HasColumnType("double")
|
||||
.HasComment("เงินประจำตำแหน่ง");
|
||||
|
||||
b.Property<Guid?>("PositionTypeId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("PrefixId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<DateTime?>("RecruitDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่บรรจุ");
|
||||
|
||||
b.Property<string>("RegistAddress")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ที่อยู่ตามทะเบียนบ้าน");
|
||||
|
||||
b.Property<Guid?>("RegistDistrictId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("RegistProvinceId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<bool?>("RegistSame")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasComment("ที่อยู่ปัจจุบันเหมือนที่อยู่ตามทะเบียนบ้าน");
|
||||
|
||||
b.Property<Guid?>("RegistSubDistrictId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("RegistZipCode")
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("varchar(10)")
|
||||
.HasComment("รหัสไปรษณีย์ที่อยู่ตามทะเบียนบ้าน");
|
||||
|
||||
b.Property<string>("RejectReason")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("เหตุผลสละสิทธิ์");
|
||||
|
||||
b.Property<Guid?>("RelationshipId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<Guid?>("ReliefDocId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("ReliefReason")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("เหตุผลผ่อนผัน");
|
||||
|
||||
b.Property<string>("SalaryClass")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ตำแหน่ง (รายละเอียด)");
|
||||
|
||||
b.Property<string>("SalaryRef")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("เอกสารอ้างอิง");
|
||||
|
||||
b.Property<string>("Telephone")
|
||||
.HasMaxLength(20)
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasComment("โทรศัพท์");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CitizenDistrictId");
|
||||
|
||||
b.HasIndex("CitizenProvinceId");
|
||||
|
||||
b.HasIndex("CurrentDistrictId");
|
||||
|
||||
b.HasIndex("CurrentProvinceId");
|
||||
|
||||
b.HasIndex("CurrentSubDistrictId");
|
||||
|
||||
b.HasIndex("FatherPrefixId");
|
||||
|
||||
b.HasIndex("MarryPrefixId");
|
||||
|
||||
b.HasIndex("MotherPrefixId");
|
||||
|
||||
b.HasIndex("OrganizationPositionId");
|
||||
|
||||
b.HasIndex("PlacementId");
|
||||
|
||||
b.HasIndex("PlacementStatusId");
|
||||
|
||||
b.HasIndex("PositionLevelId");
|
||||
|
||||
b.HasIndex("PositionLineId");
|
||||
|
||||
b.HasIndex("PositionNumberId");
|
||||
|
||||
b.HasIndex("PositionPathId");
|
||||
|
||||
b.HasIndex("PositionPathSideId");
|
||||
|
||||
b.HasIndex("PositionTypeId");
|
||||
|
||||
b.HasIndex("PrefixId");
|
||||
|
||||
b.HasIndex("RegistDistrictId");
|
||||
|
||||
b.HasIndex("RegistProvinceId");
|
||||
|
||||
b.HasIndex("RegistSubDistrictId");
|
||||
|
||||
b.HasIndex("RelationshipId");
|
||||
|
||||
b.HasIndex("ReliefDocId");
|
||||
|
||||
b.ToTable("PlacementProfiles");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementStatus", 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<bool>("IsActive")
|
||||
.HasColumnType("tinyint(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<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ชื่อสถานะบรรจุ");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PlacementStatuses");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.HR.LimitLeave", "LimitLeave")
|
||||
|
|
@ -9047,6 +9833,175 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Navigation("Report2DetailHistory");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementCareer", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile")
|
||||
.WithMany()
|
||||
.HasForeignKey("PlacementProfileId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("PlacementProfile");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementEducation", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.EducationLevel", "EducationLevel")
|
||||
.WithMany()
|
||||
.HasForeignKey("EducationLevelId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementProfile", "PlacementProfile")
|
||||
.WithMany()
|
||||
.HasForeignKey("PlacementProfileId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("EducationLevel");
|
||||
|
||||
b.Navigation("PlacementProfile");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.Placement.PlacementProfile", b =>
|
||||
{
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "CitizenDistrict")
|
||||
.WithMany()
|
||||
.HasForeignKey("CitizenDistrictId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "CitizenProvince")
|
||||
.WithMany()
|
||||
.HasForeignKey("CitizenProvinceId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "CurrentDistrict")
|
||||
.WithMany()
|
||||
.HasForeignKey("CurrentDistrictId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "CurrentProvince")
|
||||
.WithMany()
|
||||
.HasForeignKey("CurrentProvinceId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.SubDistrict", "CurrentSubDistrict")
|
||||
.WithMany()
|
||||
.HasForeignKey("CurrentSubDistrictId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "FatherPrefix")
|
||||
.WithMany()
|
||||
.HasForeignKey("FatherPrefixId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "MarryPrefix")
|
||||
.WithMany()
|
||||
.HasForeignKey("MarryPrefixId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "MotherPrefix")
|
||||
.WithMany()
|
||||
.HasForeignKey("MotherPrefixId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity", "OrganizationPosition")
|
||||
.WithMany()
|
||||
.HasForeignKey("OrganizationPositionId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.Placement.Placement", "Placement")
|
||||
.WithMany()
|
||||
.HasForeignKey("PlacementId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.Placement.PlacementStatus", "PlacementStatus")
|
||||
.WithMany()
|
||||
.HasForeignKey("PlacementStatusId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLevel", "PositionLevel")
|
||||
.WithMany()
|
||||
.HasForeignKey("PositionLevelId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionLine", "PositionLine")
|
||||
.WithMany()
|
||||
.HasForeignKey("PositionLineId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.Organizations.PositionNumberEntity", "PositionNumber")
|
||||
.WithMany()
|
||||
.HasForeignKey("PositionNumberId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPath", "PositionPath")
|
||||
.WithMany()
|
||||
.HasForeignKey("PositionPathId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionPathSide", "PositionPathSide")
|
||||
.WithMany()
|
||||
.HasForeignKey("PositionPathSideId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.PositionType", "PositionType")
|
||||
.WithMany()
|
||||
.HasForeignKey("PositionTypeId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.Prefix", "Prefix")
|
||||
.WithMany()
|
||||
.HasForeignKey("PrefixId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.District", "RegistDistrict")
|
||||
.WithMany()
|
||||
.HasForeignKey("RegistDistrictId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.Province", "RegistProvince")
|
||||
.WithMany()
|
||||
.HasForeignKey("RegistProvinceId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.SubDistrict", "RegistSubDistrict")
|
||||
.WithMany()
|
||||
.HasForeignKey("RegistSubDistrictId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.Relationship", "Relationship")
|
||||
.WithMany()
|
||||
.HasForeignKey("RelationshipId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.Documents.Document", "ReliefDoc")
|
||||
.WithMany()
|
||||
.HasForeignKey("ReliefDocId");
|
||||
|
||||
b.Navigation("CitizenDistrict");
|
||||
|
||||
b.Navigation("CitizenProvince");
|
||||
|
||||
b.Navigation("CurrentDistrict");
|
||||
|
||||
b.Navigation("CurrentProvince");
|
||||
|
||||
b.Navigation("CurrentSubDistrict");
|
||||
|
||||
b.Navigation("FatherPrefix");
|
||||
|
||||
b.Navigation("MarryPrefix");
|
||||
|
||||
b.Navigation("MotherPrefix");
|
||||
|
||||
b.Navigation("OrganizationPosition");
|
||||
|
||||
b.Navigation("Placement");
|
||||
|
||||
b.Navigation("PlacementStatus");
|
||||
|
||||
b.Navigation("PositionLevel");
|
||||
|
||||
b.Navigation("PositionLine");
|
||||
|
||||
b.Navigation("PositionNumber");
|
||||
|
||||
b.Navigation("PositionPath");
|
||||
|
||||
b.Navigation("PositionPathSide");
|
||||
|
||||
b.Navigation("PositionType");
|
||||
|
||||
b.Navigation("Prefix");
|
||||
|
||||
b.Navigation("RegistDistrict");
|
||||
|
||||
b.Navigation("RegistProvince");
|
||||
|
||||
b.Navigation("RegistSubDistrict");
|
||||
|
||||
b.Navigation("Relationship");
|
||||
|
||||
b.Navigation("ReliefDoc");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b =>
|
||||
{
|
||||
b.Navigation("LimitTypeLeaves");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue