//
using System;
using BMA.EHR.Infrastructure.Persistence;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
{
[DbContext(typeof(DisciplineDbContext))]
partial class DisciplineDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "7.0.9")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)")
.HasColumnOrder(0)
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
b.Property("Appellant")
.IsRequired()
.HasColumnType("longtext")
.HasComment("ผู้ร้องเรียน");
b.Property("ComplaintFrom")
.IsRequired()
.HasColumnType("longtext")
.HasComment("รับเรื่องร้องเรียนจาก ระบุว่ารับเรื่องมาจากใคร/หน่วยงานไหน (สตง., ปปช., ปปท., จดหมาย, อีเมล, โทรศัพท์, บอกกล่าว)");
b.Property("ConsideredAgency")
.HasColumnType("char(36)")
.HasComment("หน่วยงานที่พิจารณา จะเปลี่ยนไปตามผู้ถูกร้องดูรายละเอียดด้านล่าง");
b.Property("CreatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(100)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property("CreatedFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(104)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property("CreatedUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(101)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property("DateConsideration")
.HasColumnType("datetime(6)")
.HasComment("วันที่กำหนดพิจารณา");
b.Property("DateNotification")
.HasColumnType("datetime(6)")
.HasComment("วันแจ้งเตือนล่วงหน้า");
b.Property("DateReceived")
.HasColumnType("datetime(6)")
.HasComment("วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ");
b.Property("Description")
.IsRequired()
.HasColumnType("text")
.HasComment("รายละเอียดของเรื่องร้องเรียน");
b.Property("LastUpdateFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(105)
.HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdateUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(103)
.HasComment("User Id ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(102)
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
b.Property("LevelConsideration")
.IsRequired()
.HasColumnType("longtext")
.HasComment("ระดับการพิจารณา 'ยังไม่ระบุ' (NORMAL คือ ปกติ, URGENT คือ ด่วน, VERY_URGENT คือ ด่วนมาก)");
b.Property("OffenseDetails")
.IsRequired()
.HasColumnType("longtext")
.HasComment("ลักษณะความผิดครั้งแรกจะเป็น 'ยังไม่ระบุ' (NOT_SPECIFIED คือ ยังไม่ระบุ, NOT_DEADLY คือ ไม่ร้ายแรง, DEADLY คือ ร้ายแรง)");
b.Property("Organization")
.HasColumnType("char(36)")
.HasComment("กรณีหน่วยงานใส่ id ของหน่วยงาน");
b.Property("RejectReason")
.HasColumnType("longtext")
.HasComment("เหตุผลยุติเรื่อง");
b.Property("RespondentType")
.IsRequired()
.HasColumnType("longtext")
.HasComment("ผู้ถูกร้องเรียน (PERSON คือ บุคคล, ORGANIZATION คือ หน่วยงาน, BANGKOK คือ กรุงเทพมหานคร)");
b.Property("Status")
.IsRequired()
.HasColumnType("longtext")
.HasComment("สถานะเรื่องร้องเรียน มีดังนี้ ใหม่ (NEW), ยุติเรื่อง (STOP), มีมูลส่งไปสืบสวนแล้ว (SEND_INVESTIGATE)");
b.Property("Title")
.IsRequired()
.HasColumnType("text")
.HasComment("เรื่องที่ร้องเรียน");
b.HasKey("Id");
b.ToTable("DisciplineComplaints");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Channel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)")
.HasColumnOrder(0)
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
b.Property("CreatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(100)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property("CreatedFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(104)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property("CreatedUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(101)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property("LastUpdateFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(105)
.HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdateUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(103)
.HasComment("User Id ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(102)
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
b.Property("Name")
.IsRequired()
.HasColumnType("longtext")
.HasComment("ชื่อประเภทการร้องเรียน");
b.HasKey("Id");
b.ToTable("DisciplineComplaint_Channels");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Doc", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)")
.HasColumnOrder(0)
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
b.Property("CreatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(100)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property("CreatedFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(104)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property("CreatedUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(101)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property("DisciplineComplaintId")
.HasColumnType("char(36)");
b.Property("DocumentId")
.HasColumnType("char(36)");
b.Property("LastUpdateFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(105)
.HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdateUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(103)
.HasComment("User Id ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(102)
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
b.HasKey("Id");
b.HasIndex("DisciplineComplaintId");
b.HasIndex("DocumentId");
b.ToTable("DisciplineComplaint_Docs");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineComplaint_Profile", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)")
.HasColumnOrder(0)
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
b.Property("CitizenId")
.HasMaxLength(13)
.HasColumnType("varchar(13)")
.HasComment("รหัสบัตรประชาชน");
b.Property("CreatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(100)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property("CreatedFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(104)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property("CreatedUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(101)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property("DisciplineComplaintId")
.HasColumnType("char(36)");
b.Property("FirstName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("ชื่อ");
b.Property("LastName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("นามสกุล");
b.Property("LastUpdateFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(105)
.HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdateUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(103)
.HasComment("User Id ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(102)
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
b.Property("Organization")
.HasColumnType("longtext")
.HasComment("สังกัด");
b.Property("PersonId")
.HasColumnType("char(36)")
.HasComment("id อ้างอิง profile");
b.Property("PosNo")
.HasColumnType("longtext")
.HasComment("เลขที่ตำแหน่ง");
b.Property("Position")
.HasColumnType("longtext")
.HasComment("ตำแหน่ง");
b.Property("PositionLevel")
.HasColumnType("longtext")
.HasComment("ระดับ");
b.Property("Prefix")
.HasColumnType("longtext")
.HasComment("คำนำหน้า");
b.Property("Salary")
.HasColumnType("double")
.HasComment("เงินเดือน");
b.HasKey("Id");
b.HasIndex("DisciplineComplaintId");
b.ToTable("DisciplineComplaint_Profiles");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.DisciplineDirector", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)")
.HasColumnOrder(0)
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
b.Property("CreatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(100)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property("CreatedFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(104)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property("CreatedUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(101)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property("Email")
.IsRequired()
.HasColumnType("longtext")
.HasComment("อีเมล");
b.Property("FirstName")
.IsRequired()
.HasColumnType("longtext")
.HasComment("ชื่อ");
b.Property("LastName")
.IsRequired()
.HasColumnType("longtext")
.HasComment("นามสกุล");
b.Property("LastUpdateFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(105)
.HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdateUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(103)
.HasComment("User Id ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(102)
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
b.Property("Phone")
.IsRequired()
.HasColumnType("longtext")
.HasComment("เบอร์โทรศัพท์");
b.Property("Position")
.IsRequired()
.HasColumnType("longtext")
.HasComment("ตำแหน่ง");
b.Property("Prefix")
.IsRequired()
.HasColumnType("longtext")
.HasComment("คำนำหน้าชื่อ");
b.HasKey("Id");
b.ToTable("DisciplineDirectors");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Discipline.Document", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("CreatedDate")
.HasColumnType("datetime(6)");
b.Property("Detail")
.IsRequired()
.HasColumnType("text");
b.Property("FileName")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("varchar(255)");
b.Property("FileSize")
.HasColumnType("int");
b.Property("FileType")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property("ObjectRefId")
.HasColumnType("char(36)");
b.HasKey("Id");
b.ToTable("Documents");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.Documents.Document", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("CreatedDate")
.HasColumnType("datetime(6)");
b.Property("Detail")
.IsRequired()
.HasColumnType("text");
b.Property("FileName")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("varchar(255)");
b.Property("FileSize")
.HasColumnType("int");
b.Property("FileType")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property("ObjectRefId")
.HasColumnType("char(36)");
b.HasKey("Id");
b.ToTable("Document");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitLeave", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)")
.HasColumnOrder(0)
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
b.Property("CreatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(100)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property("CreatedFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(104)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property("CreatedUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(101)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property("LastUpdateFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(105)
.HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdateUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(103)
.HasComment("User Id ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(102)
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
b.Property("Name")
.HasColumnType("longtext")
.HasComment("ยังไม่ชัวใช้อะไรเป็นkey");
b.HasKey("Id");
b.ToTable("LimitLeave");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.LimitTypeLeave", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)")
.HasColumnOrder(0)
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
b.Property("CreatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(100)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property("CreatedFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(104)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property("CreatedUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(101)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property("LastUpdateFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(105)
.HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdateUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(103)
.HasComment("User Id ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(102)
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
b.Property("LimitLeaveId")
.HasColumnType("char(36)");
b.Property("NumLeave")
.HasColumnType("double")
.HasComment("จำนวนที่ลาได้");
b.Property("TypeLeaveId")
.HasColumnType("char(36)");
b.HasKey("Id");
b.HasIndex("LimitLeaveId");
b.HasIndex("TypeLeaveId");
b.ToTable("LimitTypeLeave");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.Profile", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)")
.HasColumnOrder(0)
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
b.Property("Ability")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property("AvatarId")
.HasColumnType("char(36)");
b.Property("AvatarRef")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property("BirthDate")
.HasColumnType("datetime(6)")
.HasComment("วันเกิด");
b.Property("BloodGroupId")
.HasColumnType("char(36)")
.HasComment("Id กลุ่มเลือด");
b.Property("CitizenId")
.HasMaxLength(13)
.HasColumnType("varchar(13)")
.HasComment("รหัสบัตรประชาชน");
b.Property("Couple")
.HasColumnType("tinyint(1)")
.HasComment("คู่สมรส");
b.Property("CoupleCareer")
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("อาชีพคู่สมรส");
b.Property("CoupleCitizenId")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasComment("เลขที่บัตรประชาชนคู่สมรส");
b.Property("CoupleFirstName")
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("ชื่อคู่สมรส");
b.Property("CoupleLastName")
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("นามสกุลคู่สมรส");
b.Property("CoupleLastNameOld")
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("นามสกุลคู่สมรส(เดิม)");
b.Property("CoupleLive")
.HasColumnType("tinyint(1)")
.HasComment("มีชีวิตคู่สมรส");
b.Property("CouplePrefixId")
.HasColumnType("char(36)")
.HasComment("Id คำนำหน้าคู่สมรส");
b.Property("CreatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(100)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property("CreatedDate")
.HasColumnType("datetime(6)");
b.Property("CreatedFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(104)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property("CreatedUser")
.IsRequired()
.HasMaxLength(250)
.HasColumnType("varchar(250)");
b.Property("CreatedUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(101)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property("CurrentAddress")
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasComment("ที่อยู่ปัจจุบัน");
b.Property("CurrentDistrictId")
.HasColumnType("char(36)")
.HasComment("Id เขตปัจจุบัน");
b.Property("CurrentProvinceId")
.HasColumnType("char(36)")
.HasComment("Id จังหวัดปัจจุบัน");
b.Property("CurrentSubDistrictId")
.HasColumnType("char(36)")
.HasComment("Id แขวงปัจจุบัน");
b.Property("CurrentZipCode")
.HasMaxLength(5)
.HasColumnType("varchar(5)")
.HasComment("รหัสไปรษณีย์ปัจจุบัน");
b.Property("DateAppoint")
.HasColumnType("datetime(6)");
b.Property("DateRetire")
.HasColumnType("datetime(6)");
b.Property("DateStart")
.HasColumnType("datetime(6)");
b.Property("EmployeeClass")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasComment("ประเภทลูกจ้าง");
b.Property("EmployeeMoneyAllowance")
.HasColumnType("double")
.HasComment("เงินช่วยเหลือค่าครองชีพชั่วคราว");
b.Property("EmployeeMoneyEmployee")
.HasColumnType("double")
.HasComment("เงินสมทบประกันสังคม(ลูกจ้าง)");
b.Property("EmployeeMoneyEmployer")
.HasColumnType("double")
.HasComment("เงินสมทบประกันสังคม(นายจ้าง)");
b.Property("EmployeeMoneyIncrease")
.HasColumnType("double")
.HasComment("เงินเพิ่มการครองชีพชั่วคราว");
b.Property("EmployeeOc")
.HasColumnType("longtext")
.HasComment("สังกัด");
b.Property("EmployeeType")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasComment("ประเภทการจ้าง");
b.Property("EmployeeTypeIndividual")
.HasColumnType("longtext")
.HasComment("ประเภทบุคคล");
b.Property("EmployeeWage")
.HasColumnType("double")
.HasComment("ค่าจ้าง");
b.Property("EntryStatus")
.IsRequired()
.HasMaxLength(5)
.HasColumnType("varchar(5)");
b.Property("FatherCareer")
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("อาชีพบิดา");
b.Property("FatherCitizenId")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasComment("เลขที่บัตรประชาชนบิดา");
b.Property("FatherFirstName")
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("ชื่อบิดา");
b.Property("FatherLastName")
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("นามสกุลบิดา");
b.Property("FatherLive")
.HasColumnType("tinyint(1)")
.HasComment("มีชีวิตบิดา");
b.Property("FatherPrefixId")
.HasColumnType("char(36)")
.HasComment("Id คำนำหน้าบิดา");
b.Property("FirstName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("ชื่อ");
b.Property("FirstNameOld")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("ชื่อ(เดิม)");
b.Property("GenderId")
.HasColumnType("char(36)");
b.Property("GovAgeAbsent")
.HasColumnType("int");
b.Property("GovAgePlus")
.HasColumnType("int");
b.Property("GovernmentCode")
.HasColumnType("longtext");
b.Property("IsActive")
.HasColumnType("tinyint(1)");
b.Property("IsLeave")
.HasColumnType("tinyint(1)");
b.Property("IsProbation")
.HasColumnType("tinyint(1)");
b.Property("IsTransfer")
.HasColumnType("tinyint(1)");
b.Property("IsVerified")
.HasColumnType("tinyint(1)");
b.Property("KeycloakId")
.HasColumnType("char(36)");
b.Property("LastName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("นามสกุล");
b.Property("LastNameOld")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("นามสกุล(เดิม)");
b.Property("LastUpdateFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(105)
.HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdateUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(103)
.HasComment("User Id ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(102)
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
b.Property("LeaveDate")
.HasColumnType("datetime(6)");
b.Property("LeaveDateOrder")
.HasColumnType("datetime(6)");
b.Property("LeaveDetail")
.HasColumnType("longtext");
b.Property("LeaveNumberOrder")
.HasColumnType("longtext");
b.Property("LeaveReason")
.HasMaxLength(1000)
.HasColumnType("varchar(1000)");
b.Property("LimitLeaveId")
.HasColumnType("char(36)");
b.Property("ModifiedDate")
.HasColumnType("datetime(6)");
b.Property("MotherCareer")
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("อาชีพมารดา");
b.Property("MotherCitizenId")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasComment("เลขที่บัตรประชาชนมารดา");
b.Property("MotherFirstName")
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("ชื่อมารดา");
b.Property("MotherLastName")
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("นามสกุลมารดา");
b.Property("MotherLive")
.HasColumnType("tinyint(1)")
.HasComment("มีชีวิตมารดา");
b.Property("MotherPrefixId")
.HasColumnType("char(36)")
.HasComment("Id คำนำหน้ามารดา");
b.Property("Nationality")
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("สัญชาติ");
b.Property("Oc")
.HasColumnType("longtext")
.HasComment("สังกัด");
b.Property("OcId")
.HasColumnType("char(36)")
.HasComment("Id สังกัด");
b.Property("OrganizationOrganization")
.HasColumnType("longtext");
b.Property("OrganizationOrganizationId")
.HasColumnType("char(36)");
b.Property("OrganizationShortName")
.HasColumnType("longtext");
b.Property("OrganizationShortNameId")
.HasColumnType("char(36)");
b.Property("Physical")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("สถานภาพทางกาย");
b.Property("PosNoEmployee")
.HasColumnType("longtext")
.HasComment("เลขที่ตำแหน่งลูกจ้าง");
b.Property("PosNoId")
.HasColumnType("char(36)");
b.Property("PositionEmployeeGroupId")
.HasColumnType("char(36)");
b.Property("PositionEmployeeLevelId")
.HasColumnType("char(36)");
b.Property("PositionEmployeeLineId")
.HasColumnType("char(36)");
b.Property("PositionEmployeePositionId")
.HasColumnType("char(36)");
b.Property("PositionEmployeePositionSideId")
.HasColumnType("char(36)");
b.Property("PositionExecutive")
.HasColumnType("longtext")
.HasComment("ตำแหน่งทางการบริหาร");
b.Property("PositionExecutiveId")
.HasColumnType("char(36)")
.HasComment("Id ตำแหน่งทางการบริหาร");
b.Property("PositionExecutiveSide")
.HasColumnType("longtext")
.HasComment("ด้านทางการบริหาร");
b.Property("PositionExecutiveSideId")
.HasColumnType("char(36)")
.HasComment("Id ด้านทางการบริหาร");
b.Property("PositionId")
.HasColumnType("char(36)");
b.Property("PositionLevelId")
.HasColumnType("char(36)");
b.Property("PositionLine")
.HasColumnType("longtext")
.HasComment("สายงาน");
b.Property("PositionLineId")
.HasColumnType("char(36)")
.HasComment("Id สายงาน");
b.Property("PositionPathSide")
.HasColumnType("longtext")
.HasComment("ด้าน/สาขา");
b.Property("PositionPathSideId")
.HasColumnType("char(36)")
.HasComment("Id ด้าน/สาขา");
b.Property("PositionTypeId")
.HasColumnType("char(36)");
b.Property("PrefixId")
.HasColumnType("char(36)");
b.Property("PrefixOldId")
.HasColumnType("char(36)")
.HasComment("Id คำนำหน้า(เดิม)");
b.Property("ProfileType")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property("Race")
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasComment("เชื้อชาติ");
b.Property("ReasonSameDate")
.HasColumnType("longtext");
b.Property("RegistrationAddress")
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasComment("Id แขวงตามทะเบียนบ้าน");
b.Property("RegistrationDistrictId")
.HasColumnType("char(36)")
.HasComment("Id เขตตามทะเบียนบ้าน");
b.Property("RegistrationProvinceId")
.HasColumnType("char(36)")
.HasComment("Id จังหวัดตามทะเบียนบ้าน");
b.Property("RegistrationSame")
.HasColumnType("tinyint(1)")
.HasComment("ที่อยู่ปัจจุบันตรงกับที่อยู่ตามทะเบียนบ้านหรือไม่");
b.Property("RegistrationSubDistrictId")
.HasColumnType("char(36)")
.HasComment("แขวงตามทะเบียนบ้าน");
b.Property("RegistrationZipCode")
.HasMaxLength(5)
.HasColumnType("varchar(5)")
.HasComment("รหัสไปรษณีย์ตามทะเบียนบ้าน");
b.Property("RelationshipId")
.HasColumnType("char(36)")
.HasComment("Id สถานะภาพ");
b.Property("ReligionId")
.HasColumnType("char(36)")
.HasComment("Id ศาสนา");
b.Property("TelephoneNumber")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("เบอร์โทร");
b.Property("TransferDate")
.HasColumnType("datetime(6)");
b.Property("VerifiedDate")
.HasColumnType("datetime(6)");
b.Property("VerifiedUser")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.HasKey("Id");
b.HasIndex("AvatarId");
b.HasIndex("GenderId");
b.HasIndex("LimitLeaveId");
b.HasIndex("PosNoId");
b.HasIndex("PositionEmployeeGroupId");
b.HasIndex("PositionEmployeeLevelId");
b.HasIndex("PositionEmployeeLineId");
b.HasIndex("PositionEmployeePositionId");
b.HasIndex("PositionEmployeePositionSideId");
b.HasIndex("PositionId");
b.HasIndex("PositionLevelId");
b.HasIndex("PositionTypeId");
b.HasIndex("PrefixId");
b.ToTable("Profile");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbility", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)")
.HasColumnOrder(0)
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
b.Property("CreatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(100)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property("CreatedFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(104)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property("CreatedUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(101)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property("DateEnd")
.HasColumnType("datetime(6)")
.HasComment("วันที่สิ้นสุด");
b.Property("DateStart")
.HasColumnType("datetime(6)")
.HasComment("วันที่เริ่มต้น");
b.Property("Detail")
.HasColumnType("longtext")
.HasComment("รายละเอียด");
b.Property("Field")
.HasColumnType("longtext")
.HasComment("ด้าน");
b.Property("LastUpdateFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(105)
.HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdateUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(103)
.HasComment("User Id ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(102)
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
b.Property("ProfileId")
.HasColumnType("char(36)");
b.Property("Reference")
.HasColumnType("longtext")
.HasComment("เอกสารอ้างอิง");
b.Property("Remark")
.HasColumnType("longtext")
.HasComment("หมายเหตุ");
b.HasKey("Id");
b.HasIndex("ProfileId");
b.ToTable("ProfileAbility");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAbilityHistory", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)")
.HasColumnOrder(0)
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
b.Property("CreatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(100)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property("CreatedFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(104)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property("CreatedUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(101)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property("DateEnd")
.HasColumnType("datetime(6)")
.HasComment("วันที่สิ้นสุด");
b.Property("DateStart")
.HasColumnType("datetime(6)")
.HasComment("วันที่เริ่มต้น");
b.Property("Detail")
.HasColumnType("longtext")
.HasComment("รายละเอียด");
b.Property("Field")
.HasColumnType("longtext")
.HasComment("ด้าน");
b.Property("LastUpdateFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(105)
.HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdateUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(103)
.HasComment("User Id ที่แก้ไขข้อมูลล่าสุด");
b.Property("LastUpdatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(102)
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
b.Property("ProfileAbilityId")
.HasColumnType("char(36)");
b.Property("Reference")
.HasColumnType("longtext")
.HasComment("เอกสารอ้างอิง");
b.Property("Remark")
.HasColumnType("longtext")
.HasComment("หมายเหตุ");
b.HasKey("Id");
b.HasIndex("ProfileAbilityId");
b.ToTable("ProfileAbilityHistory");
});
modelBuilder.Entity("BMA.EHR.Domain.Models.HR.ProfileAddressHistory", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)")
.HasColumnOrder(0)
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
b.Property("CreatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(100)
.HasComment("สร้างข้อมูลเมื่อ");
b.Property("CreatedFullName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasColumnOrder(104)
.HasComment("ชื่อ User ที่สร้างข้อมูล");
b.Property("CreatedUserId")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnOrder(101)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property("CurrentAddress")
.HasMaxLength(200)
.HasColumnType("varchar(200)")
.HasComment("ที่อยู่ปัจจุบัน");
b.Property("CurrentDistrict")
.HasColumnType("longtext")
.HasComment("เขตปัจจุบัน");
b.Property("CurrentDistrictId")
.HasColumnType("char(36)")
.HasComment("Id เขตปัจจุบัน");
b.Property("CurrentProvince")
.HasColumnType("longtext")
.HasComment("จังหวัดปัจจุบัน");
b.Property