2023-06-05 20:22:51 +07:00
// <auto-generated />
2023-06-26 15:18:39 +07:00
using System ;
2023-06-05 20:22:51 +07:00
using BMA.EHR.Infrastructure.Persistence ;
using Microsoft.EntityFrameworkCore ;
using Microsoft.EntityFrameworkCore.Infrastructure ;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion ;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
[DbContext(typeof(ApplicationDBContext))]
partial class ApplicationDBContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel ( ModelBuilder modelBuilder )
{
#pragma warning disable 612 , 618
modelBuilder
2023-07-13 15:03:29 +07:00
. HasAnnotation ( "ProductVersion" , "7.0.9" )
2023-06-26 14:02:04 +07:00
. HasAnnotation ( "Relational:MaxIdentifierLength" , 64 ) ;
2023-06-26 15:18:39 +07:00
2023-07-13 15:03:29 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Commands.Core.Command" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
2024-07-18 20:37:17 +07:00
b . Property < DateTime ? > ( "ActEndDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่สิ้นสุดการรักษาการแทน" ) ;
b . Property < DateTime ? > ( "ActStartDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่เริ่มรักษาการแทน" ) ;
2023-07-20 14:53:09 +07:00
b . Property < string > ( "AuthorizedPosition" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งผู้มีอำนาจลงนาม" ) ;
2023-07-13 15:03:29 +07:00
b . Property < string > ( "AuthorizedUserFullName" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อผู้มีอำนาจลงนาม" ) ;
b . Property < Guid > ( "AuthorizedUserId" )
. HasColumnType ( "char(36)" )
. HasComment ( "รหัสอ้างอิงผู้มีอำนาจลงนาม" ) ;
2023-12-22 15:29:24 +07:00
b . Property < string > ( "CaseFault" )
. HasColumnType ( "longtext" )
. HasComment ( "กรณีความผิด" ) ;
2023-08-25 12:33:23 +07:00
b . Property < string > ( "ChairManFullName" )
. HasColumnType ( "longtext" )
. HasComment ( "ประธานคณะกรรมการ" ) ;
2023-07-20 14:53:09 +07:00
b . Property < DateTime ? > ( "CommandAffectDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่คำสั่งมีผล" ) ;
b . Property < DateTime ? > ( "CommandExcecuteDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ออกคำสั่ง" ) ;
2023-07-13 15:03:29 +07:00
b . Property < string > ( "CommandNo" )
. IsRequired ( )
. HasMaxLength ( 10 )
. HasColumnType ( "varchar(10)" )
. HasComment ( "เลขที่คำสั่ง" ) ;
b . Property < Guid > ( "CommandStatusId" )
. HasColumnType ( "char(36)" )
. HasComment ( "รหัสอ้างอิงสถานะคำสั่ง" ) ;
2023-07-20 14:53:09 +07:00
b . Property < string > ( "CommandSubject" )
. IsRequired ( )
. HasMaxLength ( 500 )
. HasColumnType ( "varchar(500)" )
. HasComment ( "คำสั่งเรื่อง" ) ;
2023-07-13 15:03:29 +07:00
b . Property < Guid > ( "CommandTypeId" )
. HasColumnType ( "char(36)" )
. HasComment ( "รหัสอ้างอิงประเภทคำสั่ง" ) ;
b . Property < string > ( "CommandYear" )
. IsRequired ( )
. HasMaxLength ( 4 )
. HasColumnType ( "varchar(4)" )
. HasComment ( "ปีที่ออกคำสั่ง" ) ;
2024-01-15 11:50:37 +07:00
b . Property < Guid ? > ( "ComplaintId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id เรื่องร้องเรียน" ) ;
2023-08-25 14:41:31 +07:00
b . Property < DateTime ? > ( "ConclusionFireDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ลงวันที่ (เรื่องการดำเนินการทางวินัย)" ) ;
b . Property < string > ( "ConclusionFireNo" )
. HasColumnType ( "longtext" )
. HasComment ( "ครั้งที่ (เรื่องการดำเนินการทางวินัย)" ) ;
b . Property < string > ( "ConclusionFireResolution" )
. HasColumnType ( "longtext" )
. HasComment ( "มติที่ประชุม (เรื่องการดำเนินการทางวินัย)" ) ;
2023-08-25 10:32:43 +07:00
b . Property < DateTime ? > ( "ConclusionMeetingDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "การประชุม ลงวันที่" ) ;
b . Property < string > ( "ConclusionMeetingNo" )
. HasColumnType ( "longtext" )
. HasComment ( "การประชุม ครั้งที่" ) ;
2023-08-25 12:33:23 +07:00
b . Property < DateTime ? > ( "ConclusionReceiveDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ลงวันที่ (การรับโอน)" ) ;
b . Property < string > ( "ConclusionReceiveNo" )
. HasColumnType ( "longtext" )
. HasComment ( "มติ กก. ครั้งที่ (การรับโอน)" ) ;
2023-08-25 10:32:43 +07:00
b . Property < DateTime ? > ( "ConclusionRegisterDate" )
2023-07-20 14:53:09 +07:00
. HasColumnType ( "datetime(6)" )
. HasComment ( "ลงวันที่ (เรื่อง รับสมัครสอบฯ)" ) ;
b . Property < string > ( "ConclusionRegisterNo" )
. HasColumnType ( "longtext" )
. HasComment ( "มติ กก. ครั้งที่ (เรื่อง รับสมัครสอบฯ)" ) ;
2023-08-25 10:32:43 +07:00
b . Property < DateTime ? > ( "ConclusionResultDate" )
2023-07-20 14:53:09 +07:00
. HasColumnType ( "datetime(6)" )
. HasComment ( "ลงวันที่ (เรื่อง ผลการสอบแข่งขัน)" ) ;
b . Property < string > ( "ConclusionResultNo" )
. HasColumnType ( "longtext" )
. HasComment ( "มติ กก. ครั้งที่ (เรื่อง ผลการสอบแข่งขัน)" ) ;
2023-08-25 10:32:43 +07:00
b . Property < DateTime ? > ( "ConclusionReturnDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ลงวันที่ (เรื่อง กลับเข้ารับราชการ)" ) ;
b . Property < string > ( "ConclusionReturnNo" )
. HasColumnType ( "longtext" )
. HasComment ( "มติ กก. ครั้งที่ (เรื่อง กลับเข้ารับราชการ)" ) ;
2023-10-31 23:02:23 +07:00
b . Property < DateTime ? > ( "ConclusionTranferDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "การประชุม ลงวันที่" ) ;
b . Property < string > ( "ConclusionTranferNo" )
. HasColumnType ( "longtext" )
. HasComment ( "การประชุม ครั้งที่" ) ;
2023-07-13 15:03:29 +07:00
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 ที่สร้างข้อมูล" ) ;
2023-08-25 14:41:31 +07:00
b . Property < string > ( "Fault" )
. HasColumnType ( "longtext" )
. HasComment ( "รายละเอียดการกระทำผิด" ) ;
2023-12-22 15:29:24 +07:00
b . Property < string > ( "FaultLevel" )
. HasColumnType ( "longtext" )
. HasComment ( "ระดับความผิด" ) ;
2023-08-25 12:33:23 +07:00
b . Property < DateTime ? > ( "GovAidCommandDate" )
2023-08-25 14:41:31 +07:00
. HasColumnType ( "datetime(6)" )
. HasComment ( "ลงวันที่ (คำสั่งช่วยราชการ)" ) ;
2023-08-25 12:33:23 +07:00
b . Property < string > ( "GovAidCommandNo" )
2023-08-25 14:41:31 +07:00
. HasColumnType ( "longtext" )
. HasComment ( "คำสั่งเลขที่ (คำสั่งช่วยราชการ)" ) ;
b . Property < string > ( "GuiltyBasis" )
. HasColumnType ( "longtext" )
. HasComment ( "ฐานความผิด" ) ;
2023-08-25 12:33:23 +07:00
2023-07-13 15:03:29 +07:00
b . Property < Guid > ( "IssuerOrganizationId" )
. HasColumnType ( "char(36)" )
. HasComment ( "รหัสอ้างอิงหน่วยงานที่ออกคำสั่ง" ) ;
b . Property < string > ( "IssuerOrganizationName" )
. IsRequired ( )
. 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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2023-08-25 12:33:23 +07:00
b . Property < string > ( "Member1FullName" )
. HasColumnType ( "longtext" )
. HasComment ( "กรรมการคนที่ 1" ) ;
b . Property < string > ( "Member2FullName" )
. HasColumnType ( "longtext" )
. HasComment ( "กรรมการคนที่ 2" ) ;
2023-08-25 10:32:43 +07:00
b . Property < DateTime ? > ( "MilitaryCommanDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ลงวันที่ (ให้เข้ารับราชการทหาร)" ) ;
b . Property < string > ( "MilitaryCommandNo" )
. HasColumnType ( "longtext" )
. HasComment ( "คำสั่งที่ (ให้เข้ารับราชการทหาร)" ) ;
2023-07-28 10:53:03 +07:00
b . Property < Guid > ( "OwnerGovId" )
. HasColumnType ( "char(36)" )
. HasComment ( "รหัสส่วนราชการผู้ออกคำสั่ง" ) ;
2023-08-25 12:33:23 +07:00
b . Property < DateTime ? > ( "PlacementCommandDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "คำสั่งบรรจุลงวันที่" ) ;
b . Property < string > ( "PlacementCommandIssuer" )
. HasColumnType ( "longtext" )
. HasComment ( "หน่วยงานที่ออกคำสั่งบรรจุ" ) ;
b . Property < string > ( "PlacementCommandNo" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขที่คำสั่งบรรจุ" ) ;
2023-08-25 10:32:43 +07:00
b . Property < Guid ? > ( "PlacementId" )
2023-07-28 15:04:26 +07:00
. HasColumnType ( "char(36)" )
. HasComment ( "อ้างอิงรอบการสอบ" ) ;
2023-08-25 12:33:23 +07:00
b . Property < string > ( "PlacementOrganizationName" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัดที่บรรจุ" ) ;
b . Property < string > ( "PlacementPositionName" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งที่บรรจุ" ) ;
2023-07-20 14:53:09 +07:00
b . Property < string > ( "PositionName" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งที่บรรจุ" ) ;
2023-08-25 12:33:23 +07:00
b . Property < DateTime ? > ( "ProbationEndDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่สิ้นสุดการทดลองปฏิบัติราชการ" ) ;
b . Property < DateTime ? > ( "ProbationStartDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่เริ่มทดลองปฏิบัติราชการ" ) ;
b . Property < string > ( "ReceiveOrganizationName" )
. HasColumnType ( "longtext" )
. HasComment ( "ส่วนราชการที่รับโอน" ) ;
2023-12-22 15:29:24 +07:00
b . Property < string > ( "RefRaw" )
. HasColumnType ( "longtext" )
. HasComment ( "อ้างอิงมาตราตามกฏหมาย" ) ;
b . Property < string > ( "Result" )
. HasColumnType ( "longtext" )
. HasComment ( "ผลดำเนินการพิจารณา" ) ;
2024-04-26 10:18:59 +07:00
b . Property < string > ( "SalaryPeriod" )
. HasColumnType ( "longtext" )
. HasComment ( "รอบเงินเดือน" ) ;
b . Property < Guid ? > ( "SalaryPeriodId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id เรื่องเงินเดือน" ) ;
2023-08-25 10:32:43 +07:00
b . Property < string > ( "SourceOrganizationName" )
. HasColumnType ( "longtext" )
. HasComment ( "หน่วยงานต้นสังกัด ก่อนรับราชการทหาร" ) ;
2023-08-25 12:33:23 +07:00
b . Property < string > ( "TransferOrganizationName" )
. HasColumnType ( "longtext" )
. HasComment ( "ส่วนราชการที่ให้โอน" ) ;
2024-04-26 10:18:59 +07:00
b . Property < string > ( "Year" )
. HasMaxLength ( 4 )
. HasColumnType ( "varchar(4)" )
. HasComment ( "ปีรอบเงินเดือน" ) ;
2023-07-13 15:03:29 +07:00
b . HasKey ( "Id" ) ;
b . HasIndex ( "CommandStatusId" ) ;
b . HasIndex ( "CommandTypeId" ) ;
2023-07-28 15:04:26 +07:00
b . HasIndex ( "PlacementId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Commands" ) ;
2023-07-13 15:03:29 +07:00
} ) ;
2023-07-27 10:22:51 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Commands.Core.CommandDeployment" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
2023-07-28 15:04:26 +07:00
b . Property < string > ( "CitizenId" )
. IsRequired ( )
. HasMaxLength ( 13 )
. HasColumnType ( "varchar(13)" )
. HasComment ( "เลขประจำตัวประชาชน" ) ;
2023-07-27 10:22:51 +07:00
b . Property < Guid > ( "CommandId" )
. HasColumnType ( "char(36)" )
. HasComment ( "รหัสอ้างอิงคำสั่ง" ) ;
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 ที่สร้างข้อมูล" ) ;
2023-07-28 15:04:26 +07:00
b . Property < string > ( "FirstName" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "ชื่อ" ) ;
2023-07-27 10:22:51 +07:00
b . Property < bool > ( "IsSendInbox" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ส่งกล่องข้อความหรือไม่?" ) ;
b . Property < bool > ( "IsSendMail" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ส่งอีเมล์หรือไม่?" ) ;
b . Property < bool > ( "IsSendNotification" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ส่งแจ้งเตือนหรือไม่?" ) ;
2023-07-28 15:04:26 +07:00
b . Property < string > ( "LastName" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "นามสกุล" ) ;
2023-07-27 10:22:51 +07:00
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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2023-07-28 15:04:26 +07:00
b . Property < string > ( "OrganizationName" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงานของผู้รับสำเนาคำสั่ง" ) ;
b . Property < string > ( "PositionName" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อตำแหน่งของผู้รับสำเนาคำสั่ง" ) ;
b . Property < string > ( "Prefix" )
. IsRequired ( )
. HasMaxLength ( 50 )
. HasColumnType ( "varchar(50)" )
. HasComment ( "คำนำหน้านาม" ) ;
2023-07-27 10:22:51 +07:00
b . Property < string > ( "ReceiveUserId" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "รหัสอ้างอิงผู้ใช้งานระบบ" ) ;
2023-07-28 15:04:26 +07:00
b . Property < int > ( "Sequence" )
. HasColumnType ( "int" )
. HasComment ( "ลำดับ" ) ;
2023-07-27 10:22:51 +07:00
b . HasKey ( "Id" ) ;
b . HasIndex ( "CommandId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "CommandDeployments" ) ;
2023-07-27 10:22:51 +07:00
} ) ;
2023-07-13 15:03:29 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Commands.Core.CommandDocument" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "Category" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภทเอกสาร" ) ;
b . Property < Guid > ( "CommandId" )
. 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 < Guid > ( "DocumentId" )
. 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 . HasKey ( "Id" ) ;
b . HasIndex ( "CommandId" ) ;
b . HasIndex ( "DocumentId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "CommandDocuments" ) ;
2023-07-13 15:03:29 +07:00
} ) ;
2023-07-27 10:22:51 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Commands.Core.CommandReceiver" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
2023-09-02 13:53:56 +07:00
b . Property < double? > ( "Amount" )
. HasColumnType ( "double" )
. HasComment ( "เงินเดือน" ) ;
2024-06-17 15:02:54 +07:00
b . Property < DateTime ? > ( "BirthDate" )
. HasMaxLength ( 40 )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันเกิด" ) ;
2023-07-27 10:22:51 +07:00
b . Property < string > ( "CitizenId" )
. IsRequired ( )
. HasMaxLength ( 13 )
. HasColumnType ( "varchar(13)" )
. HasComment ( "เลขประจำตัวประชาชน" ) ;
b . Property < Guid > ( "CommandId" )
. HasColumnType ( "char(36)" )
. HasComment ( "รหัสอ้างอิงคำสั่ง" ) ;
b . Property < string > ( "Comment" )
. IsRequired ( )
. HasColumnType ( "text" )
. HasComment ( "หมายเหตุ" ) ;
2023-10-11 11:01:49 +07:00
b . Property < string > ( "Comment2" )
. IsRequired ( )
. HasColumnType ( "text" )
. HasComment ( "หมายเหตุแนวนอน" ) ;
2023-07-27 10:22:51 +07:00
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 > ( "FirstName" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "LastName" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. 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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2023-09-02 13:53:56 +07:00
b . Property < double? > ( "MouthSalaryAmount" )
. HasColumnType ( "double" )
. HasComment ( "เงินค่าตอบแทนรายเดือน" ) ;
2024-06-17 15:02:54 +07:00
b . Property < string > ( "Organization" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน root" ) ;
b . Property < string > ( "PositionLevel" )
. HasColumnType ( "longtext" )
. HasComment ( "ระดับ" ) ;
b . Property < string > ( "PositionName" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่ง" ) ;
b . Property < string > ( "PositionNumber" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขที่ตำแหน่ง" ) ;
2023-09-02 13:53:56 +07:00
b . Property < double? > ( "PositionSalaryAmount" )
. HasColumnType ( "double" )
. HasComment ( "เงินประจำตำแหน่ง" ) ;
2024-06-17 15:02:54 +07:00
b . Property < string > ( "PositionType" )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภท" ) ;
2023-07-27 10:22:51 +07:00
b . Property < string > ( "Prefix" )
. IsRequired ( )
. HasMaxLength ( 50 )
. HasColumnType ( "varchar(50)" )
. HasComment ( "คำนำหน้านาม" ) ;
2024-01-06 03:00:04 +07:00
b . Property < Guid ? > ( "RefDisciplineId" )
. HasColumnType ( "char(36)" )
. HasComment ( "รหัสอ้างอิงไปยังข้อมูลวินัย" ) ;
2023-07-28 15:04:26 +07:00
b . Property < Guid ? > ( "RefPlacementProfileId" )
. HasColumnType ( "char(36)" )
. HasComment ( "รหัสอ้างอิงไปยังข้อมูลผู้บรรจุ" ) ;
2023-07-27 10:22:51 +07:00
b . Property < int > ( "Sequence" )
. HasColumnType ( "int" )
. HasComment ( "ลำดับในบัญชีแนบท้าย" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "CommandId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "CommandReceivers" ) ;
2023-07-27 10:22:51 +07:00
} ) ;
2023-07-13 15:03:29 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Commands.Core.CommandStatus" , 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 > ( "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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "สถานะของคำสั่ง" ) ;
2023-07-20 14:53:09 +07:00
b . Property < int > ( "Sequence" )
. HasColumnType ( "int" )
. HasComment ( "ลำดับการทำงาน" ) ;
2023-07-13 15:03:29 +07:00
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "CommandStatuses" ) ;
2023-07-13 15:03:29 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Commands.Core.CommandType" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "Category" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "ประเภทคำสั่ง" ) ;
2023-07-28 15:04:26 +07:00
b . Property < string > ( "CommandCode" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "รหัสของประเภทคำสั่ง" ) ;
2023-07-13 15:03:29 +07:00
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 > ( "Name" )
. IsRequired ( )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "ชื่อคำสั่ง" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "CommandTypes" ) ;
2023-07-13 15:03:29 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Commands.Core.DeploymentChannel" , b = >
2023-06-28 10:32:16 +07:00
{
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 > ( "IsSendEmail" )
. HasColumnType ( "tinyint(1)" ) ;
b . Property < bool > ( "IsSendInbox" )
. HasColumnType ( "tinyint(1)" ) ;
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 . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "DeploymentChannels" ) ;
2023-06-28 10:32:16 +07:00
} ) ;
2023-06-26 15:18:39 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Documents.Document" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" ) ;
b . Property < DateTime > ( "CreatedDate" )
. HasColumnType ( "datetime(6)" ) ;
b . Property < string > ( "Detail" )
. IsRequired ( )
. HasColumnType ( "text" ) ;
b . Property < string > ( "FileName" )
. IsRequired ( )
. HasMaxLength ( 255 )
. HasColumnType ( "varchar(255)" ) ;
b . Property < int > ( "FileSize" )
. HasColumnType ( "int" ) ;
b . Property < string > ( "FileType" )
. IsRequired ( )
. HasMaxLength ( 128 )
. HasColumnType ( "varchar(128)" ) ;
b . Property < Guid > ( "ObjectRefId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Documents" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.LimitLeave" , 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 > ( "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" )
. HasColumnType ( "longtext" )
. HasComment ( "ยังไม่ชัวใช้อะไรเป็นkey" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "LimitLeaves" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.LimitTypeLeave" , 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 > ( "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 ? > ( "LimitLeaveId" )
. HasColumnType ( "char(36)" ) ;
b . Property < double? > ( "NumLeave" )
. HasColumnType ( "double" )
. HasComment ( "จำนวนที่ลาได้" ) ;
b . Property < Guid ? > ( "TypeLeaveId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "LimitLeaveId" ) ;
b . HasIndex ( "TypeLeaveId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "LimitTypeLeaves" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.Profile" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
2023-07-22 22:14:50 +07:00
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "Ability" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" ) ;
b . Property < Guid ? > ( "AvatarId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "AvatarRef" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" ) ;
b . Property < DateTime > ( "BirthDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันเกิด" ) ;
b . Property < Guid ? > ( "BloodGroupId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id กลุ่มเลือด" ) ;
b . Property < string > ( "CitizenId" )
. HasMaxLength ( 13 )
. HasColumnType ( "varchar(13)" )
. HasComment ( "รหัสบัตรประชาชน" ) ;
b . Property < bool? > ( "Couple" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "คู่สมรส" ) ;
b . Property < string > ( "CoupleCareer" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "อาชีพคู่สมรส" ) ;
2023-08-16 16:44:36 +07:00
b . Property < string > ( "CoupleCitizenId" )
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
. HasComment ( "เลขที่บัตรประชาชนคู่สมรส" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "CoupleFirstName" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "ชื่อคู่สมรส" ) ;
b . Property < string > ( "CoupleLastName" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "นามสกุลคู่สมรส" ) ;
b . Property < string > ( "CoupleLastNameOld" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "นามสกุลคู่สมรส(เดิม)" ) ;
2023-08-16 16:44:36 +07:00
b . Property < bool > ( "CoupleLive" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "มีชีวิตคู่สมรส" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "CouplePrefixId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id คำนำหน้าคู่สมรส" ) ;
b . Property < DateTime > ( "CreatedAt" )
. HasColumnType ( "datetime(6)" )
. HasColumnOrder ( 100 )
. HasComment ( "สร้างข้อมูลเมื่อ" ) ;
b . Property < DateTime ? > ( "CreatedDate" )
. HasColumnType ( "datetime(6)" ) ;
b . Property < string > ( "CreatedFullName" )
. IsRequired ( )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasColumnOrder ( 104 )
. HasComment ( "ชื่อ User ที่สร้างข้อมูล" ) ;
b . Property < string > ( "CreatedUser" )
. IsRequired ( )
. HasMaxLength ( 250 )
. HasColumnType ( "varchar(250)" ) ;
b . Property < string > ( "CreatedUserId" )
. IsRequired ( )
. HasMaxLength ( 40 )
. HasColumnType ( "varchar(40)" )
. HasColumnOrder ( 101 )
. HasComment ( "User Id ที่สร้างข้อมูล" ) ;
b . Property < string > ( "CurrentAddress" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "ที่อยู่ปัจจุบัน" ) ;
b . Property < Guid ? > ( "CurrentDistrictId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id เขตปัจจุบัน" ) ;
b . Property < Guid ? > ( "CurrentProvinceId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id จังหวัดปัจจุบัน" ) ;
b . Property < Guid ? > ( "CurrentSubDistrictId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id แขวงปัจจุบัน" ) ;
b . Property < string > ( "CurrentZipCode" )
. HasMaxLength ( 5 )
. HasColumnType ( "varchar(5)" )
. HasComment ( "รหัสไปรษณีย์ปัจจุบัน" ) ;
b . Property < DateTime ? > ( "DateAppoint" )
. HasColumnType ( "datetime(6)" ) ;
b . Property < DateTime ? > ( "DateRetire" )
. HasColumnType ( "datetime(6)" ) ;
b . Property < DateTime ? > ( "DateStart" )
. HasColumnType ( "datetime(6)" ) ;
2023-11-23 15:48:09 +07:00
b . Property < DateTime ? > ( "DutyTimeEffectiveDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่รอบการลงเวลามีผล" ) ;
b . Property < Guid ? > ( "DutyTimeId" )
. HasColumnType ( "char(36)" )
. HasComment ( "รอบการลงเวลาเข้างาน" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "EmployeeClass" )
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
. HasComment ( "ประเภทลูกจ้าง" ) ;
2023-08-31 12:26:04 +07:00
b . Property < double? > ( "EmployeeMoneyAllowance" )
. HasColumnType ( "double" )
. HasComment ( "เงินช่วยเหลือค่าครองชีพชั่วคราว" ) ;
b . Property < double? > ( "EmployeeMoneyEmployee" )
. HasColumnType ( "double" )
. HasComment ( "เงินสมทบประกันสังคม(ลูกจ้าง)" ) ;
b . Property < double? > ( "EmployeeMoneyEmployer" )
. HasColumnType ( "double" )
. HasComment ( "เงินสมทบประกันสังคม(นายจ้าง)" ) ;
b . Property < double? > ( "EmployeeMoneyIncrease" )
. HasColumnType ( "double" )
. HasComment ( "เงินเพิ่มการครองชีพชั่วคราว" ) ;
b . Property < string > ( "EmployeeOc" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัด" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "EmployeeType" )
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
. HasComment ( "ประเภทการจ้าง" ) ;
2023-08-31 12:26:04 +07:00
b . Property < string > ( "EmployeeTypeIndividual" )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภทบุคคล" ) ;
2023-09-04 13:28:23 +07:00
b . Property < double? > ( "EmployeeWage" )
. HasColumnType ( "double" )
2023-08-31 12:26:04 +07:00
. HasComment ( "ค่าจ้าง" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "EntryStatus" )
. IsRequired ( )
. HasMaxLength ( 5 )
. HasColumnType ( "varchar(5)" ) ;
b . Property < string > ( "FatherCareer" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "อาชีพบิดา" ) ;
2023-08-16 16:44:36 +07:00
b . Property < string > ( "FatherCitizenId" )
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
. HasComment ( "เลขที่บัตรประชาชนบิดา" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "FatherFirstName" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "ชื่อบิดา" ) ;
b . Property < string > ( "FatherLastName" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "นามสกุลบิดา" ) ;
2023-08-16 16:44:36 +07:00
b . Property < bool > ( "FatherLive" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "มีชีวิตบิดา" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "FatherPrefixId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id คำนำหน้าบิดา" ) ;
b . Property < string > ( "FirstName" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "FirstNameOld" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "ชื่อ(เดิม)" ) ;
b . Property < Guid ? > ( "GenderId" )
2023-07-22 22:14:50 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < int > ( "GovAgeAbsent" )
. HasColumnType ( "int" ) ;
b . Property < int > ( "GovAgePlus" )
. HasColumnType ( "int" ) ;
b . Property < string > ( "GovernmentCode" )
. HasColumnType ( "longtext" ) ;
b . Property < bool > ( "IsActive" )
. HasColumnType ( "tinyint(1)" ) ;
b . Property < bool > ( "IsLeave" )
. HasColumnType ( "tinyint(1)" ) ;
b . Property < bool > ( "IsProbation" )
. HasColumnType ( "tinyint(1)" ) ;
2024-02-13 13:25:01 +07:00
b . Property < bool > ( "IsSendVerified" )
. HasColumnType ( "tinyint(1)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < bool > ( "IsTransfer" )
. HasColumnType ( "tinyint(1)" ) ;
b . Property < bool > ( "IsVerified" )
. HasColumnType ( "tinyint(1)" ) ;
2023-07-06 14:37:13 +07:00
b . Property < Guid ? > ( "KeycloakId" )
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "LastName" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "นามสกุล" ) ;
b . Property < string > ( "LastNameOld" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. 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 < DateTime ? > ( "LeaveDate" )
. HasColumnType ( "datetime(6)" ) ;
b . Property < DateTime ? > ( "LeaveDateOrder" )
. HasColumnType ( "datetime(6)" ) ;
b . Property < string > ( "LeaveDetail" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "LeaveNumberOrder" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "LeaveReason" )
. HasMaxLength ( 1000 )
. HasColumnType ( "varchar(1000)" ) ;
b . Property < Guid ? > ( "LimitLeaveId" )
. HasColumnType ( "char(36)" ) ;
b . Property < DateTime ? > ( "ModifiedDate" )
. HasColumnType ( "datetime(6)" ) ;
b . Property < string > ( "MotherCareer" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "อาชีพมารดา" ) ;
2023-08-16 16:44:36 +07:00
b . Property < string > ( "MotherCitizenId" )
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
. HasComment ( "เลขที่บัตรประชาชนมารดา" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "MotherFirstName" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "ชื่อมารดา" ) ;
b . Property < string > ( "MotherLastName" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "นามสกุลมารดา" ) ;
2023-08-16 16:44:36 +07:00
b . Property < bool > ( "MotherLive" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "มีชีวิตมารดา" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "MotherPrefixId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id คำนำหน้ามารดา" ) ;
b . Property < string > ( "Nationality" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "สัญชาติ" ) ;
b . Property < string > ( "Oc" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัด" ) ;
b . Property < Guid ? > ( "OcId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id สังกัด" ) ;
b . Property < string > ( "OrganizationOrganization" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "OrganizationOrganizationId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "OrganizationShortName" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "OrganizationShortNameId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Physical" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "สถานภาพทางกาย" ) ;
b . Property < string > ( "PosNoEmployee" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขที่ตำแหน่งลูกจ้าง" ) ;
b . Property < Guid ? > ( "PosNoId" )
2023-07-22 22:14:50 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "PositionEmployeeGroupId" )
2023-08-31 12:26:04 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "PositionEmployeeLevelId" )
2023-08-31 12:26:04 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
2023-08-31 12:26:04 +07:00
b . Property < Guid ? > ( "PositionEmployeeLineId" )
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "PositionEmployeePositionId" )
2023-08-31 12:26:04 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "PositionEmployeePositionSideId" )
2023-08-31 12:26:04 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "PositionExecutive" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหาร" ) ;
b . Property < Guid ? > ( "PositionExecutiveId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ตำแหน่งทางการบริหาร" ) ;
b . Property < string > ( "PositionExecutiveSide" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร" ) ;
b . Property < Guid ? > ( "PositionExecutiveSideId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ด้านทางการบริหาร" ) ;
b . Property < Guid ? > ( "PositionId" )
2023-07-22 22:14:50 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "PositionLevelId" )
2023-07-22 22:14:50 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "PositionLine" )
. HasColumnType ( "longtext" )
. HasComment ( "สายงาน" ) ;
b . Property < Guid ? > ( "PositionLineId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id สายงาน" ) ;
b . Property < string > ( "PositionPathSide" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา" ) ;
b . Property < Guid ? > ( "PositionPathSideId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ด้าน/สาขา" ) ;
b . Property < Guid ? > ( "PositionTypeId" )
2023-07-22 22:14:50 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "PrefixId" )
2023-07-22 22:14:50 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "PrefixOldId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id คำนำหน้า(เดิม)" ) ;
b . Property < string > ( "ProfileType" )
. HasMaxLength ( 50 )
. HasColumnType ( "varchar(50)" ) ;
b . Property < string > ( "Race" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "เชื้อชาติ" ) ;
b . Property < string > ( "ReasonSameDate" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "RegistrationAddress" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "Id แขวงตามทะเบียนบ้าน" ) ;
b . Property < Guid ? > ( "RegistrationDistrictId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id เขตตามทะเบียนบ้าน" ) ;
b . Property < Guid ? > ( "RegistrationProvinceId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id จังหวัดตามทะเบียนบ้าน" ) ;
b . Property < bool? > ( "RegistrationSame" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ที่อยู่ปัจจุบันตรงกับที่อยู่ตามทะเบียนบ้านหรือไม่" ) ;
b . Property < Guid ? > ( "RegistrationSubDistrictId" )
. HasColumnType ( "char(36)" )
. HasComment ( "แขวงตามทะเบียนบ้าน" ) ;
b . Property < string > ( "RegistrationZipCode" )
. HasMaxLength ( 5 )
. HasColumnType ( "varchar(5)" )
. HasComment ( "รหัสไปรษณีย์ตามทะเบียนบ้าน" ) ;
b . Property < Guid ? > ( "RelationshipId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id สถานะภาพ" ) ;
b . Property < Guid ? > ( "ReligionId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ศาสนา" ) ;
b . Property < string > ( "TelephoneNumber" )
. HasMaxLength ( 50 )
. HasColumnType ( "varchar(50)" )
. HasComment ( "เบอร์โทร" ) ;
b . Property < DateTime ? > ( "TransferDate" )
. HasColumnType ( "datetime(6)" ) ;
b . Property < DateTime ? > ( "VerifiedDate" )
. HasColumnType ( "datetime(6)" ) ;
b . Property < string > ( "VerifiedUser" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "AvatarId" ) ;
2023-07-22 22:14:50 +07:00
b . HasIndex ( "GenderId" ) ;
2023-06-26 15:18:39 +07:00
b . HasIndex ( "LimitLeaveId" ) ;
2023-07-22 22:14:50 +07:00
b . HasIndex ( "PosNoId" ) ;
2023-08-31 12:26:04 +07:00
b . HasIndex ( "PositionEmployeeGroupId" ) ;
b . HasIndex ( "PositionEmployeeLevelId" ) ;
b . HasIndex ( "PositionEmployeeLineId" ) ;
b . HasIndex ( "PositionEmployeePositionId" ) ;
b . HasIndex ( "PositionEmployeePositionSideId" ) ;
2023-07-22 22:14:50 +07:00
b . HasIndex ( "PositionId" ) ;
b . HasIndex ( "PositionLevelId" ) ;
b . HasIndex ( "PositionTypeId" ) ;
b . HasIndex ( "PrefixId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Profiles" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileAbility" , 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 ? > ( "DateEnd" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่สิ้นสุด" ) ;
b . Property < DateTime ? > ( "DateStart" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่เริ่มต้น" ) ;
b . Property < string > ( "Detail" )
. HasColumnType ( "longtext" )
. HasComment ( "รายละเอียด" ) ;
b . Property < string > ( "Field" )
. 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 < Guid ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Reference" )
. HasColumnType ( "longtext" )
. HasComment ( "เอกสารอ้างอิง" ) ;
b . Property < string > ( "Remark" )
. HasColumnType ( "longtext" )
. HasComment ( "หมายเหตุ" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileAbilitys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileAbilityHistory" , 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 ? > ( "DateEnd" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่สิ้นสุด" ) ;
b . Property < DateTime ? > ( "DateStart" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่เริ่มต้น" ) ;
b . Property < string > ( "Detail" )
. HasColumnType ( "longtext" )
. HasComment ( "รายละเอียด" ) ;
b . Property < string > ( "Field" )
. 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 < Guid ? > ( "ProfileAbilityId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Reference" )
. HasColumnType ( "longtext" )
. HasComment ( "เอกสารอ้างอิง" ) ;
b . Property < string > ( "Remark" )
. HasColumnType ( "longtext" )
. HasComment ( "หมายเหตุ" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileAbilityId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileAbilityHistorys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileAddressHistory" , 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 > ( "CurrentAddress" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "ที่อยู่ปัจจุบัน" ) ;
b . Property < string > ( "CurrentDistrict" )
. HasColumnType ( "longtext" )
. HasComment ( "เขตปัจจุบัน" ) ;
b . Property < Guid ? > ( "CurrentDistrictId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id เขตปัจจุบัน" ) ;
b . Property < string > ( "CurrentProvince" )
. HasColumnType ( "longtext" )
. HasComment ( "จังหวัดปัจจุบัน" ) ;
b . Property < Guid ? > ( "CurrentProvinceId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id จังหวัดปัจจุบัน" ) ;
b . Property < string > ( "CurrentSubDistrict" )
. HasColumnType ( "longtext" )
. HasComment ( "แขวงปัจจุบัน" ) ;
b . Property < Guid ? > ( "CurrentSubDistrictId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id แขวงปัจจุบัน" ) ;
b . Property < string > ( "CurrentZipCode" )
. HasMaxLength ( 5 )
. HasColumnType ( "varchar(5)" )
. 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 ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "RegistrationAddress" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "ที่อยู่ตามทะเบียนบ้าน" ) ;
b . Property < string > ( "RegistrationDistrict" )
. HasColumnType ( "longtext" )
. HasComment ( "เขตตามทะเบียนบ้าน" ) ;
b . Property < Guid ? > ( "RegistrationDistrictId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id เขตตามทะเบียนบ้าน" ) ;
b . Property < string > ( "RegistrationProvince" )
. HasColumnType ( "longtext" )
. HasComment ( "จังหวัดตามทะเบียนบ้าน" ) ;
b . Property < Guid ? > ( "RegistrationProvinceId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id จังหวัดตามทะเบียนบ้าน" ) ;
b . Property < bool? > ( "RegistrationSame" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ที่อยู่ปัจจุบันตรงกับที่อยู่ตามทะเบียนบ้านหรือไม่" ) ;
b . Property < string > ( "RegistrationSubDistrict" )
. HasColumnType ( "longtext" )
. HasComment ( "แขวงตามทะเบียนบ้าน" ) ;
b . Property < Guid ? > ( "RegistrationSubDistrictId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id แขวงตามทะเบียนบ้าน" ) ;
b . Property < string > ( "RegistrationZipCode" )
. HasMaxLength ( 5 )
. HasColumnType ( "varchar(5)" )
. HasComment ( "รหัสไปรษณีย์ตามทะเบียนบ้าน" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileAddressHistories" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileAssessment" , 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 ? > ( "Date" )
. 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" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อแบบประเมิน" ) ;
b . Property < double? > ( "Point1" )
. HasColumnType ( "double" )
. HasComment ( "ผลประเมินส่วนที่1 (คะแนน)" ) ;
b . Property < double? > ( "Point1Total" )
. HasColumnType ( "double" )
. HasComment ( "ส่วนที่1 (คะแนน)" ) ;
b . Property < double? > ( "Point2" )
. HasColumnType ( "double" )
. HasComment ( "ผลประเมินส่วนที่2 (คะแนน)" ) ;
b . Property < double? > ( "Point2Total" )
. HasColumnType ( "double" )
. HasComment ( "ส่วนที่2 (คะแนน)" ) ;
b . Property < double? > ( "PointSum" )
. HasColumnType ( "double" )
. HasComment ( "ผลประเมินรวม (คะแนน)" ) ;
b . Property < double? > ( "PointSumTotal" )
. HasColumnType ( "double" )
. HasComment ( "ผลรวม (คะแนน)" ) ;
b . Property < Guid ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileAssessments" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory" , 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 ? > ( "Date" )
. 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" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อแบบประเมิน" ) ;
b . Property < double? > ( "Point1" )
. HasColumnType ( "double" )
. HasComment ( "ผลประเมินส่วนที่1 (คะแนน)" ) ;
b . Property < double? > ( "Point1Total" )
. HasColumnType ( "double" )
. HasComment ( "ส่วนที่1 (คะแนน)" ) ;
b . Property < double? > ( "Point2" )
. HasColumnType ( "double" )
. HasComment ( "ผลประเมินส่วนที่2 (คะแนน)" ) ;
b . Property < double? > ( "Point2Total" )
. HasColumnType ( "double" )
. HasComment ( "ส่วนที่2 (คะแนน)" ) ;
b . Property < double? > ( "PointSum" )
. HasColumnType ( "double" )
. HasComment ( "ผลประเมินรวม (คะแนน)" ) ;
b . Property < double? > ( "PointSumTotal" )
. HasColumnType ( "double" )
. HasComment ( "ผลรวม (คะแนน)" ) ;
b . Property < Guid ? > ( "ProfileAssessmentId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileAssessmentId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileAssessmentHistorys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileAvatarHistory" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < Guid > ( "AvatarFileId" )
. 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 < Guid > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "AvatarFileId" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileAvatarHistories" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileCertificate" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. 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 )
. 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 ? > ( "ExpireDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่หมดอายุ" ) ;
2023-08-16 16:44:36 +07:00
b . Property < bool > ( "IsActive" )
. HasColumnType ( "tinyint(1)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < DateTime ? > ( "IssueDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ออกใบอนุญาต" ) ;
b . Property < string > ( "Issuer" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. 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 ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileCertificates" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileCertificateHistory" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. 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 )
. 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 ? > ( "ExpireDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่หมดอายุ" ) ;
b . Property < DateTime ? > ( "IssueDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ออกใบอนุญาต" ) ;
b . Property < string > ( "Issuer" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. 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 ? > ( "ProfileCertificateId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileCertificateId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileCertificateHistorys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileChangeName" , 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 < Guid ? > ( "DocumentId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "FirstName" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "LastName" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. 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 > ( "Prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < Guid ? > ( "PrefixId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id คำนำหน้า" ) ;
b . Property < Guid ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Status" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "สถานะ" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "DocumentId" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileChangeNames" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory" , 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 < Guid ? > ( "DocumentId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "FirstName" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "LastName" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. 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 > ( "Prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < Guid ? > ( "PrefixId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id คำนำหน้า" ) ;
b . Property < Guid ? > ( "ProfileChangeNameId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Status" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "สถานะ" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "DocumentId" ) ;
b . HasIndex ( "ProfileChangeNameId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileChangeNameHistorys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileChildren" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "ChildrenCareer" )
. HasColumnType ( "longtext" )
. HasComment ( "อาชีพบุตร" ) ;
b . Property < string > ( "ChildrenFirstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อบุตร" ) ;
b . Property < string > ( "ChildrenLastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุลบุตร" ) ;
b . Property < string > ( "ChildrenPrefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้าบุตร" ) ;
b . Property < Guid ? > ( "ChildrenPrefixId" )
. HasColumnType ( "char(36)" )
. HasComment ( "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 > ( "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 ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileChildrens" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileChildrenHistory" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "ChildrenCareer" )
. HasColumnType ( "longtext" )
. HasComment ( "อาชีพบุตร" ) ;
b . Property < string > ( "ChildrenFirstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อบุตร" ) ;
b . Property < string > ( "ChildrenLastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุลบุตร" ) ;
b . Property < string > ( "ChildrenPrefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้าบุตร" ) ;
b . Property < Guid ? > ( "ChildrenPrefixId" )
. HasColumnType ( "char(36)" )
. HasComment ( "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 > ( "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 ? > ( "ProfileChildrenId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "ProfileFamilyHistoryId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileChildrenId" ) ;
b . HasIndex ( "ProfileFamilyHistoryId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileChildrenHistories" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileCoupleHistory" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasComment ( "ไม่ใช้" ) ;
b . Property < string > ( "Career" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" ) ;
b . Property < DateTime > ( "CreatedDate" )
. HasColumnType ( "datetime(6)" ) ;
b . Property < string > ( "FirstName" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" ) ;
b . Property < string > ( "LastName" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" ) ;
b . Property < string > ( "Prefix" )
. IsRequired ( )
. HasMaxLength ( 50 )
. HasColumnType ( "varchar(50)" ) ;
b . Property < Guid > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileCoupleHistory" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasComment ( "ไม่ใช้" ) ;
b . Property < string > ( "Address" )
. IsRequired ( )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" ) ;
b . Property < DateTime > ( "CreatedDate" )
. HasColumnType ( "datetime(6)" ) ;
b . Property < Guid > ( "DistrictId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid > ( "ProvinceId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid > ( "SubDistrictId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "ZipCode" )
. IsRequired ( )
. HasMaxLength ( 5 )
. HasColumnType ( "varchar(5)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileCurrentAddressHistories" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileDiscipline" , 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 ? > ( "Date" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วัน เดือน ปี" ) ;
b . Property < string > ( "Detail" )
. HasColumnType ( "text" )
. 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 > ( "Level" )
. HasColumnType ( "longtext" )
. HasComment ( "ระดับความผิด" ) ;
b . Property < Guid ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . Property < DateTime ? > ( "RefCommandDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "เอกสารอ้างอิง (ลงวันที่)" ) ;
b . Property < string > ( "RefCommandNo" )
. HasColumnType ( "longtext" )
. HasComment ( "เอกสารอ้างอิง (เลขที่คำสั่ง)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileDisciplines" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory" , 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 ? > ( "Date" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วัน เดือน ปี" ) ;
b . Property < string > ( "Detail" )
. HasColumnType ( "text" )
. 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 > ( "Level" )
. HasColumnType ( "longtext" )
. HasComment ( "ระดับความผิด" ) ;
b . Property < Guid ? > ( "ProfileDisciplineId" )
. HasColumnType ( "char(36)" ) ;
b . Property < DateTime ? > ( "RefCommandDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "เอกสารอ้างอิง (ลงวันที่)" ) ;
b . Property < string > ( "RefCommandNo" )
. HasColumnType ( "longtext" )
. HasComment ( "เอกสารอ้างอิง (เลขที่คำสั่ง)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileDisciplineId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileDisciplineHistorys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileDuty" , 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 ? > ( "DateEnd" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "สิ้นสุด" ) ;
b . Property < DateTime ? > ( "DateStart" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "เริ่มต้น" ) ;
b . Property < string > ( "Detail" )
. 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 < Guid ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Reference" )
. HasColumnType ( "longtext" )
. HasComment ( "เอกสารอ้างอิง" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileDutys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileDutyHistory" , 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 ? > ( "DateEnd" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "สิ้นสุด" ) ;
b . Property < DateTime ? > ( "DateStart" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "เริ่มต้น" ) ;
b . Property < string > ( "Detail" )
. 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 < Guid ? > ( "ProfileDutyId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Reference" )
. HasColumnType ( "longtext" )
. HasComment ( "เอกสารอ้างอิง" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileDutyId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileDutyHistorys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileEducation" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "Country" )
. HasMaxLength ( 1000 )
. HasColumnType ( "varchar(1000)" )
. HasComment ( "ประเทศ" ) ;
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 > ( "Degree" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "วุฒิการศึกษา" ) ;
b . Property < string > ( "Duration" )
. HasMaxLength ( 1000 )
. HasColumnType ( "varchar(1000)" )
. HasComment ( "ระยะเวลา" ) ;
b . Property < int > ( "DurationYear" )
. HasColumnType ( "int" )
. HasComment ( "ระยะเวลาหลักสูตร" ) ;
b . Property < string > ( "EducationLevel" )
. HasColumnType ( "longtext" )
. HasComment ( "ระดับศึกษา" ) ;
b . Property < Guid ? > ( "EducationLevelId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ระดับศึกษา" ) ;
b . Property < DateTime ? > ( "EndDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ถึง" ) ;
b . Property < string > ( "Field" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "สาขาวิชา/ทาง" ) ;
b . Property < DateTime ? > ( "FinishDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่สำเร็จการศึกษา" ) ;
b . Property < string > ( "FundName" )
. HasMaxLength ( 1000 )
. HasColumnType ( "varchar(1000)" )
. HasComment ( "ทุน" ) ;
b . Property < string > ( "Gpa" )
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
. HasComment ( "เกรดเฉลี่ย" ) ;
b . Property < string > ( "Institute" )
. HasMaxLength ( 1000 )
. HasColumnType ( "varchar(1000)" )
. HasComment ( "สถานศึกษา" ) ;
2023-08-16 16:44:36 +07:00
b . Property < bool > ( "IsActive" )
. HasColumnType ( "tinyint(1)" ) ;
2023-06-26 15:18:39 +07:00
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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2024-03-04 09:24:19 +07:00
b . Property < string > ( "Note" )
. HasColumnType ( "longtext" )
. HasComment ( "หมายเหตุ" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "Other" )
. HasMaxLength ( 1000 )
. HasColumnType ( "varchar(1000)" )
. HasComment ( "ข้อมูลการติดต่อ" ) ;
b . Property < string > ( "PositionPath" )
. HasColumnType ( "longtext" )
. HasComment ( "เป็นวุฒิการศึกษาในตำแหน่ง" ) ;
b . Property < Guid ? > ( "PositionPathId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id เป็นวุฒิการศึกษาในตำแหน่ง" ) ;
b . Property < Guid ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . Property < DateTime ? > ( "StartDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ตั้งแต่" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileEducations" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileEducationHistory" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "Country" )
. HasMaxLength ( 1000 )
. HasColumnType ( "varchar(1000)" )
. HasComment ( "ประเทศ" ) ;
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 > ( "Degree" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "วุฒิการศึกษา" ) ;
b . Property < string > ( "Duration" )
. HasMaxLength ( 1000 )
. HasColumnType ( "varchar(1000)" )
. HasComment ( "ระยะเวลา" ) ;
b . Property < int > ( "DurationYear" )
. HasColumnType ( "int" )
. HasComment ( "ระยะเวลาหลักสูตร" ) ;
b . Property < string > ( "EducationLevel" )
. HasColumnType ( "longtext" )
. HasComment ( "ระดับศึกษา" ) ;
b . Property < Guid ? > ( "EducationLevelId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ระดับศึกษา" ) ;
b . Property < DateTime ? > ( "EndDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ถึง" ) ;
b . Property < string > ( "Field" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "สาขาวิชา/ทาง" ) ;
b . Property < DateTime ? > ( "FinishDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่สำเร็จการศึกษา" ) ;
b . Property < string > ( "FundName" )
. HasMaxLength ( 1000 )
. HasColumnType ( "varchar(1000)" )
. HasComment ( "ทุน" ) ;
b . Property < string > ( "Gpa" )
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
. HasComment ( "เกรดเฉลี่ย" ) ;
b . Property < string > ( "Institute" )
. HasMaxLength ( 1000 )
. HasColumnType ( "varchar(1000)" )
. 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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2024-03-04 09:24:19 +07:00
b . Property < string > ( "Note" )
. HasColumnType ( "longtext" )
. HasComment ( "หมายเหตุ" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "Other" )
. HasMaxLength ( 1000 )
. HasColumnType ( "varchar(1000)" )
. HasComment ( "ข้อมูลการติดต่อ" ) ;
b . Property < string > ( "PositionPath" )
. HasColumnType ( "longtext" )
. HasComment ( "เป็นวุฒิการศึกษาในตำแหน่ง" ) ;
b . Property < Guid ? > ( "PositionPathId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id เป็นวุฒิการศึกษาในตำแหน่ง" ) ;
b . Property < Guid ? > ( "ProfileEducationId" )
. HasColumnType ( "char(36)" ) ;
b . Property < DateTime ? > ( "StartDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ตั้งแต่" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileEducationId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileEducationHistorys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
2023-10-24 18:22:20 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileEmployment" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "Command" )
. HasColumnType ( "longtext" )
. HasComment ( "คำสั่ง" ) ;
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 ? > ( "Date" )
. 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 < Guid ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
b . ToTable ( "ProfileEmployments" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "Command" )
. HasColumnType ( "longtext" )
. HasComment ( "คำสั่ง" ) ;
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 ? > ( "Date" )
. 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 < Guid ? > ( "ProfileEmploymentId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileEmploymentId" ) ;
b . ToTable ( "ProfileEmploymentHistorys" ) ;
} ) ;
2023-06-26 15:18:39 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileFamilyHistory" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < bool? > ( "Couple" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "คู่สมรส" ) ;
b . Property < string > ( "CoupleCareer" )
. HasColumnType ( "longtext" )
. HasComment ( "อาชีพคู่สมรส" ) ;
b . Property < string > ( "CoupleFirstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อคู่สมรส" ) ;
b . Property < string > ( "CoupleLastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุลคู่สมรส" ) ;
b . Property < string > ( "CoupleLastNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุลคู่สมรส(เดิม)" ) ;
b . Property < string > ( "CouplePrefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้าคู่สมรส" ) ;
b . Property < Guid ? > ( "CouplePrefixId" )
. HasColumnType ( "char(36)" )
. HasComment ( "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 > ( "FatherCareer" )
. HasColumnType ( "longtext" )
. HasComment ( "อาชีพบิดา" ) ;
b . Property < string > ( "FatherFirstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อบิดา" ) ;
b . Property < string > ( "FatherLastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุลบิดา" ) ;
b . Property < string > ( "FatherPrefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้าบิดา" ) ;
b . Property < Guid ? > ( "FatherPrefixId" )
. HasColumnType ( "char(36)" )
. HasComment ( "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 > ( "MotherCareer" )
. HasColumnType ( "longtext" )
. HasComment ( "อาชีพมารดา" ) ;
b . Property < string > ( "MotherFirstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อมารดา" ) ;
b . Property < string > ( "MotherLastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุลมารดา" ) ;
b . Property < string > ( "MotherPrefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้ามารดา" ) ;
b . Property < Guid ? > ( "MotherPrefixId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id คำนำหน้ามารดา" ) ;
b . Property < Guid ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileFamilyHistory" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileFatherHistory" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasComment ( "ไม่ใช้" ) ;
b . Property < string > ( "Career" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" ) ;
b . Property < DateTime > ( "CreatedDate" )
. HasColumnType ( "datetime(6)" ) ;
b . Property < string > ( "FirstName" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" ) ;
b . Property < string > ( "LastName" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" ) ;
b . Property < string > ( "Prefix" )
. IsRequired ( )
. HasMaxLength ( 50 )
. HasColumnType ( "varchar(50)" ) ;
b . Property < Guid > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileFatherHistory" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory" , 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 ? > ( "DateAppoint" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่สั่งบรรจุ" ) ;
b . Property < DateTime ? > ( "DateStart" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "เริ่มปฎิบัติราชการ" ) ;
b . Property < string > ( "GovAge" )
. HasColumnType ( "longtext" )
. HasComment ( "อายุราชการ" ) ;
b . Property < int? > ( "GovAgeAbsent" )
. HasColumnType ( "int" )
. HasComment ( "ขาดราชการ" ) ;
b . Property < int? > ( "GovAgePlus" )
. HasColumnType ( "int" )
. 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 > ( "Oc" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัด" ) ;
b . Property < Guid ? > ( "OcId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id สังกัด" ) ;
b . Property < string > ( "PosNo" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขที่ตำแหน่ง" ) ;
b . Property < Guid ? > ( "PosNoId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id เลขที่ตำแหน่ง" ) ;
b . Property < string > ( "Position" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่ง" ) ;
b . Property < string > ( "PositionEmployeeGroup" )
. HasColumnType ( "longtext" )
. HasComment ( "กลุ่มงาน" ) ;
b . Property < string > ( "PositionEmployeeLevel" )
. HasColumnType ( "longtext" )
. HasComment ( "ระดับชั้นงาน" ) ;
b . Property < string > ( "PositionEmployeePosition" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่ง" ) ;
b . Property < string > ( "PositionEmployeePositionSide" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านของตำแหน่ง" ) ;
b . Property < string > ( "PositionExecutive" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหาร" ) ;
b . Property < Guid ? > ( "PositionId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ตำแหน่ง" ) ;
b . Property < string > ( "PositionLevel" )
. HasColumnType ( "longtext" )
. HasComment ( "ระดับตำแหน่ง" ) ;
b . Property < string > ( "PositionLine" )
. HasColumnType ( "longtext" )
. HasComment ( "สายงาน" ) ;
b . Property < string > ( "PositionType" )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภทตำแหน่ง" ) ;
b . Property < Guid ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "ReasonSameDate" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลกรณีไม่ตรงวัน" ) ;
b . Property < string > ( "RetireDate" )
. HasColumnType ( "longtext" )
. HasComment ( "วันเกษียณอายุ" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileGovernmentHistory" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileHistory" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < DateTime > ( "BirthDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันเกิด" ) ;
b . Property < string > ( "BloodGroup" )
. HasColumnType ( "longtext" )
. HasComment ( "กลุ่มเลือด" ) ;
b . Property < Guid ? > ( "BloodGroupId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id กลุ่มเลือด" ) ;
b . Property < string > ( "CitizenId" )
. HasMaxLength ( 13 )
. HasColumnType ( "varchar(13)" )
. HasComment ( "รหัสบัตรประชาชน" ) ;
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 > ( "EmployeeClass" )
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
. HasComment ( "ประเภทลูกจ้าง" ) ;
b . Property < string > ( "EmployeeType" )
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
. HasComment ( "ประเภทการจ้าง" ) ;
b . Property < string > ( "FirstName" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "Gender" )
. HasColumnType ( "longtext" )
. HasComment ( "เพศ" ) ;
b . Property < Guid ? > ( "GenderId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id เพศ" ) ;
b . Property < string > ( "LastName" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. 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 > ( "Nationality" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "สัญชาติ" ) ;
b . Property < string > ( "Prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < Guid ? > ( "PrefixId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id คำนำหน้า" ) ;
b . Property < Guid ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Race" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "เชื้อชาติ" ) ;
b . Property < string > ( "Relationship" )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะภาพ" ) ;
b . Property < Guid ? > ( "RelationshipId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id สถานะภาพ" ) ;
b . Property < string > ( "Religion" )
. HasColumnType ( "longtext" )
. HasComment ( "ศาสนา" ) ;
b . Property < Guid ? > ( "ReligionId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ศาสนา" ) ;
b . Property < string > ( "TelephoneNumber" )
. HasMaxLength ( 50 )
. HasColumnType ( "varchar(50)" )
. HasComment ( "เบอร์โทร" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileHistory" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileHonor" , 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 > ( "Detail" )
. HasMaxLength ( 2000 )
. HasColumnType ( "varchar(2000)" )
. HasComment ( "รายละเอียด" ) ;
2024-02-13 13:25:01 +07:00
b . Property < bool? > ( "IsDate" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ประเภทช่วงเวลา" ) ;
2023-06-26 15:18:39 +07:00
b . Property < DateTime ? > ( "IssueDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ได้รับ" ) ;
b . Property < string > ( "Issuer" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. 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 ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileHonors" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileHonorHistory" , 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 > ( "Detail" )
. HasMaxLength ( 2000 )
. HasColumnType ( "varchar(2000)" )
. HasComment ( "รายละเอียด" ) ;
b . Property < DateTime ? > ( "IssueDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ได้รับ" ) ;
b . Property < string > ( "Issuer" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. 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 ? > ( "ProfileHonorId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileHonorId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileHonorHistorys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileInsignia" , 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 ? > ( "DateAnnounce" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ประกาศในราชกิจจาฯ" ) ;
b . Property < Guid ? > ( "InsigniaId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "InsigniaType" )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภท" ) ;
b . Property < string > ( "Issue" )
. HasMaxLength ( 300 )
. HasColumnType ( "varchar(300)" )
. 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 > ( "No" )
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
. HasComment ( "ลำดับที่" ) ;
2024-03-01 11:12:15 +07:00
b . Property < string > ( "Note" )
. HasColumnType ( "longtext" )
. HasComment ( "หมายเหตุ" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "Page" )
. HasMaxLength ( 30 )
. HasColumnType ( "varchar(30)" )
. HasComment ( "หน้า" ) ;
2024-06-25 00:54:16 +07:00
b . Property < Guid > ( "ProfileId" )
2023-06-26 15:18:39 +07:00
. HasColumnType ( "char(36)" ) ;
b . Property < DateTime ? > ( "ReceiveDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ลงวันที่" ) ;
2023-07-25 14:32:02 +07:00
b . Property < DateTime ? > ( "RefCommandDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "เอกสารอ้างอิง (ลงวันที่)" ) ;
b . Property < string > ( "RefCommandNo" )
. HasColumnType ( "longtext" )
. HasComment ( "เอกสารอ้างอิง (เลขที่คำสั่ง)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "Section" )
. HasMaxLength ( 30 )
. HasColumnType ( "varchar(30)" )
. HasComment ( "ตอน" ) ;
b . Property < string > ( "Volume" )
. HasMaxLength ( 30 )
. HasColumnType ( "varchar(30)" )
. HasComment ( "เล่ม" ) ;
b . Property < string > ( "VolumeNo" )
. HasMaxLength ( 30 )
. HasColumnType ( "varchar(30)" )
. HasComment ( "เล่มที่" ) ;
b . Property < int > ( "Year" )
. HasColumnType ( "int" )
. HasComment ( "ปีที่ยื่นขอ" ) ;
b . HasKey ( "Id" ) ;
2023-07-22 22:14:50 +07:00
b . HasIndex ( "InsigniaId" ) ;
2023-06-26 15:18:39 +07:00
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileInsignias" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory" , 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 ? > ( "DateAnnounce" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ประกาศในราชกิจจาฯ" ) ;
b . Property < string > ( "Insignia" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อเครื่องราชฯ" ) ;
b . Property < Guid ? > ( "InsigniaId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "InsigniaType" )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภท" ) ;
b . Property < string > ( "Issue" )
. HasMaxLength ( 300 )
. HasColumnType ( "varchar(300)" )
. 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 > ( "No" )
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
. HasComment ( "ลำดับที่" ) ;
2024-03-01 11:12:15 +07:00
b . Property < string > ( "Note" )
. HasColumnType ( "longtext" )
. HasComment ( "หมายเหตุ" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "Page" )
. HasMaxLength ( 30 )
. HasColumnType ( "varchar(30)" )
. HasComment ( "หน้า" ) ;
b . Property < Guid ? > ( "ProfileInsigniaId" )
. HasColumnType ( "char(36)" ) ;
b . Property < DateTime ? > ( "ReceiveDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ลงวันที่" ) ;
b . Property < string > ( "Section" )
. HasMaxLength ( 30 )
. HasColumnType ( "varchar(30)" )
. HasComment ( "ตอน" ) ;
b . Property < string > ( "Volume" )
. HasMaxLength ( 30 )
. HasColumnType ( "varchar(30)" )
. HasComment ( "เล่ม" ) ;
b . Property < string > ( "VolumeNo" )
. HasMaxLength ( 30 )
. HasColumnType ( "varchar(30)" )
. HasComment ( "เล่มที่" ) ;
b . Property < int > ( "Year" )
. HasColumnType ( "int" )
. HasComment ( "ปีที่ยื่นขอ" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileInsigniaId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileInsigniaHistorys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileLeave" , 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 ? > ( "DateEndLeave" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วัน เดือน ปี ที่สิ้นสุดลา" ) ;
b . Property < DateTime ? > ( "DateStartLeave" )
. 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 < double? > ( "NumLeave" )
. HasColumnType ( "double" )
. HasComment ( "ลาครั้งที่" ) ;
2024-06-14 17:26:15 +07:00
b . Property < Guid > ( "ProfileId" )
2023-06-26 15:18:39 +07:00
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผล" ) ;
b . Property < string > ( "Status" )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะ" ) ;
b . Property < double? > ( "SumLeave" )
. HasColumnType ( "double" )
. HasComment ( "ลามาแล้ว" ) ;
b . Property < double? > ( "TotalLeave" )
. HasColumnType ( "double" )
. HasComment ( "รวมเป็น" ) ;
b . Property < Guid ? > ( "TypeLeaveId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
b . HasIndex ( "TypeLeaveId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileLeaves" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileLeaveHistory" , 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 ? > ( "DateEndLeave" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วัน เดือน ปี ที่สิ้นสุดลา" ) ;
b . Property < DateTime ? > ( "DateStartLeave" )
. 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 < double? > ( "NumLeave" )
. HasColumnType ( "double" )
. HasComment ( "ลาครั้งที่" ) ;
b . Property < Guid ? > ( "ProfileLeaveId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผล" ) ;
b . Property < string > ( "Status" )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะ" ) ;
b . Property < double? > ( "SumLeave" )
. HasColumnType ( "double" )
. HasComment ( "ลามาแล้ว" ) ;
b . Property < double? > ( "TotalLeave" )
. HasColumnType ( "double" )
. HasComment ( "รวมเป็น" ) ;
b . Property < Guid ? > ( "TypeLeaveId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileLeaveId" ) ;
b . HasIndex ( "TypeLeaveId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileLeaveHistorys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
2024-02-09 12:49:13 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileLeaveSummary" , 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)" ) ;
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 < int > ( "LeaveYear" )
. HasColumnType ( "int" ) ;
b . Property < Guid ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "SumAbsent" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "SumEducation" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "SumLate" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "SumRest" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "SumSick" )
. HasColumnType ( "longtext" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
b . ToTable ( "ProfileLeaveSummary" ) ;
} ) ;
2023-06-26 15:18:39 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileMotherHistory" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasComment ( "ไม่ใช้" ) ;
b . Property < string > ( "Career" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" ) ;
b . Property < DateTime > ( "CreatedDate" )
. HasColumnType ( "datetime(6)" ) ;
b . Property < string > ( "FirstName" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" ) ;
b . Property < string > ( "LastName" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" ) ;
b . Property < string > ( "Prefix" )
. IsRequired ( )
. HasMaxLength ( 50 )
. HasColumnType ( "varchar(50)" ) ;
b . Property < Guid > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileMotherHistory" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileNopaid" , 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 ? > ( "Date" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วัน เดือน ปี" ) ;
b . Property < string > ( "Detail" )
. 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 < Guid ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Reference" )
. HasColumnType ( "longtext" )
. HasComment ( "เอกสารอ้างอิง" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileNopaids" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileNopaidHistory" , 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 ? > ( "Date" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วัน เดือน ปี" ) ;
b . Property < string > ( "Detail" )
. 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 < Guid ? > ( "ProfileNopaidId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Reference" )
. HasColumnType ( "longtext" )
. HasComment ( "เอกสารอ้างอิง" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileNopaidId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileNopaidHistorys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileOrganization" , 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 > ( "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 ? > ( "OrganizationId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id หน่วยงานที่สังกัด" ) ;
b . Property < Guid ? > ( "UserId" )
. HasColumnType ( "char(36)" )
. HasComment ( "User Id KeyCloak" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileOrganizations" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileOther" , 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 ? > ( "Date" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่" ) ;
b . Property < string > ( "Detail" )
. 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 < Guid ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileOthers" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileOtherHistory" , 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 ? > ( "Date" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่" ) ;
b . Property < string > ( "Detail" )
. 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 < Guid ? > ( "ProfileOtherId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileOtherId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileOtherHistorys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfilePaper" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "CategoryName" )
. IsRequired ( )
. HasMaxLength ( 255 )
. HasColumnType ( "varchar(255)" )
. HasComment ( "ประเภทไฟล์-ไม่ใช้" ) ;
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 > ( "Detail" )
. IsRequired ( )
. HasMaxLength ( 255 )
. HasColumnType ( "varchar(255)" )
. HasComment ( "ชื่อไฟล์" ) ;
b . Property < Guid > ( "DocumentId" )
. 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 > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "DocumentId" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfilePapers" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasComment ( "ไม่ใช้" ) ;
b . Property < string > ( "Address" )
. IsRequired ( )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" ) ;
b . Property < DateTime > ( "CreatedDate" )
. HasColumnType ( "datetime(6)" ) ;
b . Property < Guid > ( "DistrictId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid > ( "ProvinceId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid > ( "SubDistrictId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "ZipCode" )
. IsRequired ( )
. HasMaxLength ( 5 )
. HasColumnType ( "varchar(5)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileRegistrationAddressHistories" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileSalary" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
2024-02-05 18:51:40 +07:00
b . Property < string > ( "AgencyName" )
. HasColumnType ( "longtext" )
. HasComment ( "AgencyName" ) ;
2023-06-26 15:18:39 +07:00
b . Property < double? > ( "Amount" )
. HasColumnType ( "double" )
. HasComment ( "เงินเดือน" ) ;
2024-02-05 18:51:40 +07:00
b . Property < string > ( "CLevel" )
. HasColumnType ( "longtext" )
. HasComment ( "CLevel" ) ;
2023-08-08 10:35:48 +07:00
b . Property < string > ( "CommandNo" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "เลขที่คำสั่ง" ) ;
b . Property < string > ( "CommandTypeName" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภทคำสั่ง" ) ;
2023-06-26 15:18:39 +07:00
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 ? > ( "Date" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วัน เดือน ปี รับตำแหน่ง" ) ;
2023-08-16 16:44:36 +07:00
b . Property < bool > ( "IsActive" )
. HasColumnType ( "tinyint(1)" ) ;
2023-06-26 15:18:39 +07:00
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 < double? > ( "MouthSalaryAmount" )
. HasColumnType ( "double" )
. HasComment ( "เงินค่าตอบแทนรายเดือน" ) ;
b . Property < Guid ? > ( "OcId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id สังกัด" ) ;
2023-07-22 22:14:50 +07:00
b . Property < int? > ( "Order" )
. HasColumnType ( "int" )
. HasComment ( "ลำดับ" ) ;
2024-02-05 18:51:40 +07:00
b . Property < string > ( "OrgName" )
. HasColumnType ( "longtext" )
. HasComment ( "OrgName" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "OrganizationShortNameId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ชื่อย่อหน่วยงาน" ) ;
b . Property < string > ( "PosNoEmployee" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขที่ตำแหน่งลูกจ้าง" ) ;
b . Property < Guid ? > ( "PosNoId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id เลขที่ตำแหน่ง" ) ;
2024-02-05 18:51:40 +07:00
b . Property < string > ( "PosNoName" )
. HasColumnType ( "longtext" )
. HasComment ( "PosNoName" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "PositionEmployeeGroupId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id กลุ่มงาน" ) ;
b . Property < Guid ? > ( "PositionEmployeeLevelId" )
. HasColumnType ( "char(36)" )
. HasComment ( " Id ระดับชั้นงาน" ) ;
b . Property < Guid ? > ( "PositionEmployeePositionId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ตำแหน่ง" ) ;
b . Property < Guid ? > ( "PositionEmployeePositionSideId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ด้านของตำแหน่ง" ) ;
b . Property < Guid ? > ( "PositionExecutiveId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ตำแหน่งทางการบริหาร" ) ;
2024-02-05 18:51:40 +07:00
b . Property < string > ( "PositionExecutiveName" )
. HasColumnType ( "longtext" )
. HasComment ( "PositionExecutiveName" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "PositionExecutiveSideId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ด้านทางการบริหาร" ) ;
b . Property < Guid ? > ( "PositionId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ตำแหน่ง" ) ;
b . Property < Guid ? > ( "PositionLevelId" )
2023-07-22 22:14:50 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
2024-02-09 12:49:13 +07:00
b . Property < string > ( "PositionLevelName" )
. HasColumnType ( "longtext" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "PositionLineId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id สายงาน" ) ;
2024-02-05 18:51:40 +07:00
b . Property < string > ( "PositionLineName" )
. HasColumnType ( "longtext" )
. HasComment ( "PositionLineName" ) ;
b . Property < string > ( "PositionName" )
. HasColumnType ( "longtext" )
. HasComment ( "PositionName" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "PositionPathSideId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ด้าน/สาขา" ) ;
2024-02-05 18:51:40 +07:00
b . Property < string > ( "PositionPathSideName" )
. HasColumnType ( "longtext" )
. HasComment ( "PositionPathSideName" ) ;
2024-02-09 12:49:13 +07:00
b . Property < string > ( "PositionRef" )
. HasColumnType ( "longtext" ) ;
2023-06-26 15:18:39 +07:00
b . Property < double? > ( "PositionSalaryAmount" )
. HasColumnType ( "double" )
. HasComment ( "เงินประจำตำแหน่ง" ) ;
b . Property < Guid ? > ( "PositionTypeId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ประเภทตำแหน่ง" ) ;
2024-02-09 12:49:13 +07:00
b . Property < string > ( "PositionTypeName" )
. HasColumnType ( "longtext" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
2023-10-24 18:22:20 +07:00
b . Property < string > ( "RefCommandNo" )
. HasColumnType ( "longtext" )
. HasComment ( "เอกสารอ้างอิง (เลขที่คำสั่ง)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "SalaryClass" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่ง (รายละเอียด)" ) ;
b . Property < string > ( "SalaryRef" )
. HasColumnType ( "longtext" )
. HasComment ( "เอกสารอ้างอิง" ) ;
2023-09-01 15:21:27 +07:00
b . Property < string > ( "SalaryStatus" )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภทตำแหน่งกรณีพิเศษ" ) ;
2023-06-26 15:18:39 +07:00
b . HasKey ( "Id" ) ;
2023-07-22 22:14:50 +07:00
b . HasIndex ( "PositionLevelId" ) ;
2023-06-26 15:18:39 +07:00
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileSalaries" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileSalaryHistory" , 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 > ( "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 ? > ( "Date" )
. 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 < double? > ( "MouthSalaryAmount" )
. HasColumnType ( "double" )
. HasComment ( "เงินค่าตอบแทนรายเดือน" ) ;
b . Property < string > ( "Oc" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัด" ) ;
b . Property < Guid ? > ( "OcId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id สังกัด" ) ;
b . Property < string > ( "OrganizationShortName" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "OrganizationShortNameId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "PosNo" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขที่ตำแหน่ง" ) ;
b . Property < string > ( "PosNoEmployee" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขที่ตำแหน่งลูกจ้าง" ) ;
b . Property < Guid ? > ( "PosNoId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id เลขที่ตำแหน่ง" ) ;
b . Property < string > ( "Position" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่ง" ) ;
b . Property < string > ( "PositionEmployeeGroup" )
. HasColumnType ( "longtext" )
. HasComment ( "กลุ่มงาน" ) ;
b . Property < Guid ? > ( "PositionEmployeeGroupId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id กลุ่มงาน" ) ;
b . Property < string > ( "PositionEmployeeLevel" )
. HasColumnType ( "longtext" )
. HasComment ( "ระดับชั้นงาน" ) ;
b . Property < Guid ? > ( "PositionEmployeeLevelId" )
. HasColumnType ( "char(36)" )
. HasComment ( " Id ระดับชั้นงาน" ) ;
b . Property < string > ( "PositionEmployeePosition" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่ง" ) ;
b . Property < Guid ? > ( "PositionEmployeePositionId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ตำแหน่ง" ) ;
b . Property < string > ( "PositionEmployeePositionSide" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านของตำแหน่ง" ) ;
b . Property < Guid ? > ( "PositionEmployeePositionSideId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ด้านของตำแหน่ง" ) ;
b . Property < string > ( "PositionExecutive" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหาร" ) ;
b . Property < Guid ? > ( "PositionExecutiveId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ด้านทางการบริหาร" ) ;
b . Property < string > ( "PositionExecutiveSide" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร" ) ;
b . Property < Guid ? > ( "PositionExecutiveSideId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ด้านทางการบริหาร" ) ;
b . Property < Guid ? > ( "PositionId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ตำแหน่ง" ) ;
b . Property < string > ( "PositionLevel" )
. HasColumnType ( "longtext" )
. HasComment ( "ระดับ" ) ;
b . Property < Guid ? > ( "PositionLevelId" )
. HasColumnType ( "char(36)" )
. HasComment ( " Id ระดับ" ) ;
b . Property < string > ( "PositionLine" )
. HasColumnType ( "longtext" )
. HasComment ( "สายงาน" ) ;
b . Property < Guid ? > ( "PositionLineId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id สายงาน" ) ;
b . Property < string > ( "PositionPathSide" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา" ) ;
b . Property < Guid ? > ( "PositionPathSideId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ด้าน/สาขา" ) ;
b . Property < double? > ( "PositionSalaryAmount" )
. HasColumnType ( "double" )
. HasComment ( "เงินประจำตำแหน่ง" ) ;
b . Property < string > ( "PositionType" )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภทตำแหน่ง" ) ;
b . Property < Guid ? > ( "PositionTypeId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id ประเภทตำแหน่ง" ) ;
b . Property < Guid ? > ( "ProfileSalaryId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "SalaryClass" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่ง (รายละเอียด)" ) ;
b . Property < string > ( "SalaryRef" )
. HasColumnType ( "longtext" )
. HasComment ( "เอกสารอ้างอิง" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileSalaryId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileSalaryHistories" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileSalaryOrganization" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasComment ( "ไม่ใช้" ) ;
b . Property < string > ( "Comment" )
. IsRequired ( )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileSalaryOrganizations" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileSalaryPosition" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasComment ( "ไม่ใช้" ) ;
b . Property < string > ( "Comment" )
. IsRequired ( )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" ) ;
b . Property < Guid > ( "PositionId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "PositionId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileSalaryPositions" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileSalaryPositionLevel" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasComment ( "ไม่ใช้" ) ;
b . Property < string > ( "Comment" )
. IsRequired ( )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileSalaryPositionLevels" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileSalaryPositionNumber" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasComment ( "ไม่ใช้" ) ;
b . Property < string > ( "Comment" )
. IsRequired ( )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileSalaryPositionsNumbers" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileSalaryPositionType" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasComment ( "ไม่ใช้" ) ;
b . Property < string > ( "Comment" )
. IsRequired ( )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileSalaryPositionTypes" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileTraining" , 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 ? > ( "DateOrder" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "คำสั่งลงวันที่/หนังสืออนุมัติลงวันที่" ) ;
b . Property < string > ( "Department" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "หน่วยงานที่รับผิดชอบจัดการฝึกอบรม/ดูงาน" ) ;
b . Property < string > ( "Duration" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "รวมระยะเวลาในการฝึกอบรม/ดูงาน" ) ;
b . Property < DateTime ? > ( "EndDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันสิ้นสุดการฝึกอบรม/ดูงาน" ) ;
2024-02-13 13:25:01 +07:00
b . Property < bool? > ( "IsDate" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ประเภทช่วงเวลา" ) ;
2023-06-26 15:18:39 +07:00
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" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "ชื่อโครงการ/หลักสูตรการฝึกอบรม" ) ;
b . Property < string > ( "NumberOrder" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "เลขที่คำสั่ง/เลขที่หนังสืออนุมัติ" ) ;
b . Property < string > ( "Place" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "สถานที่ฝึกอบรม/ดูงาน" ) ;
b . Property < Guid ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . Property < DateTime ? > ( "StartDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันเริ่มต้นการฝึกอบรม/ดูงาน" ) ;
b . Property < string > ( "Topic" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "หัวข้อการฝึกอบรม/ดูงาน" ) ;
b . Property < int? > ( "Yearly" )
. HasMaxLength ( 200 )
. HasColumnType ( "int" )
. HasComment ( "ปีที่อบรม (พ.ศ.)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileTrainings" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileTrainingHistory" , 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 ? > ( "DateOrder" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "คำสั่งลงวันที่/หนังสืออนุมัติลงวันที่" ) ;
b . Property < string > ( "Department" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "หน่วยงานที่รับผิดชอบจัดการฝึกอบรม/ดูงาน" ) ;
b . Property < string > ( "Duration" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "รวมระยะเวลาในการฝึกอบรม/ดูงาน" ) ;
b . Property < DateTime ? > ( "EndDate" )
. 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" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "ชื่อโครงการ/หลักสูตรการฝึกอบรม" ) ;
b . Property < string > ( "NumberOrder" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "เลขที่คำสั่ง/เลขที่หนังสืออนุมัติ" ) ;
b . Property < string > ( "Place" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "สถานที่ฝึกอบรม/ดูงาน" ) ;
b . Property < Guid ? > ( "ProfileTrainingId" )
. HasColumnType ( "char(36)" ) ;
b . Property < DateTime ? > ( "StartDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันเริ่มต้นการฝึกอบรม/ดูงาน" ) ;
b . Property < string > ( "Topic" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "หัวข้อการฝึกอบรม/ดูงาน" ) ;
b . Property < int? > ( "Yearly" )
. HasMaxLength ( 200 )
. HasColumnType ( "int" )
. HasComment ( "ปีที่อบรม (พ.ศ.)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileTrainingId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfileTrainingHistorys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.TypeLeave" , 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 > ( "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" )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภทการลา" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "TypeLeaves" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
2025-01-25 01:20:08 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaEmployee" , 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 ที่สร้างข้อมูล" ) ;
2025-01-27 10:14:54 +07:00
b . Property < Guid > ( "InsigniaPeriodId" )
2025-01-25 01:20:08 +07:00
. 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 > ( "RefId" )
2025-01-27 10:14:54 +07:00
. HasColumnType ( "longtext" )
. HasComment ( "id ตำแหน่งลูกจ้าง" ) ;
2025-01-25 01:20:08 +07:00
b . HasKey ( "Id" ) ;
b . HasIndex ( "InsigniaPeriodId" ) ;
b . ToTable ( "InsigniaEmployees" ) ;
} ) ;
2023-08-18 14:35:45 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaManage" , 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 < Guid > ( "InsigniaId" )
. 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 < int > ( "Total" )
. HasColumnType ( "int" )
. HasComment ( "จำนวนทั้งหมด" ) ;
b . Property < int > ( "Year" )
. HasColumnType ( "int" )
. HasComment ( "ปี" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "InsigniaId" ) ;
b . ToTable ( "InsigniaManages" ) ;
} ) ;
2023-08-25 18:18:28 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation" , 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 < Guid > ( "InsigniaManageId" )
. 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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2024-11-18 18:43:46 +07:00
b . Property < string > ( "Organization" )
. HasColumnType ( "longtext" )
. HasComment ( "รหัสหน่วยงาน" ) ;
2024-06-24 12:24:57 +07:00
b . Property < Guid > ( "OrganizationId" )
. HasColumnType ( "char(36)" )
. HasComment ( "รหัสหน่วยงาน" ) ;
2023-08-25 18:18:28 +07:00
b . Property < int > ( "Total" )
. HasColumnType ( "int" )
. HasComment ( "จำนวนทั้งหมด" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "InsigniaManageId" ) ;
b . ToTable ( "InsigniaManageOrganiations" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < DateTime ? > ( "BorrowDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ยืมวันที่" ) ;
2024-11-18 18:43:46 +07:00
b . Property < string > ( "BorrowOrganization" )
. HasColumnType ( "longtext" ) ;
2023-08-25 18:18:28 +07:00
b . Property < Guid ? > ( "BorrowOrganizationId" )
2024-06-24 12:24:57 +07:00
. HasColumnType ( "char(36)" )
. HasComment ( "Fk Table OrganizationOrganization Borrow" ) ;
2023-08-25 18:18:28 +07:00
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 < Guid > ( "InsigniaManageOrganiationId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid > ( "InsigniaNoteProfileId" )
. 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 < DateTime ? > ( "ReturnDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "คืนวันที่" ) ;
2024-11-18 18:43:46 +07:00
b . Property < string > ( "ReturnOrganization" )
. HasColumnType ( "longtext" ) ;
2023-08-25 18:18:28 +07:00
b . Property < Guid ? > ( "ReturnOrganizationId" )
2024-06-24 12:24:57 +07:00
. HasColumnType ( "char(36)" )
. HasComment ( "Fk Table OrganizationOrganization Return" ) ;
2023-08-25 18:18:28 +07:00
b . Property < string > ( "ReturnReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลคืน" ) ;
b . Property < bool > ( "Status" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะการคืน" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "InsigniaManageOrganiationId" ) ;
b . HasIndex ( "InsigniaNoteProfileId" ) ;
b . ToTable ( "InsigniaManageProfiles" ) ;
} ) ;
2023-08-23 20:30:30 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaNote" , 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 > ( "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" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" ) ;
b . Property < int > ( "Year" )
. HasColumnType ( "int" ) ;
b . HasKey ( "Id" ) ;
b . ToTable ( "InsigniaNotes" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc" , 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 < Guid > ( "DocumentId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid > ( "InsigniaNoteId" )
. 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 > ( "Reason" )
. HasColumnType ( "longtext" )
. HasComment ( "หมายเหตุ" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "DocumentId" ) ;
b . HasIndex ( "InsigniaNoteId" ) ;
b . ToTable ( "InsigniaNoteDocs" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "Address" )
. HasColumnType ( "longtext" )
. HasComment ( "ที่อยู่ที่จ่าย" ) ;
2024-07-02 09:41:34 +07:00
b . Property < double? > ( "Amount" )
. HasColumnType ( "double" ) ;
b . Property < DateTime ? > ( "BirthDate" )
. HasColumnType ( "datetime(6)" ) ;
2024-12-10 22:42:16 +07:00
b . Property < string > ( "Child1" )
. HasColumnType ( "longtext" ) ;
2025-02-05 17:48:58 +07:00
b . Property < Guid ? > ( "Child1DnaId" )
. HasColumnType ( "char(36)" ) ;
2024-12-10 22:42:16 +07:00
b . Property < Guid ? > ( "Child1Id" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Child2" )
. HasColumnType ( "longtext" ) ;
2025-02-05 17:48:58 +07:00
b . Property < Guid ? > ( "Child2DnaId" )
. HasColumnType ( "char(36)" ) ;
2024-12-10 22:42:16 +07:00
b . Property < Guid ? > ( "Child2Id" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Child3" )
. HasColumnType ( "longtext" ) ;
2025-02-05 17:48:58 +07:00
b . Property < Guid ? > ( "Child3DnaId" )
. HasColumnType ( "char(36)" ) ;
2024-12-10 22:42:16 +07:00
b . Property < Guid ? > ( "Child3Id" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Child4" )
. HasColumnType ( "longtext" ) ;
2025-02-05 17:48:58 +07:00
b . Property < Guid ? > ( "Child4DnaId" )
. HasColumnType ( "char(36)" ) ;
2024-12-10 22:42:16 +07:00
b . Property < Guid ? > ( "Child4Id" )
. HasColumnType ( "char(36)" ) ;
2024-07-02 09:41:34 +07:00
b . Property < string > ( "CitizenId" )
. HasColumnType ( "longtext" ) ;
2023-08-23 20:30:30 +07:00
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 ? > ( "Date" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่" ) ;
2024-07-02 09:41:34 +07:00
b . Property < DateTime ? > ( "DateAppoint" )
. HasColumnType ( "datetime(6)" ) ;
2023-08-23 20:30:30 +07:00
b . Property < DateTime ? > ( "DatePayment" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่จ่ายใบกำกับ" ) ;
b . Property < DateTime ? > ( "DateReceive" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ได้รับพระราชทานเครื่องราชฯ" ) ;
2023-09-26 17:51:18 +07:00
b . Property < DateTime ? > ( "DateReceiveInsignia" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่รับเครื่องราชฯ" ) ;
b . Property < DateTime ? > ( "DateReturnInsignia" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่คืนเครื่องราชฯ" ) ;
b . Property < Guid ? > ( "DocReceiveInsigniaId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "DocReturnInsigniaId" )
. HasColumnType ( "char(36)" ) ;
2024-07-02 09:41:34 +07:00
b . Property < string > ( "FirstName" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "Gender" )
. HasColumnType ( "longtext" ) ;
2023-08-23 20:30:30 +07:00
b . Property < Guid > ( "InsigniaNoteId" )
. HasColumnType ( "char(36)" ) ;
b . Property < bool > ( "IsApprove" )
. HasColumnType ( "tinyint(1)" ) ;
b . Property < string > ( "Issue" )
. HasColumnType ( "longtext" )
. HasComment ( "ทะเบียนฐานันดร" ) ;
2024-07-02 09:41:34 +07:00
b . Property < string > ( "LastName" )
. HasColumnType ( "longtext" ) ;
2023-08-23 20:30:30 +07:00
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 > ( "No" )
. HasColumnType ( "longtext" )
. HasComment ( "ลำดับที่" ) ;
b . Property < string > ( "Number" )
. HasColumnType ( "longtext" )
. HasComment ( "หมายเลขประกาศนียบัตรกำกับเครื่องราชฯ" ) ;
2024-11-21 12:16:52 +07:00
b . Property < string > ( "OrgReceiveInsignia" )
. HasColumnType ( "longtext" )
. HasComment ( "หน่วยงานรับเครื่องราชฯ" ) ;
2023-09-26 17:51:18 +07:00
b . Property < Guid ? > ( "OrgReceiveInsigniaId" )
2024-11-21 12:16:52 +07:00
. HasColumnType ( "char(36)" )
. HasComment ( "หน่วยงานรับเครื่องราชฯ" ) ;
b . Property < string > ( "OrgReturnInsignia" )
. HasColumnType ( "longtext" )
. HasComment ( "หน่วยงานคืนเครื่องราชฯ" ) ;
2023-09-26 17:51:18 +07:00
b . Property < Guid ? > ( "OrgReturnInsigniaId" )
2024-11-21 12:16:52 +07:00
. HasColumnType ( "char(36)" )
. HasComment ( "หน่วยงานคืนเครื่องราชฯ" ) ;
2023-09-26 17:51:18 +07:00
2023-08-24 19:23:33 +07:00
b . Property < string > ( "OrganizationOrganizationReceive" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัด ณ วันที่ได้รับพระราชทานเครื่องราชฯ" ) ;
b . Property < string > ( "OrganizationOrganizationSend" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัด ณ วันที่ขอพระราชทานเครื่องราชฯ" ) ;
2023-08-23 20:30:30 +07:00
b . Property < string > ( "Page" )
. HasColumnType ( "longtext" )
. HasComment ( "หน้าที่" ) ;
2024-07-02 09:41:34 +07:00
b . Property < string > ( "PosLevelName" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "PosNo" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "PosTypeName" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "Position" )
. HasColumnType ( "longtext" ) ;
b . Property < double? > ( "PositionSalaryAmount" )
. HasColumnType ( "double" ) ;
b . Property < string > ( "Prefix" )
. HasColumnType ( "longtext" ) ;
2024-06-25 00:54:16 +07:00
b . Property < Guid ? > ( "ProfileId" )
2023-08-23 20:30:30 +07:00
. HasColumnType ( "char(36)" ) ;
2024-07-02 09:41:34 +07:00
b . Property < string > ( "ProfileType" )
. HasColumnType ( "longtext" ) ;
2023-08-23 20:30:30 +07:00
b . Property < DateTime ? > ( "RequestDate" )
. HasColumnType ( "datetime(6)" ) ;
b . Property < Guid > ( "RequestInsigniaId" )
. HasColumnType ( "char(36)" ) ;
2024-11-18 18:43:46 +07:00
b . Property < string > ( "Root" )
. HasColumnType ( "longtext" ) ;
2025-02-05 17:48:58 +07:00
b . Property < Guid ? > ( "RootDnaId" )
. HasColumnType ( "char(36)" ) ;
2024-11-18 18:43:46 +07:00
b . Property < Guid ? > ( "RootId" )
. HasColumnType ( "char(36)" ) ;
2023-08-23 20:30:30 +07:00
b . Property < double? > ( "Salary" )
. HasColumnType ( "double" ) ;
b . Property < string > ( "Section" )
. HasColumnType ( "longtext" )
. HasComment ( "ตอนที่" ) ;
b . Property < string > ( "Status" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะตำแหน่งที่ยื่นขอ" ) ;
b . Property < string > ( "TypePayment" )
. HasColumnType ( "longtext" )
. HasComment ( "รูปแบบการจ่าย" ) ;
b . Property < string > ( "VolumeNo" )
. HasColumnType ( "longtext" )
. HasComment ( "เล่มที่" ) ;
b . HasKey ( "Id" ) ;
2023-09-26 17:51:18 +07:00
b . HasIndex ( "DocReceiveInsigniaId" ) ;
b . HasIndex ( "DocReturnInsigniaId" ) ;
2023-08-23 20:30:30 +07:00
b . HasIndex ( "InsigniaNoteId" ) ;
b . HasIndex ( "RequestInsigniaId" ) ;
b . ToTable ( "InsigniaNoteProfiles" ) ;
} ) ;
2023-07-19 10:25:54 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaPeriod" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
2023-08-18 12:13:16 +07:00
b . Property < int > ( "Amount" )
2023-07-19 10:25:54 +07:00
. HasMaxLength ( 50 )
2023-09-08 15:23:41 +07:00
. HasColumnType ( "int" )
. HasComment ( "จำนวนวันแจ้งเตือนล่วงหน้า" ) ;
2023-07-19 10:25:54 +07:00
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" )
2023-09-08 15:23:41 +07:00
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่สิ้นสุด" ) ;
2023-07-19 10:25:54 +07:00
2023-08-08 11:21:21 +07:00
b . Property < bool > ( "IsActive" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะการใช้งาน" ) ;
2023-09-01 12:52:46 +07:00
b . Property < bool > ( "IsLock" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะการ Freez ข้อมูล" ) ;
2023-07-19 10:25:54 +07:00
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" )
. HasMaxLength ( 200 )
2023-09-08 15:23:41 +07:00
. HasColumnType ( "varchar(200)" )
. HasComment ( "ชื่อรอบเสนอขอเครื่องราชฯ" ) ;
2023-07-19 10:25:54 +07:00
2023-08-04 16:17:57 +07:00
b . Property < Guid ? > ( "ReliefDocId" )
. HasColumnType ( "char(36)" ) ;
2024-08-30 13:07:40 +07:00
b . Property < Guid ? > ( "RevisionId" )
. HasColumnType ( "char(36)" ) ;
2023-08-18 12:13:16 +07:00
b . Property < int > ( "Round" )
. HasColumnType ( "int" )
. HasComment ( "ราบการยื่นขอ" ) ;
2023-07-19 10:25:54 +07:00
b . Property < DateTime > ( "StartDate" )
2023-09-08 15:23:41 +07:00
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่เริ่ม" ) ;
2023-07-19 10:25:54 +07:00
b . Property < string > ( "Type" )
. HasMaxLength ( 10 )
2023-09-08 15:23:41 +07:00
. HasColumnType ( "varchar(10)" )
. HasComment ( "ประเภทการขอ" ) ;
2023-07-19 10:25:54 +07:00
b . Property < int > ( "Year" )
2023-09-08 15:23:41 +07:00
. HasColumnType ( "int" )
. HasComment ( "ปี" ) ;
2023-07-19 10:25:54 +07:00
b . HasKey ( "Id" ) ;
2023-08-04 16:17:57 +07:00
b . HasIndex ( "ReliefDocId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "InsigniaPeriods" ) ;
2023-07-19 10:25:54 +07:00
} ) ;
2025-05-07 11:51:19 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile" , 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 < Guid > ( "InsigniaNoteProfileId" )
. 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 < DateTime ? > ( "ReclaimDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่เรียกคืน" ) ;
b . Property < string > ( "ReclaimOrganization" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "ReclaimOrganizationId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Fk Table OrganizationOrganization Borrow" ) ;
b . Property < string > ( "ReclaimReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลในการเรียกคืน" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "InsigniaNoteProfileId" ) ;
b . ToTable ( "InsigniaReclaimProfiles" ) ;
} ) ;
2023-07-19 10:25:54 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaRequest" , 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 ที่สร้างข้อมูล" ) ;
2023-09-26 17:51:18 +07:00
b . Property < Guid ? > ( "DocumentId" )
. HasColumnType ( "char(36)" ) ;
2023-07-19 10:25:54 +07:00
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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2024-11-14 11:00:22 +07:00
b . Property < string > ( "Organization" )
. HasColumnType ( "longtext" ) ;
2023-07-22 22:14:50 +07:00
b . Property < Guid > ( "OrganizationId" )
2023-07-19 10:25:54 +07:00
. HasColumnType ( "char(36)" ) ;
b . Property < Guid > ( "PeriodId" )
. HasColumnType ( "char(36)" ) ;
2025-05-29 13:57:44 +07:00
b . Property < string > ( "ProfileType" )
. HasColumnType ( "longtext" ) ;
2023-07-19 10:25:54 +07:00
b . Property < string > ( "RequestNote" )
. IsRequired ( )
. HasColumnType ( "text" ) ;
b . Property < string > ( "RequestStatus" )
. IsRequired ( )
. HasMaxLength ( 50 )
. HasColumnType ( "varchar(50)" ) ;
b . HasKey ( "Id" ) ;
2023-09-26 17:51:18 +07:00
b . HasIndex ( "DocumentId" ) ;
2023-07-19 10:25:54 +07:00
b . HasIndex ( "PeriodId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "InsigniaRequests" ) ;
2023-07-19 10:25:54 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
2025-05-19 10:45:46 +07:00
b . Property < string > ( "APR1" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "APR2" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "APR3" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "APR4" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "APR5" )
. HasColumnType ( "longtext" ) ;
2024-07-02 09:41:34 +07:00
b . Property < double? > ( "Amount" )
. HasColumnType ( "double" ) ;
b . Property < DateTime ? > ( "BirthDate" )
. HasColumnType ( "datetime(6)" ) ;
2024-12-10 22:42:16 +07:00
b . Property < string > ( "Child1" )
. HasColumnType ( "longtext" ) ;
2025-02-05 17:48:58 +07:00
b . Property < Guid ? > ( "Child1DnaId" )
. HasColumnType ( "char(36)" ) ;
2024-12-10 22:42:16 +07:00
b . Property < Guid ? > ( "Child1Id" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Child2" )
. HasColumnType ( "longtext" ) ;
2025-02-05 17:48:58 +07:00
b . Property < Guid ? > ( "Child2DnaId" )
. HasColumnType ( "char(36)" ) ;
2024-12-10 22:42:16 +07:00
b . Property < Guid ? > ( "Child2Id" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Child3" )
. HasColumnType ( "longtext" ) ;
2025-02-05 17:48:58 +07:00
b . Property < Guid ? > ( "Child3DnaId" )
. HasColumnType ( "char(36)" ) ;
2024-12-10 22:42:16 +07:00
b . Property < Guid ? > ( "Child3Id" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Child4" )
. HasColumnType ( "longtext" ) ;
2025-02-05 17:48:58 +07:00
b . Property < Guid ? > ( "Child4DnaId" )
. HasColumnType ( "char(36)" ) ;
2024-12-10 22:42:16 +07:00
b . Property < Guid ? > ( "Child4Id" )
. HasColumnType ( "char(36)" ) ;
2024-07-02 09:41:34 +07:00
b . Property < string > ( "CitizenId" )
. HasColumnType ( "longtext" ) ;
2023-07-19 10:25:54 +07:00
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 ที่สร้างข้อมูล" ) ;
2024-07-02 09:41:34 +07:00
b . Property < DateTime ? > ( "DateAppoint" )
. HasColumnType ( "datetime(6)" ) ;
b . Property < string > ( "FirstName" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "Gender" )
. HasColumnType ( "longtext" ) ;
2023-07-19 10:25:54 +07:00
b . Property < bool > ( "IsApprove" )
. HasColumnType ( "tinyint(1)" ) ;
2024-07-05 17:20:14 +07:00
b . Property < string > ( "LastInsigniaName" )
. HasColumnType ( "longtext" ) ;
2024-07-02 09:41:34 +07:00
b . Property < string > ( "LastName" )
. HasColumnType ( "longtext" ) ;
2023-07-19 10:25:54 +07:00
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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2023-09-27 20:36:13 +07:00
b . Property < bool? > ( "MarkDiscipline" )
2023-09-27 14:44:27 +07:00
. HasColumnType ( "tinyint(1)" )
. HasComment ( "แจ้งเตือน มีโทษทางวินัย" ) ;
2025-05-15 10:06:08 +07:00
b . Property < bool? > ( "MarkInsignia" )
. HasColumnType ( "tinyint(1)" ) ;
2023-09-27 20:36:13 +07:00
b . Property < bool? > ( "MarkLeave" )
2023-09-27 14:44:27 +07:00
. HasColumnType ( "tinyint(1)" )
. HasComment ( "แจ้งเตือน ไม่ได้เลื่อนเงินเดือน/ไม่ได้เลื่อนขั้น เนื่องจากลาเกิน" ) ;
2023-09-27 20:36:13 +07:00
b . Property < bool? > ( "MarkRate" )
2023-09-27 14:44:27 +07:00
. HasColumnType ( "tinyint(1)" )
. HasComment ( "แจ้งเตือน ผลการประเมินการปฏิบัติราชการในรอบ 5 ปี ต่ำกว่าระดับดี (น้อยกว่าร้อยละ 70)" ) ;
2023-09-27 13:20:00 +07:00
2023-07-19 10:25:54 +07:00
b . Property < string > ( "MatchingConditions" )
2023-08-23 20:30:30 +07:00
. HasColumnType ( "text" )
. HasComment ( "รายละเอียดเครื่องราชฯที่ขอ" ) ;
2023-07-19 10:25:54 +07:00
2025-05-19 10:45:46 +07:00
b . Property < string > ( "OCT1" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "OCT2" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "OCT3" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "OCT4" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "OCT5" )
. HasColumnType ( "longtext" ) ;
2024-07-02 09:41:34 +07:00
b . Property < string > ( "PosLevelName" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "PosNo" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "PosTypeName" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "Position" )
. HasColumnType ( "longtext" ) ;
b . Property < double? > ( "PositionSalaryAmount" )
. HasColumnType ( "double" ) ;
b . Property < string > ( "Prefix" )
. HasColumnType ( "longtext" ) ;
2023-07-19 10:25:54 +07:00
b . Property < Guid > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
2024-07-02 09:41:34 +07:00
b . Property < string > ( "ProfileType" )
. HasColumnType ( "longtext" ) ;
2023-08-24 19:23:33 +07:00
b . Property < string > ( "Reason" )
2023-09-26 17:51:18 +07:00
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลการได้รับเครื่องราชฯ" ) ;
b . Property < string > ( "ReasonReject" )
2023-08-24 19:23:33 +07:00
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลไม่ยื่นขอ" ) ;
2023-07-19 10:25:54 +07:00
b . Property < DateTime > ( "RequestDate" )
. HasColumnType ( "datetime(6)" ) ;
b . Property < Guid > ( "RequestId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid > ( "RequestInsigniaId" )
. HasColumnType ( "char(36)" ) ;
2024-11-18 18:43:46 +07:00
b . Property < string > ( "Root" )
. HasColumnType ( "longtext" ) ;
2025-02-05 17:48:58 +07:00
b . Property < Guid ? > ( "RootDnaId" )
. HasColumnType ( "char(36)" ) ;
2024-11-18 18:43:46 +07:00
b . Property < Guid ? > ( "RootId" )
. HasColumnType ( "char(36)" ) ;
2023-08-09 23:34:25 +07:00
b . Property < double? > ( "Salary" )
. HasColumnType ( "double" ) ;
2023-07-19 10:25:54 +07:00
2023-08-18 12:13:16 +07:00
b . Property < string > ( "Status" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะตำแหน่งที่ยื่นขอ" ) ;
2023-07-19 10:25:54 +07:00
b . HasKey ( "Id" ) ;
b . HasIndex ( "RequestId" ) ;
b . HasIndex ( "RequestInsigniaId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "InsigniaRequestProfiles" ) ;
2023-07-19 10:25:54 +07:00
} ) ;
2023-06-26 15:18:39 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.BloodGroup" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 2 )
. HasColumnType ( "varchar(2)" )
. HasColumnOrder ( 1 )
. HasComment ( "ชื่อหมู่โลหิต" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "BloodGroups" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.District" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 150 )
. HasColumnType ( "varchar(150)" )
. HasColumnOrder ( 1 )
. HasComment ( "เขต/อำเภอ" ) ;
b . Property < Guid ? > ( "ProvinceId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProvinceId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Districts" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.EducationLevel" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ระดับการศึกษา" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "EducationLevels" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.Gender" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
. HasColumnOrder ( 1 )
. HasComment ( "เพศ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Genders" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.Holiday" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "Category" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 6 )
. HasComment ( "ประเภทของวันหยุดสำหรับ ทำงาน 5 วัน=`NORMAL`,ทำงาน 6 วัน=`6DAYS`" ) ;
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 > ( "HolidayDate" )
. HasColumnType ( "datetime(6)" )
. HasColumnOrder ( 2 )
. HasComment ( "วันหยุด" ) ;
b . Property < bool > ( "IsSpecial" )
. HasColumnType ( "tinyint(1)" )
. HasColumnOrder ( 5 )
. 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 ( )
. HasMaxLength ( 250 )
. HasColumnType ( "varchar(250)" )
. HasColumnOrder ( 4 )
. HasComment ( "ชื่อวันหยุด" ) ;
b . Property < DateTime > ( "OriginalDate" )
. HasColumnType ( "datetime(6)" )
. HasColumnOrder ( 3 )
. HasComment ( "วันหยุด(Original)" ) ;
b . Property < int > ( "Year" )
. HasColumnType ( "int" )
. HasColumnOrder ( 1 )
. HasComment ( "ประจำปี" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Holidays" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.Insignia" , 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 < Guid ? > ( "InsigniaTypeId" )
. HasColumnType ( "char(36)" ) ;
b . Property < bool > ( "IsActive" )
. HasColumnType ( "tinyint(1)" )
. HasColumnOrder ( 3 )
. 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 < int > ( "Level" )
. HasColumnType ( "int" )
. HasColumnOrder ( 4 )
2023-11-18 01:43:03 +07:00
. HasComment ( "ลำดับชั้นของเครื่องราช เอาไว้ตรวจสอบเวลาขอว่าต้องได้ชั้นที่สูงกว่าที่เคยได้รับแล้วเท่านั้น" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "Name" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
2023-11-18 01:43:03 +07:00
. HasComment ( "ชื่อเครื่องราช" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "Note" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 5 )
. HasComment ( "หมายเหตุ" ) ;
b . Property < string > ( "ShortName" )
. IsRequired ( )
. HasMaxLength ( 30 )
. HasColumnType ( "varchar(30)" )
. HasColumnOrder ( 2 )
2023-11-18 01:43:03 +07:00
. HasComment ( "ชื่อย่อเครื่องราช" ) ;
2023-06-26 15:18:39 +07:00
b . HasKey ( "Id" ) ;
b . HasIndex ( "InsigniaTypeId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Insignias" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.InsigniaType" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 50 )
. HasColumnType ( "varchar(50)" )
. HasColumnOrder ( 1 )
2023-11-18 01:43:03 +07:00
. HasComment ( "ชื่อประเภทเครื่องราช" ) ;
2023-06-26 15:18:39 +07:00
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "InsigniaTypes" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.OrganizationAgency" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ข้อมูลโครงสร้างหน่วยงานชื่อ หน่วยงานต้นสังกัด" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "OrganizationAgencys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.OrganizationFax" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ข้อมูลโครงสร้างหน่วยงานชื่อ เบอร์โทรสาร" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "OrganizationFaxs" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.OrganizationGovernmentAgency" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ข้อมูลโครงสร้างหน่วยงานชื่อ ส่วนราชการต้นสังกัด" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "OrganizationGovernmentAgencys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.OrganizationLevel" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ข้อมูลโครงสร้างหน่วยงานชื่อ ระดับ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "OrganizationLevels" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.OrganizationOrganization" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ข้อมูลโครงสร้างหน่วยงานชื่อ หน่วยงาน" ) ;
b . Property < string > ( "Note" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 3 )
. HasComment ( "หมายเหตุ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "OrganizationOrganizations" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.OrganizationShortName" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "AgencyCode" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ข้อมูลโครงสร้างหน่วยงานชื่อ รหัสหน่วยงาน" ) ;
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 > ( "GovernmentCode" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 2 )
. HasComment ( "ข้อมูลโครงสร้างหน่วยงานชื่อ รหัสส่วนราชการ" ) ;
b . Property < bool > ( "IsActive" )
. HasColumnType ( "tinyint(1)" )
. HasColumnOrder ( 4 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 3 )
. HasComment ( "ข้อมูลโครงสร้างหน่วยงานชื่อ ตัวย่อหน่วยงาน" ) ;
b . Property < string > ( "Note" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 5 )
. HasComment ( "หมายเหตุ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "OrganizationShortNames" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.OrganizationStatus" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ข้อมูลโครงสร้างหน่วยงานชื่อ สถานะ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "OrganizationStatuses" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ข้อมูลโครงสร้างหน่วยงานชื่อ เบอร์ติดต่อภายนอก" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "OrganizationTelExternals" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ข้อมูลโครงสร้างหน่วยงานชื่อ เบอร์ติดต่อภายใน" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "OrganizationTelInternals" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.OrganizationType" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ข้อมูลโครงสร้างหน่วยงานชื่อ ประเภท" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "OrganizationTypes" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.PhysicalStatus" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "สถานภาพทางกาย" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PhysicalStatuses" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.Position" , 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 > ( "ExecutiveName" )
. IsRequired ( )
. HasMaxLength ( 300 )
. HasColumnType ( "varchar(300)" )
. HasColumnOrder ( 3 )
. HasComment ( "ชื่อตำแหน่งทางการบริหาร" ) ;
b . Property < Guid ? > ( "ExecutiveSideId" )
. HasColumnType ( "char(36)" ) ;
b . Property < bool > ( "IsActive" )
. HasColumnType ( "tinyint(1)" )
. HasColumnOrder ( 9 )
. 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 ( )
. HasMaxLength ( 300 )
. HasColumnType ( "varchar(300)" )
. HasColumnOrder ( 1 )
. HasComment ( "ชื่อตำแหน่ง" ) ;
b . Property < Guid ? > ( "PathSideId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "PositionCategory" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 8 )
. HasComment ( "ตำแหน่งสำหรับข้าราชการหรือลูกจ้าง officer/employee" ) ;
b . Property < Guid ? > ( "PositionLevelId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "PositionPathId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "PositionTypeId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ExecutiveSideId" ) ;
b . HasIndex ( "PathSideId" ) ;
b . HasIndex ( "PositionLevelId" ) ;
b . HasIndex ( "PositionPathId" ) ;
b . HasIndex ( "PositionTypeId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Positions" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ชื่อกลุ่มงานข้อมูลตำแหน่งของลูกจ้างกรุงเทพ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PositionEmployeeGroups" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel" , 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)" )
2023-08-03 09:35:54 +07:00
. HasColumnOrder ( 3 )
2023-06-26 15:18:39 +07:00
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
2023-08-03 09:35:54 +07:00
. HasColumnOrder ( 2 )
2023-06-26 15:18:39 +07:00
. HasComment ( "ชื่อระดับชั้นงานข้อมูลตำแหน่งของลูกจ้างกรุงเทพ" ) ;
2023-08-03 09:35:54 +07:00
b . Property < int? > ( "Order" )
. HasColumnType ( "int" )
. HasColumnOrder ( 1 )
. HasComment ( "ลำดับ" ) ;
2023-06-26 15:18:39 +07:00
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PositionEmployeeLevels" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ชื่อสายงานข้อมูลตำแหน่งของลูกจ้างกรุงเทพ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PositionEmployeeLines" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ชื่อตำแหน่งข้อมูลตำแหน่งของลูกจ้างกรุงเทพ" ) ;
b . Property < string > ( "Note" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 3 )
. HasComment ( "หมายเหตุ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PositionEmployeePositions" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ชื่อด้านของตำแหน่งข้อมูลตำแหน่งของลูกจ้างกรุงเทพ" ) ;
b . Property < string > ( "Note" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 3 )
. HasComment ( "หมายเหตุ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PositionEmployeePositionSides" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ชื่อสถานะของตำแหน่งข้อมูลตำแหน่งของลูกจ้างกรุงเทพ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PositionEmployeeStatuses" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.PositionExecutive" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ชื่อตำแหน่งทางการบริหารของข้อมูลตำแหน่งของข้าราชการ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PositionExecutives" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ชื่อด้านทางการบริหาร" ) ;
b . Property < string > ( "Note" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 3 )
. HasComment ( "หมายเหตุ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PositionExecutiveSides" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.PositionLevel" , 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)" )
2023-08-03 09:35:54 +07:00
. HasColumnOrder ( 5 )
2023-06-26 15:18:39 +07:00
. 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 < int > ( "Level" )
. HasColumnType ( "int" )
2023-08-03 09:35:54 +07:00
. HasColumnOrder ( 4 )
2023-06-26 15:18:39 +07:00
. HasComment ( "ลำดับชั้นของระดับตำแหน่ง" ) ;
b . Property < string > ( "Name" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
2023-08-03 09:35:54 +07:00
. HasColumnOrder ( 2 )
2023-06-26 15:18:39 +07:00
. HasComment ( "ชื่อระดับตำแหน่ง" ) ;
2023-08-03 09:35:54 +07:00
b . Property < int? > ( "Order" )
. HasColumnType ( "int" )
. HasColumnOrder ( 1 )
. HasComment ( "ลำดับ" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "ShortName" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
2023-08-03 09:35:54 +07:00
. HasColumnOrder ( 3 )
2023-06-26 15:18:39 +07:00
. HasComment ( "ชื่อย่อระดับตำแหน่ง" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PositionLevels" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.PositionLine" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ชื่อสายงานของข้อมูลตำแหน่งของข้าราชการ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PositionLines" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.PositionPath" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ชื่อสายงาน" ) ;
b . Property < string > ( "Note" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 3 )
. HasComment ( "หมายเหตุ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PositionPaths" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.PositionPathSide" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ชื่อด้าน/สาขา" ) ;
b . Property < string > ( "Note" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 3 )
. HasComment ( "หมายเหตุ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PositionPathSides" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.PositionStatus" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ชื่อสถานะของตำแหน่งของข้อมูลตำแหน่งของข้าราชการ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PositionStatuss" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.PositionType" , 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)" )
2023-08-03 09:35:54 +07:00
. HasColumnOrder ( 3 )
2023-06-26 15:18:39 +07:00
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
2023-08-03 09:35:54 +07:00
. HasColumnOrder ( 2 )
2023-06-26 15:18:39 +07:00
. HasComment ( "ชื่อประเภทตำแหน่ง" ) ;
2023-08-03 09:35:54 +07:00
b . Property < int? > ( "Order" )
. HasColumnType ( "int" )
. HasColumnOrder ( 1 )
. HasComment ( "ลำดับ" ) ;
2023-06-26 15:18:39 +07:00
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PositionTypes" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.Prefix" , 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)" )
. HasColumnOrder ( 3 )
. 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 ( )
. HasMaxLength ( 50 )
. HasColumnType ( "varchar(50)" )
. HasColumnOrder ( 2 )
. HasComment ( "รายละเอียดคำนำหน้า" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Prefixes" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.Province" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 150 )
. HasColumnType ( "varchar(150)" )
. HasColumnOrder ( 1 )
. HasComment ( "จังหวัด" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Provinces" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.Relationship" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 50 )
. HasColumnType ( "varchar(50)" )
. HasColumnOrder ( 1 )
. HasComment ( "ชื่อความสัมพันธ์" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Relationships" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.Religion" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ศาสนา" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Religions" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.Royal" , 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)" )
. HasColumnOrder ( 3 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ชื่อประเภทข้อมูลเหรียญตรา" ) ;
b . Property < string > ( "ShortName" )
. IsRequired ( )
. HasMaxLength ( 10 )
. HasColumnType ( "varchar(10)" )
. HasColumnOrder ( 2 )
. HasComment ( "ชื่อย่อเหรียญตรา" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Royals" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.RoyalHierarchy" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ชื่อลำดับชั้นข้อมูลเครื่องราชฯ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "RoyalHierarchys" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.RoyalType" , 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)" )
. HasColumnOrder ( 2 )
. 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 ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasColumnOrder ( 1 )
. HasComment ( "ชื่อประเภทข้อมูลเครื่องราชฯ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "RoyalTypes" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.SubDistrict" , 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 < Guid ? > ( "DistrictId" )
. HasColumnType ( "char(36)" ) ;
b . Property < bool > ( "IsActive" )
. HasColumnType ( "tinyint(1)" )
. HasColumnOrder ( 3 )
. 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 ( )
. HasMaxLength ( 150 )
. HasColumnType ( "varchar(150)" )
. HasColumnOrder ( 1 )
. HasComment ( "เขต/อำเภอ" ) ;
b . Property < string > ( "ZipCode" )
. IsRequired ( )
. HasMaxLength ( 10 )
. HasColumnType ( "varchar(10)" )
. HasColumnOrder ( 2 )
. HasComment ( "รหัสไปรษณีย์" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "DistrictId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "SubDistricts" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
2023-08-08 15:05:53 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Notifications.Inbox" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "Body" )
. IsRequired ( )
. HasColumnType ( "text" )
. HasComment ( "รายละเอียดข้อความ" ) ;
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 ที่สร้างข้อมูล" ) ;
2024-01-18 13:29:38 +07:00
b . Property < DateTime ? > ( "DeleteDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ลบข้อมูล" ) ;
2023-08-08 15:05:53 +07:00
b . Property < bool > ( "IsOpen" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "เปิดอ่านแล้วหรือยัง" ) ;
2024-05-21 14:31:29 +07:00
b . Property < string > ( "KeycloakUserId" )
. HasColumnType ( "longtext" ) ;
2023-08-08 15:05:53 +07:00
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 < DateTime ? > ( "OpenDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่เปิดอ่าน" ) ;
b . Property < string > ( "Payload" )
. IsRequired ( )
. HasColumnType ( "text" )
. HasComment ( "สิงที่แนบมาด้วย" ) ;
b . Property < DateTime > ( "ReceiveDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ได้รับ" ) ;
b . Property < Guid > ( "ReceiverUserId" )
. HasColumnType ( "char(36)" )
. HasComment ( "รหัสผู้รับข้อความ" ) ;
b . Property < string > ( "Subject" )
. IsRequired ( )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "หัวเรื่อง" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Inboxes" ) ;
2023-08-08 15:05:53 +07:00
} ) ;
2023-07-13 15:03:29 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Notifications.MessageQueueEntity" , 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 > ( "IsSend" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ทำการส่งข้อความแล้วหรือยัง?" ) ;
b . Property < bool > ( "IsSendEmail" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ส่งอีเมลล์หรือไม่?" ) ;
b . Property < bool > ( "IsSendInbox" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ส่งไปที่กล่องข้อความหรือไม่?" ) ;
b . Property < bool > ( "IsSendNotification" )
. 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 > ( "MessageContent" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "รายละเอียดข้อความ" ) ;
b . Property < string > ( "MessagePayLoad" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "สิ่งที่แนบมาด้วย" ) ;
b . Property < string > ( "ReceiverEmailAddress" )
. IsRequired ( )
. HasMaxLength ( 500 )
. HasColumnType ( "varchar(500)" )
. HasComment ( "อีเมล์ของผู้รับ" ) ;
b . Property < Guid > ( "ReceiverUserId" )
. HasColumnType ( "char(36)" )
. HasComment ( "รหัสของผู้รับข้อความ" ) ;
b . Property < string > ( "SenderSystem" )
. IsRequired ( )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "ส่งจากระบบงาน" ) ;
b . Property < string > ( "Subject" )
. IsRequired ( )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "หัวเรื่อง" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "MessageQueues" ) ;
2023-07-13 15:03:29 +07:00
} ) ;
2023-08-08 15:05:53 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Notifications.Notification" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "Body" )
. IsRequired ( )
. HasColumnType ( "text" )
. HasComment ( "รายละเอียดข้อความ" ) ;
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 ที่สร้างข้อมูล" ) ;
2024-01-18 13:29:38 +07:00
b . Property < DateTime ? > ( "DeleteDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ลบข้อมูล" ) ;
2023-08-08 15:05:53 +07:00
b . Property < bool > ( "IsOpen" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "เปิดอ่านแล้วหรือยัง" ) ;
2024-05-21 14:31:29 +07:00
b . Property < string > ( "KeycloakUserId" )
. HasColumnType ( "longtext" ) ;
2023-08-08 15:05:53 +07:00
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 < DateTime ? > ( "OpenDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่เปิดอ่าน" ) ;
b . Property < string > ( "Payload" )
. IsRequired ( )
. HasColumnType ( "text" )
. HasComment ( "สิงที่แนบมาด้วย" ) ;
b . Property < DateTime > ( "ReceiveDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ได้รับ" ) ;
b . Property < Guid > ( "ReceiverUserId" )
. HasColumnType ( "char(36)" )
. HasComment ( "รหัสผู้รับข้อความ" ) ;
b . Property < string > ( "Type" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภทการแจ้งเตือน" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Notifications" ) ;
2023-08-08 15:05:53 +07:00
} ) ;
2023-07-13 09:01:47 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "Agency" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "ConditionNote" )
. HasColumnType ( "longtext" ) ;
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 > ( "Department" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "Government" )
. HasColumnType ( "longtext" ) ;
b . Property < bool? > ( "IsActive" )
. HasColumnType ( "tinyint(1)" ) ;
b . Property < bool? > ( "IsCondition" )
. HasColumnType ( "tinyint(1)" ) ;
b . Property < bool? > ( "IsDirector" )
. HasColumnType ( "tinyint(1)" ) ;
2023-08-19 21:03:17 +07:00
b . Property < bool? > ( "IsPublic" )
. HasColumnType ( "tinyint(1)" ) ;
2023-07-13 09:01:47 +07:00
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 ? > ( "OrganizationAgencyId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "OrganizationFaxId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "OrganizationGovernmentAgencyId" )
. HasColumnType ( "char(36)" ) ;
2023-09-15 14:32:57 +07:00
b . Property < Guid ? > ( "OrganizationId" )
. HasColumnType ( "char(36)" ) ;
2023-07-13 09:01:47 +07:00
b . Property < Guid ? > ( "OrganizationLevelId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "OrganizationOrder" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "OrganizationOrganizationId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "OrganizationShortNameId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "OrganizationTelExternalId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "OrganizationTelInternalId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "OrganizationTypeId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "OrganizationUserNote" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "Pile" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "PosNo" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "PositionCondition" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "PositionEmployeeLineId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "PositionEmployeePositionId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "PositionEmployeeStatusId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "PositionMasterUserNote" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Qualification" )
. HasColumnType ( "longtext" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "OrganizationAgencyId" ) ;
b . HasIndex ( "OrganizationFaxId" ) ;
b . HasIndex ( "OrganizationGovernmentAgencyId" ) ;
2023-09-15 14:32:57 +07:00
b . HasIndex ( "OrganizationId" ) ;
2023-07-13 09:01:47 +07:00
b . HasIndex ( "OrganizationLevelId" ) ;
b . HasIndex ( "OrganizationOrganizationId" ) ;
b . HasIndex ( "OrganizationShortNameId" ) ;
b . HasIndex ( "OrganizationTelExternalId" ) ;
b . HasIndex ( "OrganizationTelInternalId" ) ;
b . HasIndex ( "OrganizationTypeId" ) ;
b . HasIndex ( "PositionEmployeeLineId" ) ;
b . HasIndex ( "PositionEmployeePositionId" ) ;
b . HasIndex ( "PositionEmployeeStatusId" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "OrganizationEmployees" ) ;
2023-07-13 09:01:47 +07:00
} ) ;
2023-08-19 21:03:17 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile" , 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 > ( "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 > ( "OrgEmployeeId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Status" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "OrgEmployeeId" ) ;
b . HasIndex ( "ProfileId" ) ;
b . ToTable ( "OrganizationEmployeeProfiles" ) ;
} ) ;
2023-07-13 15:03:29 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel" , b = >
2023-07-13 09:01:47 +07:00
{
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 > ( "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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2023-07-13 15:03:29 +07:00
b . Property < Guid ? > ( "OrganizationEmployeeId" )
. HasColumnType ( "char(36)" ) ;
2023-07-13 09:01:47 +07:00
2023-07-13 15:03:29 +07:00
b . Property < Guid ? > ( "PositionEmployeeLevelId" )
. HasColumnType ( "char(36)" ) ;
2023-07-13 09:01:47 +07:00
2023-07-13 15:03:29 +07:00
b . HasKey ( "Id" ) ;
2023-07-13 09:01:47 +07:00
2023-07-13 15:03:29 +07:00
b . HasIndex ( "OrganizationEmployeeId" ) ;
2023-07-13 09:01:47 +07:00
2023-07-13 15:03:29 +07:00
b . HasIndex ( "PositionEmployeeLevelId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "OrganizationPositionEmployeeLevels" ) ;
2023-07-13 15:03:29 +07:00
} ) ;
2023-07-13 09:57:58 +07:00
2023-07-13 09:01:47 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide" , 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 > ( "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 ? > ( "OrganizationEmployeeId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "PositionEmployeePositionSideId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "OrganizationEmployeeId" ) ;
b . HasIndex ( "PositionEmployeePositionSideId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "OrganizationPositionEmployeePositionSides" ) ;
2023-07-13 09:01:47 +07:00
} ) ;
2023-06-26 15:18:39 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity" , 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 > ( "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 ? > ( "PositionLevelId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "PositionMasterId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . HasKey ( "Id" ) ;
2023-07-05 16:22:44 +07:00
b . HasIndex ( "PositionLevelId" ) ;
2023-06-26 15:18:39 +07:00
b . HasIndex ( "PositionMasterId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "AvailablePositionLevels" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.OrganizationEntity" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "Agency" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 14 )
. HasComment ( "หน่วยงาน" ) ;
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 > ( "Department" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 16 )
. HasComment ( "ฝ่าย/ส่วน" ) ;
b . Property < string > ( "Government" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 15 )
. HasComment ( "ส่วนราชการ" ) ;
2023-08-24 19:23:33 +07:00
b . Property < bool > ( "IsActive" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะการใช้งาน" ) ;
2023-06-26 15:18:39 +07:00
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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2023-08-07 13:36:22 +07:00
b . Property < Guid ? > ( "OrganizationAgencyId" )
2023-08-07 14:16:00 +07:00
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 10 )
. HasComment ( "OrganizationAgencyId" ) ;
2023-08-07 13:36:22 +07:00
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "OrganizationFaxId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
2023-08-07 13:36:22 +07:00
b . Property < Guid ? > ( "OrganizationGovernmentAgencyId" )
2023-08-07 14:16:00 +07:00
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 11 )
. HasComment ( "OrganizationGovernmentAgencyId" ) ;
2023-08-07 13:36:22 +07:00
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "OrganizationLevelId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < int? > ( "OrganizationOrder" )
. HasColumnType ( "int" )
. HasColumnOrder ( 12 )
. HasComment ( "OrganizationOrder" ) ;
b . Property < Guid ? > ( "OrganizationOrganizationId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "OrganizationShortNameId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "OrganizationStatusId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "OrganizationTelExternalId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "OrganizationTelInternalId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "OrganizationTypeId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "OrganizationUserNote" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 13 )
. HasComment ( "OrganizationUserNote" ) ;
b . Property < Guid ? > ( "ParentId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "Pile" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 17 )
. HasComment ( "กอง" ) ;
b . HasKey ( "Id" ) ;
2023-07-05 16:22:44 +07:00
b . HasIndex ( "OrganizationFaxId" ) ;
b . HasIndex ( "OrganizationLevelId" ) ;
b . HasIndex ( "OrganizationOrganizationId" ) ;
b . HasIndex ( "OrganizationShortNameId" ) ;
b . HasIndex ( "OrganizationStatusId" ) ;
b . HasIndex ( "OrganizationTelExternalId" ) ;
b . HasIndex ( "OrganizationTelInternalId" ) ;
b . HasIndex ( "OrganizationTypeId" ) ;
2023-06-26 15:18:39 +07:00
b . HasIndex ( "ParentId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Organizations" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity" , 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? > ( "IsDirector" )
. HasColumnType ( "tinyint(1)" )
. HasColumnOrder ( 3 )
. HasComment ( "Is Director" ) ;
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 ? > ( "OrganizationId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "PositionMasterId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "PositionNumberId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "PositionUserNote" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 4 )
. HasComment ( "positionUserNote" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "OrganizationId" ) ;
b . HasIndex ( "PositionMasterId" ) ;
2023-07-05 16:22:44 +07:00
b . HasIndex ( "PositionNumberId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "OrganizationPositions" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.OrganizationPublishHistoryEntity" , 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 > ( "Detail" )
. 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 < string > ( "ObjectValue" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 2 )
. HasComment ( "เก็บ Object ที่มีการอัพเดตในระบบ" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "OrganizationPublishHistories" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.PositionMasterEntity" , 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? > ( "IsDirector" )
. HasColumnType ( "tinyint(1)" )
. HasColumnOrder ( 14 )
. HasComment ( "IsDirector" ) ;
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 > ( "PositionCondition" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 11 )
. HasComment ( "PositionCondition" ) ;
b . Property < Guid ? > ( "PositionExecutiveId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "PositionExecutiveSideId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "PositionExecutiveSideObject" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "PositionId" )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 2 )
. HasComment ( "PositionId" ) ;
b . Property < Guid ? > ( "PositionLineId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "PositionMasterUserNote" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 13 )
. HasComment ( "PositionMasterUserNote" ) ;
b . Property < Guid ? > ( "PositionPathId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "PositionPathSideId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "PositionPathSideObject" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "PositionStatusId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < Guid ? > ( "PositionTypeId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . Property < string > ( "Qualification" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 15 )
. HasComment ( "คุณวุฒิ" ) ;
b . HasKey ( "Id" ) ;
2023-07-05 16:22:44 +07:00
b . HasIndex ( "PositionExecutiveId" ) ;
b . HasIndex ( "PositionExecutiveSideId" ) ;
b . HasIndex ( "PositionLineId" ) ;
b . HasIndex ( "PositionPathId" ) ;
b . HasIndex ( "PositionPathSideId" ) ;
b . HasIndex ( "PositionStatusId" ) ;
b . HasIndex ( "PositionTypeId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PositionMasters" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity" , 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? > ( "IsDirector" )
. HasColumnType ( "tinyint(1)" )
. HasColumnOrder ( 14 )
. HasComment ( "IsDirector" ) ;
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 > ( "Position" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 2 )
. HasComment ( "Position" ) ;
b . Property < string > ( "PositionCondition" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 11 )
. HasComment ( "PositionCondition" ) ;
b . Property < string > ( "PositionExecutive" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 5 )
. HasComment ( "PositionExecutive" ) ;
b . Property < string > ( "PositionExecutiveSide" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 6 )
. HasComment ( "PositionExecutiveSide" ) ;
b . Property < string > ( "PositionExecutiveSideObject" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "PositionLevel" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 12 )
. HasComment ( "PositionLevel" ) ;
b . Property < string > ( "PositionLine" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 8 )
. HasComment ( "PositionLine" ) ;
b . Property < Guid ? > ( "PositionMasterEntityId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "PositionMasterUserNote" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 13 )
. HasComment ( "PositionMasterUserNote" ) ;
b . Property < string > ( "PositionPath" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 3 )
. HasComment ( "PositionPath" ) ;
b . Property < string > ( "PositionPathSide" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 7 )
. HasComment ( "PositionPathSide" ) ;
b . Property < string > ( "PositionPathSideObject" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "PositionStatus" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 10 )
. HasComment ( "PositionStatus" ) ;
b . Property < string > ( "PositionType" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 4 )
. HasComment ( "PositionType" ) ;
b . Property < string > ( "Qualification" )
. HasColumnType ( "longtext" )
. HasColumnOrder ( 15 )
. HasComment ( "คุณวุฒิ" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "PositionMasterEntityId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PositionMasterHistoryEntity" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.PositionNumberEntity" , 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 > ( "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" )
. HasMaxLength ( 300 )
. HasColumnType ( "varchar(300)" )
. HasColumnOrder ( 2 )
. HasComment ( "ชื่อ" ) ;
b . Property < Guid ? > ( "OrganizationShortNameId" )
2023-07-05 16:22:44 +07:00
. HasColumnType ( "char(36)" ) ;
2023-06-26 15:18:39 +07:00
b . HasKey ( "Id" ) ;
2023-07-05 16:22:44 +07:00
b . HasIndex ( "OrganizationShortNameId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PositionNumbers" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.ProfilePosition" , 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 ที่สร้างข้อมูล" ) ;
2023-08-16 16:44:36 +07:00
b . Property < bool > ( "IsActive" )
. HasColumnType ( "tinyint(1)" ) ;
b . Property < bool > ( "IsPublished" )
. HasColumnType ( "tinyint(1)" ) ;
2023-06-26 15:18:39 +07:00
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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2023-07-05 16:22:44 +07:00
b . Property < Guid ? > ( "OrganizationPositionId" )
2023-06-26 15:18:39 +07:00
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "OrganizationPositionId" ) ;
2023-07-05 16:22:44 +07:00
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "ProfilePositions" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.Report2.Report2" , 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 > ( "GovernmentCode" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "GovernmentCodeOld" )
. HasColumnType ( "longtext" ) ;
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 > ( "OrganizationOrganization" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "OrganizationOrganizationId" )
. HasColumnType ( "char(36)" )
. HasComment ( "ชื่อหน่วยงาน" ) ;
b . Property < string > ( "OrganizationOrganizationOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงานเดิม" ) ;
b . Property < Guid ? > ( "OrganizationPositionId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "OrganizationShortName" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "OrganizationShortNameId" )
. HasColumnType ( "char(36)" )
. HasComment ( "รหัสส่วนราชการ" ) ;
b . Property < string > ( "OrganizationShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "รหัสส่วนราชการเดิม" ) ;
b . Property < string > ( "PositionExecutive" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "PositionExecutiveId" )
. HasColumnType ( "char(36)" )
. HasComment ( "ตำแหน่งทางการบริหาร" ) ;
b . Property < string > ( "PositionExecutiveOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหารเดิม" ) ;
b . Property < string > ( "PositionExecutiveSide" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "PositionExecutiveSideId" )
. HasColumnType ( "char(36)" )
. HasComment ( "ด้านทางบริหาร" ) ;
b . Property < string > ( "PositionExecutiveSideOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางบริหารเดิม" ) ;
b . Property < string > ( "PositionLevel" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "PositionLevelId" )
. HasColumnType ( "char(36)" )
. HasComment ( "ระดับตำแหน่ง" ) ;
b . Property < string > ( "PositionLevelOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ระดับตำแหน่งเดิม" ) ;
b . Property < string > ( "PositionNum" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "PositionNumId" )
. HasColumnType ( "char(36)" )
. HasComment ( "ตำแหน่งเลขที่" ) ;
b . Property < string > ( "PositionNumOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งเลขที่เดิม" ) ;
b . Property < string > ( "PositionPath" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "PositionPathId" )
. HasColumnType ( "char(36)" )
. HasComment ( "ตำแหน่งในสายงาน" ) ;
b . Property < string > ( "PositionPathOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งในสายงานเดิม" ) ;
b . Property < string > ( "PositionPathSide" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "PositionPathSideId" )
. HasColumnType ( "char(36)" )
. HasComment ( "ด้าน/สาขา" ) ;
b . Property < string > ( "PositionPathSideOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขาเดิม" ) ;
b . Property < string > ( "PositionType" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "PositionTypeId" )
. HasColumnType ( "char(36)" )
. HasComment ( "ประเภทตำแหน่ง" ) ;
b . Property < string > ( "PositionTypeOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภทตำแหน่งเดิม" ) ;
b . Property < Guid ? > ( "ProfilePositionId" )
. HasColumnType ( "char(36)" )
. HasComment ( "สังกัดที่ถือครอง" ) ;
b . Property < string > ( "Status" )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะการเปลี่ยนแปลง" ) ;
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Report2s" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory" , 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 > ( "Detail" )
. HasColumnType ( "longtext" ) ;
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 . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Report2DetailHistories" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.Report2.Report2History" , 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 > ( "Education" )
. HasColumnType ( "longtext" )
. HasComment ( "คุณวุฒิ" ) ;
b . Property < string > ( "FullName" )
. 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 > ( "NewGovernmentCode" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "NewOrganizationOrganization" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "NewOrganizationOrganizationId" )
. HasColumnType ( "char(36)" )
. HasComment ( "ชื่อหน่วยงาน กำหนดใหม่" ) ;
b . Property < string > ( "NewOrganizationShortName" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "NewOrganizationShortNameId" )
. HasColumnType ( "char(36)" )
. HasComment ( "รหัสส่วนราชการ กำหนดใหม่" ) ;
b . Property < string > ( "NewPositionExecutive" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "NewPositionExecutiveId" )
. HasColumnType ( "char(36)" )
. HasComment ( "ตำแหน่งทางการบริหาร กำหนดใหม่" ) ;
b . Property < string > ( "NewPositionExecutiveSide" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "NewPositionExecutiveSideId" )
. HasColumnType ( "char(36)" )
. HasComment ( "ด้านทางบริหาร กำหนดใหม่" ) ;
b . Property < string > ( "NewPositionLevel" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "NewPositionLevelId" )
. HasColumnType ( "char(36)" )
. HasComment ( "ระดับตำแหน่ง กำหนดใหม่" ) ;
b . Property < string > ( "NewPositionNum" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "NewPositionNumId" )
. HasColumnType ( "char(36)" )
. HasComment ( "ตำแหน่งเลขที่ กำหนดใหม่" ) ;
b . Property < string > ( "NewPositionPath" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "NewPositionPathId" )
. HasColumnType ( "char(36)" )
. HasComment ( "ตำแหน่งในสายงาน กำหนดใหม่" ) ;
b . Property < string > ( "NewPositionPathSide" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "NewPositionPathSideId" )
. HasColumnType ( "char(36)" )
. HasComment ( "ด้าน/สาขา กำหนดใหม่" ) ;
b . Property < string > ( "NewPositionType" )
. HasColumnType ( "longtext" ) ;
b . Property < Guid ? > ( "NewPositionTypeId" )
. HasColumnType ( "char(36)" )
. HasComment ( "ประเภทตำแหน่ง กำหนดใหม่" ) ;
b . Property < string > ( "OldGovernmentCode" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "OldOrganizationOrganization" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน กำหนดเดิม" ) ;
b . Property < string > ( "OldOrganizationShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "รหัสส่วนราชการ กำหนดเดิม" ) ;
b . Property < string > ( "OldPositionExecutive" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหาร กำหนดเดิม" ) ;
b . Property < string > ( "OldPositionExecutiveSide" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางบริหาร กำหนดเดิม" ) ;
b . Property < string > ( "OldPositionLevel" )
. HasColumnType ( "longtext" )
. HasComment ( "ระดับตำแหน่ง กำหนดเดิม" ) ;
b . Property < string > ( "OldPositionNum" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งเลขที่ กำหนดเดิม" ) ;
b . Property < string > ( "OldPositionPath" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งในสายงาน กำหนดเดิม" ) ;
b . Property < string > ( "OldPositionPathSide" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา กำหนดเดิม" ) ;
b . Property < string > ( "OldPositionType" )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภทตำแหน่ง กำหนดเดิม" ) ;
b . Property < Guid ? > ( "OrganizationPositionId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "ProfilePositionId" )
. HasColumnType ( "char(36)" )
. HasComment ( "สังกัดที่ถือครอง" ) ;
b . Property < Guid ? > ( "Report2DetailHistoryId" )
. HasColumnType ( "char(36)" ) ;
b . Property < double? > ( "Salary" )
. HasColumnType ( "double" )
. HasComment ( "เงินเดือน" ) ;
b . Property < double? > ( "SalaryMonth" )
. HasColumnType ( "double" )
. HasComment ( "เงินตอบแทนรายเดือน" ) ;
b . Property < double? > ( "SalaryPosition" )
. HasColumnType ( "double" )
. HasComment ( "เงินประจำตำแหน่ง" ) ;
b . Property < string > ( "Status" )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะการเปลี่ยนแปลง" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "Report2DetailHistoryId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Report2Histories" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
2023-06-29 10:41:00 +07:00
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 ( "จำนวนผู้สอบได้" ) ;
2023-06-29 21:04:49 +07:00
b . Property < Guid > ( "PlacementTypeId" )
. HasColumnType ( "char(36)" ) ;
2025-01-05 21:57:27 +07:00
b . Property < Guid ? > ( "RefId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id การสอบ" ) ;
2023-06-29 10:41:00 +07:00
b . Property < string > ( "Round" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "ครั้งที่" ) ;
b . Property < DateTime > ( "StartDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่เริ่มบัญชีบัญชี" ) ;
b . Property < int > ( "Year" )
. HasMaxLength ( 5 )
. HasColumnType ( "int" )
. HasComment ( "ปีงบประมาณ" ) ;
b . HasKey ( "Id" ) ;
2023-06-29 21:04:49 +07:00
b . HasIndex ( "PlacementTypeId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "Placements" ) ;
2023-06-29 10:41:00 +07:00
} ) ;
2023-08-11 01:57:09 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementAppointment" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
2023-08-16 02:35:43 +07:00
b . Property < double? > ( "Amount" )
. HasColumnType ( "double" )
. HasComment ( "เงินเดือน" ) ;
2023-08-11 01:57:09 +07:00
b . Property < double? > ( "AmountOld" )
. HasColumnType ( "double" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เงินเดือน" ) ;
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 ที่สร้างข้อมูล" ) ;
2024-05-03 17:39:10 +07:00
b . Property < DateTime ? > ( "DateOfBirth" )
. HasMaxLength ( 40 )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันเกิด" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "EducationOld" )
. HasColumnType ( "longtext" )
. 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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2024-05-03 17:39:10 +07:00
b . Property < string > ( "OrganizationOld" )
2023-08-11 01:57:09 +07:00
. HasColumnType ( "longtext" )
2024-05-02 09:31:38 +07:00
. HasComment ( "สังกัดเดิม" ) ;
2023-08-11 01:57:09 +07:00
2024-05-03 17:39:10 +07:00
b . Property < string > ( "OrganizationPositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัด/ตำแหน่งเเดิม" ) ;
2024-05-02 09:31:38 +07:00
b . Property < DateTime ? > ( "PositionDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ดำรงตำแหน่งในระดับปัจจุบันเมื่อ" ) ;
2023-08-11 01:57:09 +07:00
2025-03-21 14:31:45 +07:00
b . Property < string > ( "PositionExecutive" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหาร" ) ;
b . Property < string > ( "PositionExecutiveOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหารเดิม" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "PositionLevelOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ระดับ" ) ;
2023-10-11 10:04:52 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "PositionNumberOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เลขที่" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "PositionTypeOld" )
2023-08-11 01:57:09 +07:00
. HasColumnType ( "longtext" )
2024-05-02 09:31:38 +07:00
. HasComment ( "ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลที่รับย้ายราชการ" ) ;
2024-05-03 17:39:10 +07:00
b . Property < DateTime ? > ( "ReportingDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่รายงานตัว" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "Status" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะคำขอ" ) ;
2023-10-11 10:04:52 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child1" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child1" ) ;
2023-10-11 10:04:52 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child1DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1Dna" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child1Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1" ) ;
2023-10-11 10:04:52 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child1Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child1 old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child1OldId" )
2023-08-11 01:57:09 +07:00
. HasColumnType ( "longtext" )
2024-05-02 09:31:38 +07:00
. HasComment ( "id หน่วยงาน child1 old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child1ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child1" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child1ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child1 old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child2" )
2023-08-11 01:57:09 +07:00
. HasColumnType ( "longtext" )
2024-05-02 09:31:38 +07:00
. HasComment ( "ชื่อหน่วยงาน child2" ) ;
2023-08-11 01:57:09 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child2DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2Dna" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child2Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child2Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child2 old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child2OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2 old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child2ShortName" )
2023-08-11 01:57:09 +07:00
. HasColumnType ( "longtext" )
2024-05-02 09:31:38 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child2" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child2ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child2 old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child3" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child3" ) ;
2023-08-19 21:03:17 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child3DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3Dna" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child3Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child3Old" )
2023-08-11 01:57:09 +07:00
. HasColumnType ( "longtext" )
2024-05-02 09:31:38 +07:00
. HasComment ( "ชื่อหน่วยงาน child3 old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child3OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3 old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child3ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child3" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child3ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child3 old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child4" )
2023-08-11 01:57:09 +07:00
. HasColumnType ( "longtext" )
2024-05-02 09:31:38 +07:00
. HasComment ( "ชื่อหน่วยงาน child4" ) ;
2023-08-11 01:57:09 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child4DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4Dna" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child4Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child4Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child4 old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child4OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4 old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child4ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child4" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child4ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child4 old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "citizenId" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขบัตรประชาชน" ) ;
2023-10-11 10:04:52 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "firstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อ" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "lastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุล" ) ;
2023-10-11 10:04:52 +07:00
2024-05-02 09:31:38 +07:00
b . Property < int? > ( "node" )
. HasColumnType ( "int" )
. HasComment ( "ระดับโครงสร้าง" ) ;
2023-10-11 10:04:52 +07:00
2024-05-02 09:31:38 +07:00
b . Property < Guid ? > ( "nodeId" )
. HasColumnType ( "char(36)" )
. HasComment ( "id โครงสร้าง" ) ;
2023-10-11 10:04:52 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "orgRevisionId" )
. HasColumnType ( "longtext" )
. HasComment ( "id revision" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "posLevelId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ระดับตำแหน่ง" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "posLevelName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อระดับตำแหน่ง" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "posLevelNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อระดับตำแหน่ง old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "posLevelOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ระดับตำแหน่ง old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < int? > ( "posMasterNo" )
. HasColumnType ( "int" )
. HasComment ( "เลขที่ตำแหน่ง" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < int? > ( "posMasterNoOld" )
. HasColumnType ( "int" )
. HasComment ( "เลขที่ตำแหน่ง old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "posTypeId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ประเภทตำแหน่ง" ) ;
2023-08-19 21:03:17 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "posTypeName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อประเภทตำแหน่ง" ) ;
2023-08-11 01:57:09 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "posTypeNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อประเภทตำแหน่ง old" ) ;
b . Property < string > ( "posTypeOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ประเภทตำแหน่ง old" ) ;
2024-05-03 17:39:10 +07:00
b . Property < string > ( "position" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อตำแหน่งในสายงาน" ) ;
2025-06-16 14:40:38 +07:00
b . Property < string > ( "positionArea" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา" ) ;
b . Property < string > ( "positionAreaOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา (เก่า)" ) ;
b . Property < string > ( "positionExecutiveField" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร" ) ;
b . Property < string > ( "positionExecutiveFieldOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร (เก่า)" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "positionField" )
. HasColumnType ( "longtext" )
. HasComment ( "สายงาน" ) ;
b . Property < string > ( "positionId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ตำแหน่ง" ) ;
b . Property < string > ( "positionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อตำแหน่งในสายงาน old" ) ;
b . Property < string > ( "posmasterId" )
. HasColumnType ( "longtext" )
. HasComment ( "id อัตรากำลัง" ) ;
b . Property < string > ( "prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < string > ( "profileId" )
. HasColumnType ( "longtext" )
. HasComment ( "profile Id" ) ;
b . Property < string > ( "root" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน root" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "rootDnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน rootDna" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "rootId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root" ) ;
b . Property < string > ( "rootOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน root old" ) ;
b . Property < string > ( "rootOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root old" ) ;
b . Property < string > ( "rootShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน root" ) ;
b . Property < string > ( "rootShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน root old" ) ;
b . Property < string > ( "type" )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภทราชการ" ) ;
2024-05-03 17:39:10 +07:00
b . Property < string > ( "typeCommand" )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภทคำสั่ง" ) ;
2024-05-02 09:31:38 +07:00
2024-05-03 17:39:10 +07:00
b . HasKey ( "Id" ) ;
2023-08-11 01:57:09 +07:00
2023-08-16 15:14:29 +07:00
b . ToTable ( "PlacementAppointments" ) ;
2023-08-11 01:57:09 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc" , 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 < Guid > ( "DocumentId" )
. 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 > ( "PlacementAppointmentId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "DocumentId" ) ;
b . HasIndex ( "PlacementAppointmentId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PlacementAppointmentDocs" ) ;
2023-08-11 01:57:09 +07:00
} ) ;
2025-02-04 16:30:08 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementAppointmentEmployee" , 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 > ( "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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child1DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1Dna" ) ;
b . Property < string > ( "child2DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2Dna" ) ;
b . Property < string > ( "child3DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3Dna" ) ;
b . Property < string > ( "child4DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4Dna" ) ;
2025-02-04 16:30:08 +07:00
b . Property < string > ( "citizenId" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขบัตรประชาชน" ) ;
b . Property < string > ( "firstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "lastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุล" ) ;
b . Property < string > ( "prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < string > ( "profileId" )
. HasColumnType ( "longtext" )
. HasComment ( "profile Id" ) ;
b . Property < string > ( "root" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน root" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "rootDnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id DNA ใช้ในกรณีที่มีการทำสำเนาโครงสร้าง โครงสร้างใหม่ที่ทำสำเนากับโครงสร้างเก่าจะต้องมี DNA เดียวกัน เพื่อให้ track ประวัติการแก้ไขโครงสร้างย้อนหลังได้" ) ;
2025-02-04 16:30:08 +07:00
b . Property < string > ( "rootId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root" ) ;
b . Property < string > ( "rootShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน root" ) ;
b . HasKey ( "Id" ) ;
b . ToTable ( "PlacementAppointmentEmployee" ) ;
} ) ;
2023-07-05 19:41:40 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementCertificate" , b = >
2023-06-29 10:41:00 +07:00
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
2023-07-05 19:41:40 +07:00
b . Property < string > ( "CertificateNo" )
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
. HasComment ( "เลขที่ใบอนุญาต" ) ;
b . Property < string > ( "CertificateType" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "ชื่อใบอนุญาต" ) ;
2023-06-29 10:41:00 +07:00
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 ที่สร้างข้อมูล" ) ;
2023-07-05 19:41:40 +07:00
b . Property < DateTime ? > ( "ExpireDate" )
2023-06-29 10:41:00 +07:00
. HasColumnType ( "datetime(6)" )
2023-07-05 19:41:40 +07:00
. HasComment ( "วันที่หมดอายุ" ) ;
2023-06-29 10:41:00 +07:00
2023-07-05 19:41:40 +07:00
b . Property < DateTime ? > ( "IssueDate" )
2023-06-29 10:41:00 +07:00
. HasColumnType ( "datetime(6)" )
2023-07-05 19:41:40 +07:00
. HasComment ( "วันที่ออกใบอนุญาต" ) ;
b . Property < string > ( "Issuer" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "หน่วยงานผู้ออกใบอนุญาต" ) ;
2023-06-29 10:41:00 +07:00
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 > ( "PlacementProfileId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "PlacementProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PlacementCertificates" ) ;
2023-06-29 10:41:00 +07:00
} ) ;
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" ) ;
2023-07-06 09:34:09 +07:00
b . Property < string > ( "Country" )
. HasMaxLength ( 1000 )
. HasColumnType ( "varchar(1000)" )
. HasComment ( "ประเทศ" ) ;
2023-06-29 10:41:00 +07:00
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 ที่สร้างข้อมูล" ) ;
2023-07-06 09:34:09 +07:00
b . Property < string > ( "Degree" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "วุฒิการศึกษา" ) ;
2023-06-29 10:41:00 +07:00
2023-07-06 09:34:09 +07:00
b . Property < string > ( "Duration" )
. HasMaxLength ( 1000 )
. HasColumnType ( "varchar(1000)" )
. HasComment ( "ระยะเวลา" ) ;
2023-07-26 18:45:04 +07:00
b . Property < int? > ( "DurationYear" )
2023-07-06 09:34:09 +07:00
. HasColumnType ( "int" )
. HasComment ( "ระยะเวลาหลักสูตร" ) ;
2023-06-29 10:41:00 +07:00
b . Property < Guid ? > ( "EducationLevelId" )
2025-01-05 21:57:27 +07:00
. HasColumnType ( "char(36)" )
. HasComment ( "Idวุฒิที่ได้รับ" ) ;
b . Property < string > ( "EducationLevelName" )
. HasColumnType ( "longtext" )
. HasComment ( "วุฒิที่ได้รับ" ) ;
2023-06-29 10:41:00 +07:00
2023-07-06 09:34:09 +07:00
b . Property < DateTime ? > ( "EndDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ถึง" ) ;
b . Property < string > ( "Field" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "สาขาวิชา/ทาง" ) ;
b . Property < DateTime ? > ( "FinishDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่สำเร็จการศึกษา" ) ;
b . Property < string > ( "FundName" )
. HasMaxLength ( 1000 )
. HasColumnType ( "varchar(1000)" )
. HasComment ( "ทุน" ) ;
b . Property < string > ( "Gpa" )
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
. HasComment ( "เกรดเฉลี่ย" ) ;
b . Property < string > ( "Institute" )
. HasMaxLength ( 1000 )
. HasColumnType ( "varchar(1000)" )
. HasComment ( "สถานศึกษา" ) ;
b . Property < bool? > ( "IsDate" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ประเภทช่วงเวลาการศึกษา" ) ;
b . Property < bool? > ( "IsEducation" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "เป็นวุฒิศึกษาในตำแหน่ง" ) ;
2023-06-29 10:41:00 +07:00
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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2023-07-06 09:34:09 +07:00
b . Property < string > ( "Other" )
. HasMaxLength ( 1000 )
. HasColumnType ( "varchar(1000)" )
. HasComment ( "ข้อมูลการติดต่อ" ) ;
2023-06-29 10:41:00 +07:00
b . Property < Guid > ( "PlacementProfileId" )
. HasColumnType ( "char(36)" ) ;
2023-07-06 09:34:09 +07:00
b . Property < Guid ? > ( "PositionPathId" )
. HasColumnType ( "char(36)" ) ;
b . Property < DateTime ? > ( "StartDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ตั้งแต่" ) ;
2023-06-29 10:41:00 +07:00
b . HasKey ( "Id" ) ;
b . HasIndex ( "PlacementProfileId" ) ;
2023-07-06 09:34:09 +07:00
b . HasIndex ( "PositionPathId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PlacementEducations" ) ;
2023-06-29 10:41:00 +07:00
} ) ;
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" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PlacementIsProperties" ) ;
2023-06-29 10:41:00 +07:00
} ) ;
2023-08-11 01:57:09 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementOfficer" , b = >
2023-06-29 10:41:00 +07:00
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
2023-08-11 01:57:09 +07:00
b . Property < double? > ( "AmountOld" )
2023-06-29 10:41:00 +07:00
. HasColumnType ( "double" )
2023-08-11 01:57:09 +07:00
. HasComment ( "ข้อมูลหน่วยงานเดิม เงินเดือน" ) ;
2023-07-05 19:41:40 +07:00
2023-08-11 01:57:09 +07:00
b . Property < DateTime > ( "CreatedAt" )
2023-06-29 10:41:00 +07:00
. HasColumnType ( "datetime(6)" )
2023-08-11 01:57:09 +07:00
. HasColumnOrder ( 100 )
. HasComment ( "สร้างข้อมูลเมื่อ" ) ;
2023-06-29 10:41:00 +07:00
2023-08-11 01:57:09 +07:00
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 ที่สร้างข้อมูล" ) ;
2023-08-19 21:03:17 +07:00
b . Property < DateTime ? > ( "DateEnd" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ถึงวันที่" ) ;
b . Property < DateTime ? > ( "DateStart" )
2023-08-11 01:57:09 +07:00
. 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 > ( "Organization" )
. HasColumnType ( "longtext" )
. HasComment ( "หน่วยงานที่ช่วยราชการไป" ) ;
2024-05-03 17:39:10 +07:00
b . Property < string > ( "OrganizationOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัดเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "OrganizationPositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัด" ) ;
2025-03-21 14:31:45 +07:00
b . Property < string > ( "PositionExecutiveOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหารเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "PositionLevelOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ระดับ" ) ;
b . Property < string > ( "PositionNumberOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เลขที่" ) ;
2024-05-03 17:39:10 +07:00
b . Property < string > ( "PositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "PositionTypeOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท" ) ;
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผล" ) ;
b . Property < string > ( "Status" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะคำขอ" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child1DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1Dna old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1Old" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child1 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1OldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child1 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1ShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child1 old" ) ;
2024-05-02 09:31:38 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child2DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2Dna old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2Old" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child2 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2OldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child2 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2ShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child2 old" ) ;
2024-05-02 09:31:38 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child3DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3Dna old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3Old" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child3 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3OldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child3 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3ShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child3 old" ) ;
2024-05-02 09:31:38 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child4DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4Dna old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4Old" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child4 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4OldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child4 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4ShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child4 old" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "citizenId" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขบัตรประชาชน" ) ;
2024-12-13 16:39:36 +07:00
b . Property < string > ( "commandNo" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขที่คำสั่ง" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "firstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "lastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุล" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posLevelNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อระดับตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posLevelOldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id ระดับตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < int? > ( "posMasterNoOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "int" )
2024-05-24 01:12:27 +07:00
. HasComment ( "เลขที่ตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posTypeNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อประเภทตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posTypeOldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id ประเภทตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2025-06-16 14:40:38 +07:00
b . Property < string > ( "positionArea" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา" ) ;
b . Property < string > ( "positionAreaOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา (เก่า)" ) ;
b . Property < string > ( "positionExecutiveField" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร" ) ;
b . Property < string > ( "positionExecutiveFieldOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร (เก่า)" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < string > ( "profileId" )
. HasColumnType ( "longtext" )
. HasComment ( "profile Id" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "rootDnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน rootDna old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน root old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootOldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน root old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน root old" ) ;
2024-05-02 09:31:38 +07:00
b . HasKey ( "Id" ) ;
2023-08-11 01:57:09 +07:00
2023-08-16 15:14:29 +07:00
b . ToTable ( "PlacementOfficers" ) ;
2023-08-11 01:57:09 +07:00
} ) ;
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 ( "เงินเดือน" ) ;
2024-07-01 01:30:24 +07:00
b . Property < double? > ( "AmountOld" )
. HasColumnType ( "double" )
. HasComment ( "เงินเดือน" ) ;
2024-05-16 17:00:47 +07:00
b . Property < string > ( "BloodGroup" )
. HasColumnType ( "longtext" )
. HasComment ( "Id กลุ่มเลือด" ) ;
2023-08-11 01:57:09 +07:00
b . Property < DateTime ? > ( "CitizenDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ออกบัตร" ) ;
2024-05-16 17:00:47 +07:00
b . Property < string > ( "CitizenDistrictId" )
. HasColumnType ( "longtext" )
. HasComment ( "Id เขตที่ออกบัตรประชาชน" ) ;
2023-06-29 10:41:00 +07:00
b . Property < string > ( "CitizenId" )
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
. HasComment ( "เลขประจำตัวประชาชน" ) ;
2024-05-16 17:00:47 +07:00
b . Property < string > ( "CitizenProvinceId" )
. HasColumnType ( "longtext" )
. HasComment ( "Id จังหวัดที่ออกบัตรประชาชน" ) ;
2023-06-29 10:41:00 +07:00
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 ( "ที่อยู่ปัจจุบัน" ) ;
2024-05-16 17:00:47 +07:00
b . Property < string > ( "CurrentDistrictId" )
. HasColumnType ( "longtext" )
. HasComment ( "Id อำเภอที่อยู่ปัจจุบัน" ) ;
2023-06-29 10:41:00 +07:00
2024-05-16 17:00:47 +07:00
b . Property < string > ( "CurrentProvinceId" )
. HasColumnType ( "longtext" )
. HasComment ( "Id จังหวัดที่อยู่ปัจจุบัน" ) ;
2023-06-29 10:41:00 +07:00
2024-05-16 17:00:47 +07:00
b . Property < string > ( "CurrentSubDistrictId" )
. HasColumnType ( "longtext" )
. HasComment ( "Id ตำบลที่อยู่ปัจจุบัน" ) ;
2023-06-29 10:41:00 +07:00
b . Property < string > ( "CurrentZipCode" )
. HasMaxLength ( 10 )
. HasColumnType ( "varchar(10)" )
. HasComment ( "รหัสไปรษณีย์ที่อยู่ปัจจุบัน" ) ;
b . Property < DateTime ? > ( "DateOfBirth" )
. HasMaxLength ( 40 )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันเกิด" ) ;
2023-07-19 10:25:54 +07:00
b . Property < bool? > ( "Draft" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ข้อมูลตำแหน่ง Draft" ) ;
2023-06-29 10:41:00 +07:00
b . Property < string > ( "Email" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "อีเมล" ) ;
2023-07-26 18:45:04 +07:00
b . Property < int? > ( "ExamNumber" )
2023-06-29 10:41:00 +07:00
. HasColumnType ( "int" )
. HasComment ( "ลำดับที่สอบได้" ) ;
2023-07-26 18:45:04 +07:00
b . Property < int? > ( "ExamRound" )
2023-06-29 10:41:00 +07:00
. 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 ( "อาชีพบิดา" ) ;
2024-05-16 17:00:47 +07:00
b . Property < string > ( "FatherPrefix" )
. HasColumnType ( "longtext" )
. HasComment ( "Id คำนำหน้าชื่อบิดา" ) ;
2023-06-29 10:41:00 +07:00
b . Property < string > ( "Firstname" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อ" ) ;
2024-05-16 17:00:47 +07:00
b . Property < string > ( "Gender" )
. HasColumnType ( "longtext" )
. HasComment ( "Id เพศ" ) ;
2023-06-29 21:04:49 +07:00
2023-06-29 10:41:00 +07:00
b . Property < bool? > ( "IsOfficer" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ข้าราชการฯ กทม." ) ;
2024-07-01 01:30:24 +07:00
b . Property < bool? > ( "IsOld" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ข้อมูลเก่า" ) ;
2023-06-29 10:41:00 +07:00
b . Property < string > ( "IsProperty" )
. HasColumnType ( "longtext" )
. HasComment ( "การคัดกรองคุณสมบัติ" ) ;
2023-06-29 21:04:49 +07:00
b . Property < bool > ( "IsRelief" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ผ่อนผัน" ) ;
2023-06-29 10:41:00 +07:00
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 ( "อาชีพคู่สมรส" ) ;
2024-05-16 17:00:47 +07:00
b . Property < string > ( "MarryPrefix" )
. HasColumnType ( "longtext" )
. HasComment ( "Id คำนำหน้าชื่อคู่สมรส" ) ;
2023-06-29 10:41:00 +07:00
b . Property < string > ( "MobilePhone" )
2023-07-26 18:45:04 +07:00
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
2023-06-29 10:41:00 +07:00
. 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 ( "อาชีพมารดา" ) ;
2024-05-16 17:00:47 +07:00
b . Property < string > ( "MotherPrefix" )
. HasColumnType ( "longtext" )
. HasComment ( "Id คำนำหน้าชื่อมารดา" ) ;
2023-06-29 10:41:00 +07:00
b . Property < double? > ( "MouthSalaryAmount" )
. HasColumnType ( "double" )
. HasComment ( "เงินค่าตอบแทนรายเดือน" ) ;
b . Property < string > ( "Nationality" )
. HasMaxLength ( 40 )
. HasColumnType ( "varchar(40)" )
. HasComment ( "สัญชาติ" ) ;
2023-10-02 00:21:07 +07:00
b . Property < string > ( "OccupationGroup" )
2023-06-29 10:41:00 +07:00
. HasColumnType ( "longtext" )
2023-10-02 00:21:07 +07:00
. HasComment ( "ตำแหน่งปัจจุบัน กลุ่ม/ฝ่าย" ) ;
2023-06-29 10:41:00 +07:00
2023-10-02 00:21:07 +07:00
b . Property < string > ( "OccupationOrg" )
2023-06-29 10:41:00 +07:00
. HasColumnType ( "longtext" )
2023-10-02 00:21:07 +07:00
. HasComment ( "ตำแหน่งปัจจุบัน ชื่อตำแหน่ง" ) ;
2023-06-29 10:41:00 +07:00
2023-10-02 00:21:07 +07:00
b . Property < string > ( "OccupationPile" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งปัจจุบัน กอง" ) ;
2023-06-29 10:41:00 +07:00
b . Property < string > ( "OccupationPosition" )
. HasColumnType ( "longtext" )
2023-10-02 00:21:07 +07:00
. HasComment ( "ตำแหน่งปัจจุบัน สังกัด" ) ;
b . Property < string > ( "OccupationPositionType" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งปัจจุบัน ประเภทราชการ" ) ;
b . Property < int? > ( "OccupationSalary" )
. HasColumnType ( "int" )
. HasComment ( "ตำแหน่งปัจจุบัน เงินเดือน" ) ;
2023-06-29 10:41:00 +07:00
b . Property < string > ( "OccupationTelephone" )
2023-10-02 00:21:07 +07:00
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
2023-06-29 10:41:00 +07:00
. HasComment ( "โทรศัพท์ บริษัท" ) ;
b . Property < string > ( "Pass" )
. HasColumnType ( "longtext" )
. HasComment ( "ผลสมัครสอบ" ) ;
b . Property < Guid ? > ( "PlacementId" )
. HasColumnType ( "char(36)" ) ;
2023-06-29 21:04:49 +07:00
b . Property < string > ( "PlacementStatus" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะการบรรจุ" ) ;
2023-06-29 10:41:00 +07:00
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 ( "คะแนนเต็มภาค ค" ) ;
2024-02-22 10:40:24 +07:00
b . Property < int? > ( "PosNumber" )
. HasColumnType ( "int" )
. HasComment ( "ชื่อตำแหน่งเลขที่" ) ;
b . Property < string > ( "PosPath" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อตำแหน่ง" ) ;
2025-01-05 21:57:27 +07:00
b . Property < string > ( "PositionCandidate" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งสอบ" ) ;
2023-07-19 10:25:54 +07:00
2025-03-21 18:08:41 +07:00
b . Property < string > ( "PositionExecutive" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหาร" ) ;
b . Property < string > ( "PositionExecutiveOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหารเดิม" ) ;
2024-10-31 12:54:13 +07:00
b . Property < string > ( "PositionLevel" )
. HasColumnType ( "longtext" )
. HasComment ( "ระดับ" ) ;
2023-06-29 10:41:00 +07:00
b . Property < double? > ( "PositionSalaryAmount" )
. HasColumnType ( "double" )
. HasComment ( "เงินประจำตำแหน่ง" ) ;
2024-10-31 12:54:13 +07:00
b . Property < string > ( "PositionType" )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภทตำแหน่ง" ) ;
2023-06-29 10:41:00 +07:00
2024-05-16 17:00:47 +07:00
b . Property < string > ( "Prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "Id คำนำหน้า" ) ;
2023-06-29 10:41:00 +07:00
2023-09-07 19:03:53 +07:00
b . Property < Guid ? > ( "ProfileImgId" )
. HasColumnType ( "char(36)" ) ;
2023-07-05 19:41:40 +07:00
b . Property < string > ( "Race" )
. HasMaxLength ( 40 )
. HasColumnType ( "varchar(40)" )
. HasComment ( "เชื้อชาติ" ) ;
2023-06-29 10:41:00 +07:00
b . Property < DateTime ? > ( "RecruitDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่บรรจุ" ) ;
b . Property < string > ( "RegistAddress" )
. HasColumnType ( "longtext" )
. HasComment ( "ที่อยู่ตามทะเบียนบ้าน" ) ;
2024-05-16 17:00:47 +07:00
b . Property < string > ( "RegistDistrictId" )
. HasColumnType ( "longtext" )
. HasComment ( "Id อำเภอที่อยู่ตามทะเบียนบ้าน" ) ;
2023-06-29 10:41:00 +07:00
2024-05-16 17:00:47 +07:00
b . Property < string > ( "RegistProvinceId" )
. HasColumnType ( "longtext" )
. HasComment ( "Id จังหวัดที่อยู่ตามทะเบียนบ้าน" ) ;
2023-06-29 10:41:00 +07:00
b . Property < bool? > ( "RegistSame" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ที่อยู่ปัจจุบันเหมือนที่อยู่ตามทะเบียนบ้าน" ) ;
2024-05-16 17:00:47 +07:00
b . Property < string > ( "RegistSubDistrictId" )
. HasColumnType ( "longtext" )
. HasComment ( "Id ตำบลที่อยู่ตามทะเบียนบ้าน" ) ;
2023-06-29 10:41:00 +07:00
b . Property < string > ( "RegistZipCode" )
. HasMaxLength ( 10 )
. HasColumnType ( "varchar(10)" )
. HasComment ( "รหัสไปรษณีย์ที่อยู่ตามทะเบียนบ้าน" ) ;
b . Property < string > ( "RejectReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลสละสิทธิ์" ) ;
2024-05-16 17:00:47 +07:00
b . Property < string > ( "Relationship" )
. HasColumnType ( "longtext" )
. HasComment ( "Id สถานภาพ" ) ;
2023-06-29 10:41:00 +07:00
b . Property < Guid ? > ( "ReliefDocId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "ReliefReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลผ่อนผัน" ) ;
2024-05-16 17:00:47 +07:00
b . Property < string > ( "Religion" )
. HasColumnType ( "longtext" )
. HasComment ( "Id ศาสนา" ) ;
2023-07-05 19:41:40 +07:00
2023-10-08 12:41:53 +07:00
b . Property < string > ( "RemarkHorizontal" )
. HasColumnType ( "longtext" )
. HasComment ( "หมายเหตุแนวนอน" ) ;
b . Property < string > ( "RemarkVertical" )
. HasColumnType ( "longtext" )
. HasComment ( "หมายเหตุแนวตั้ง" ) ;
2023-06-29 21:04:49 +07:00
b . Property < DateTime ? > ( "ReportingDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่รายงานตัว" ) ;
2023-06-29 10:41:00 +07:00
b . Property < string > ( "SalaryClass" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่ง (รายละเอียด)" ) ;
b . Property < string > ( "SalaryRef" )
. HasColumnType ( "longtext" )
. HasComment ( "เอกสารอ้างอิง" ) ;
b . Property < string > ( "Telephone" )
2023-07-26 18:45:04 +07:00
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
2023-06-29 10:41:00 +07:00
. HasComment ( "โทรศัพท์" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "child1" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child1" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child1DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1Dna" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "child1Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "child1IdOld" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1" ) ;
b . Property < string > ( "child1Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child1" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "child1ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child1" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "child1ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child1" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "child2" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child2" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child2DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2Dna" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "child2Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "child2IdOld" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2" ) ;
b . Property < string > ( "child2Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child2" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "child2ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child2" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "child2ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child2" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "child3" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child3" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child3DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3Dna" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "child3Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "child3IdOld" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3" ) ;
b . Property < string > ( "child3Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child3" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "child3ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child3" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "child3ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child3" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "child4" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child4" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child4DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4Dna" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "child4Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "child4IdOld" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4" ) ;
b . Property < string > ( "child4Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child4" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "child4ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child4" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "child4ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child4" ) ;
2025-01-24 17:14:39 +07:00
b . Property < string > ( "commandId" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "โทรศัพท์มือถือ" ) ;
2024-02-20 15:17:05 +07:00
b . Property < int? > ( "node" )
. HasColumnType ( "int" )
. HasComment ( "ระดับโครงสร้าง" ) ;
b . Property < Guid ? > ( "nodeId" )
. HasColumnType ( "char(36)" )
. HasComment ( "id โครงสร้าง" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "nodeIdOld" )
. HasColumnType ( "longtext" )
. HasComment ( "id โครงสร้าง" ) ;
b . Property < string > ( "nodeOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ระดับโครงสร้าง" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "orgRevisionId" )
. HasColumnType ( "longtext" )
. HasComment ( "id revision" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "orgRevisionIdOld" )
. HasColumnType ( "longtext" )
. HasComment ( "id revision" ) ;
2024-02-22 10:40:24 +07:00
b . Property < string > ( "orgTreeShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน" ) ;
b . Property < string > ( "organizationName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "posLevelId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ระดับตำแหน่ง" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "posLevelIdOld" )
. HasColumnType ( "longtext" )
. HasComment ( "id ระดับตำแหน่ง" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "posLevelName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อระดับตำแหน่ง" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "posLevelNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อระดับตำแหน่ง" ) ;
2024-04-30 00:10:07 +07:00
b . Property < int? > ( "posMasterNo" )
. HasColumnType ( "int" )
. HasComment ( "เลขที่ตำแหน่ง" ) ;
2024-07-01 01:30:24 +07:00
b . Property < int? > ( "posMasterNoOld" )
. HasColumnType ( "int" )
. HasComment ( "เลขที่ตำแหน่ง" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "posTypeId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ประเภทตำแหน่ง" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "posTypeIdOld" )
. HasColumnType ( "longtext" )
. HasComment ( "id ประเภทตำแหน่ง" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "posTypeName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อประเภทตำแหน่ง" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "posTypeNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อประเภทตำแหน่ง" ) ;
2025-06-16 14:40:38 +07:00
b . Property < string > ( "positionArea" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา" ) ;
b . Property < string > ( "positionAreaOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา (เก่า)" ) ;
b . Property < string > ( "positionExecutiveField" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร" ) ;
b . Property < string > ( "positionExecutiveFieldOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร (เก่า)" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "positionField" )
. HasColumnType ( "longtext" )
. HasComment ( "สายงาน" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "positionFieldOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สายงาน" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "positionId" )
. HasColumnType ( "longtext" )
2024-02-20 15:17:05 +07:00
. HasComment ( "id ตำแหน่ง" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "positionIdOld" )
. HasColumnType ( "longtext" )
. HasComment ( "id ตำแหน่ง" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "positionName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อตำแหน่งในสายงาน" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "positionNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อตำแหน่งในสายงาน" ) ;
2024-05-01 09:49:36 +07:00
b . Property < string > ( "posmasterId" )
. HasColumnType ( "longtext" )
2024-02-20 15:17:05 +07:00
. HasComment ( "id อัตรากำลัง" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "posmasterIdOld" )
. HasColumnType ( "longtext" )
. HasComment ( "id อัตรากำลัง" ) ;
2024-06-24 09:33:18 +07:00
b . Property < string > ( "profileId" )
. HasColumnType ( "longtext" )
. HasComment ( "profileId" ) ;
2025-01-24 17:14:39 +07:00
b . Property < string > ( "refCommandCode" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "โทรศัพท์มือถือ" ) ;
b . Property < DateTime ? > ( "refCommandDate" )
. HasMaxLength ( 200 )
. HasColumnType ( "datetime(6)" )
. HasComment ( "โทรศัพท์มือถือ" ) ;
b . Property < string > ( "refCommandName" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "โทรศัพท์มือถือ" ) ;
b . Property < string > ( "refCommandNo" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "โทรศัพท์มือถือ" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "root" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน root" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "rootDnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน rootDna" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "rootId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "rootIdOld" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root" ) ;
b . Property < string > ( "rootOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน root" ) ;
2024-04-30 00:10:07 +07:00
b . Property < string > ( "rootShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน root" ) ;
2024-07-01 01:30:24 +07:00
b . Property < string > ( "rootShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน root" ) ;
2025-01-24 17:14:39 +07:00
b . Property < string > ( "templateDoc" )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "โทรศัพท์มือถือ" ) ;
2024-05-01 09:49:36 +07:00
b . Property < string > ( "typeCommand" )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภทคำสั่ง" ) ;
2023-06-29 10:41:00 +07:00
b . HasKey ( "Id" ) ;
b . HasIndex ( "PlacementId" ) ;
2023-09-07 19:03:53 +07:00
b . HasIndex ( "ProfileImgId" ) ;
2023-06-29 10:41:00 +07:00
b . HasIndex ( "ReliefDocId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PlacementProfiles" ) ;
2023-06-29 10:41:00 +07:00
} ) ;
2023-10-08 12:41:53 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementProfileDoc" , 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 < Guid > ( "DocumentId" )
. 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 > ( "PlacementProfileId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "DocumentId" ) ;
b . HasIndex ( "PlacementProfileId" ) ;
b . ToTable ( "PlacementProfileDocs" ) ;
} ) ;
2023-08-05 17:53:07 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementReceive" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
2023-08-16 02:35:43 +07:00
b . Property < double? > ( "Amount" )
. HasColumnType ( "double" )
. HasComment ( "เงินเดือน" ) ;
2023-08-11 01:57:09 +07:00
b . Property < double? > ( "AmountOld" )
. HasColumnType ( "double" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เงินเดือน" ) ;
2023-08-29 17:41:16 +07:00
b . Property < Guid ? > ( "AvatarId" )
. HasColumnType ( "char(36)" ) ;
2024-05-23 17:07:55 +07:00
b . Property < string > ( "BloodGroup" )
. HasColumnType ( "longtext" )
. HasComment ( "Id กลุ่มเลือด" ) ;
2023-08-05 17:53:07 +07:00
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 > ( "DateOfBirth" )
. HasMaxLength ( 40 )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันเกิด" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "EducationOld" )
. HasColumnType ( "longtext" )
. HasComment ( "วุฒิ/สาขาเดิม" ) ;
2024-05-23 17:07:55 +07:00
b . Property < string > ( "Gender" )
. HasColumnType ( "longtext" )
. HasComment ( "Id เพศ" ) ;
2023-08-05 17:53:07 +07:00
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 > ( "Nationality" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "สัญชาติ" ) ;
2024-05-03 17:39:10 +07:00
b . Property < string > ( "OrganizationOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัดเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "OrganizationPositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัดเดิม" ) ;
2025-03-24 14:40:46 +07:00
b . Property < string > ( "PositionExecutive" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหาร" ) ;
2025-03-21 14:31:45 +07:00
b . Property < string > ( "PositionExecutiveOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหารเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "PositionLevelOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ระดับ" ) ;
b . Property < string > ( "PositionNumberOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เลขที่" ) ;
2024-05-03 17:39:10 +07:00
b . Property < string > ( "PositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "PositionTypeOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท" ) ;
2023-08-05 17:53:07 +07:00
b . Property < string > ( "Race" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "เชื้อชาติ" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลที่รับโอนราชการ" ) ;
2024-05-23 17:07:55 +07:00
b . Property < string > ( "Relationship" )
. HasColumnType ( "longtext" )
. HasComment ( "Id สถานะภาพ" ) ;
2023-08-05 17:53:07 +07:00
2024-05-23 17:07:55 +07:00
b . Property < string > ( "Religion" )
. HasColumnType ( "longtext" )
. HasComment ( "Id ศาสนา" ) ;
2023-08-05 17:53:07 +07:00
2024-05-09 12:53:07 +07:00
b . Property < DateTime ? > ( "ReportingDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่บรรจุ" ) ;
2023-08-05 17:53:07 +07:00
b . Property < string > ( "Status" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะคำขอ" ) ;
b . Property < string > ( "TelephoneNumber" )
. HasMaxLength ( 50 )
. HasColumnType ( "varchar(50)" )
. HasComment ( "เบอร์โทร" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child1" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child1" ) ;
2023-08-05 17:53:07 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child1DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1Dna" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child1Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1" ) ;
2023-08-29 17:41:16 +07:00
2024-05-03 17:39:10 +07:00
b . Property < string > ( "child1Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child1 old" ) ;
b . Property < string > ( "child1OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1 old" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child1ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child1" ) ;
2023-08-05 17:53:07 +07:00
2024-05-03 17:39:10 +07:00
b . Property < string > ( "child1ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child1 old" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child2" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child2" ) ;
2023-08-05 17:53:07 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child2DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2Dna" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child2Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2" ) ;
2023-08-05 17:53:07 +07:00
2024-05-03 17:39:10 +07:00
b . Property < string > ( "child2Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child2 old" ) ;
b . Property < string > ( "child2OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2 old" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child2ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child2" ) ;
2023-08-05 17:53:07 +07:00
2024-05-03 17:39:10 +07:00
b . Property < string > ( "child2ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child2 old" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child3" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child3" ) ;
2023-08-05 17:53:07 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child3DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3Dna" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child3Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3" ) ;
2023-08-05 17:53:07 +07:00
2024-05-03 17:39:10 +07:00
b . Property < string > ( "child3Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child3 old" ) ;
b . Property < string > ( "child3OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3 old" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child3ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child3" ) ;
2023-08-05 17:53:07 +07:00
2024-05-03 17:39:10 +07:00
b . Property < string > ( "child3ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child3 old" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child4" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child4" ) ;
2023-08-05 17:53:07 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child4DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4Dna" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child4Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4" ) ;
2023-08-05 17:53:07 +07:00
2024-05-03 17:39:10 +07:00
b . Property < string > ( "child4Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child4 old" ) ;
b . Property < string > ( "child4OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4 old" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child4ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child4" ) ;
2023-08-05 17:53:07 +07:00
2024-05-03 17:39:10 +07:00
b . Property < string > ( "child4ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child4 old" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "citizenId" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขบัตรประชาชน" ) ;
2023-08-05 17:53:07 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "firstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อ" ) ;
2023-08-05 17:53:07 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "lastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุล" ) ;
2023-08-05 17:53:07 +07:00
2024-05-02 09:31:38 +07:00
b . Property < int? > ( "node" )
. HasColumnType ( "int" )
. HasComment ( "ระดับโครงสร้าง" ) ;
b . Property < Guid ? > ( "nodeId" )
2023-08-05 17:53:07 +07:00
. HasColumnType ( "char(36)" )
2024-05-02 09:31:38 +07:00
. HasComment ( "id โครงสร้าง" ) ;
2023-08-05 17:53:07 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "orgRevisionId" )
. HasColumnType ( "longtext" )
. HasComment ( "id revision" ) ;
2023-08-05 17:53:07 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "posLevelId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ระดับตำแหน่ง" ) ;
2023-08-05 17:53:07 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "posLevelName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อระดับตำแหน่ง" ) ;
2023-08-05 17:53:07 +07:00
2024-05-03 17:39:10 +07:00
b . Property < string > ( "posLevelNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อระดับตำแหน่ง old" ) ;
b . Property < string > ( "posLevelOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ระดับตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
b . Property < int? > ( "posMasterNo" )
. HasColumnType ( "int" )
. HasComment ( "เลขที่ตำแหน่ง" ) ;
2023-08-05 17:53:07 +07:00
2024-05-03 17:39:10 +07:00
b . Property < int? > ( "posMasterNoOld" )
. HasColumnType ( "int" )
. HasComment ( "เลขที่ตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "posTypeId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ประเภทตำแหน่ง" ) ;
2023-08-05 17:53:07 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "posTypeName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อประเภทตำแหน่ง" ) ;
2024-05-03 17:39:10 +07:00
b . Property < string > ( "posTypeNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อประเภทตำแหน่ง old" ) ;
b . Property < string > ( "posTypeOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ประเภทตำแหน่ง old" ) ;
b . Property < string > ( "position" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อตำแหน่งในสายงาน" ) ;
2025-06-16 14:40:38 +07:00
b . Property < string > ( "positionArea" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา" ) ;
b . Property < string > ( "positionAreaOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา (เก่า)" ) ;
b . Property < string > ( "positionExecutiveField" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร" ) ;
b . Property < string > ( "positionExecutiveFieldOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร (เก่า)" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "positionField" )
. HasColumnType ( "longtext" )
. HasComment ( "สายงาน" ) ;
b . Property < string > ( "positionId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ตำแหน่ง" ) ;
b . Property < string > ( "posmasterId" )
. HasColumnType ( "longtext" )
. HasComment ( "id อัตรากำลัง" ) ;
b . Property < string > ( "prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < string > ( "profileId" )
. HasColumnType ( "longtext" )
. HasComment ( "profile Id" ) ;
b . Property < string > ( "root" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน root" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "rootDnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน rootDna" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "rootId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root" ) ;
2024-05-03 17:39:10 +07:00
b . Property < string > ( "rootOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน root old" ) ;
b . Property < string > ( "rootOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root old" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "rootShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน root" ) ;
2024-05-03 17:39:10 +07:00
b . Property < string > ( "rootShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน root old" ) ;
2024-05-02 09:31:38 +07:00
b . HasKey ( "Id" ) ;
b . HasIndex ( "AvatarId" ) ;
b . ToTable ( "PlacementReceives" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc" , 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 < Guid > ( "DocumentId" )
. 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 ที่แก้ไขข้อมูลล่าสุด" ) ;
2023-08-05 17:53:07 +07:00
b . Property < DateTime ? > ( "LastUpdatedAt" )
. HasColumnType ( "datetime(6)" )
. HasColumnOrder ( 102 )
. HasComment ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
b . Property < Guid > ( "PlacementReceiveId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "DocumentId" ) ;
b . HasIndex ( "PlacementReceiveId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PlacementReceiveDocs" ) ;
2023-08-05 17:53:07 +07:00
} ) ;
2023-08-11 01:57:09 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementRelocation" , b = >
2023-08-05 17:53:07 +07:00
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
2023-08-16 02:35:43 +07:00
b . Property < double? > ( "Amount" )
. HasColumnType ( "double" )
. HasComment ( "เงินเดือน" ) ;
2023-08-09 23:34:25 +07:00
b . Property < double? > ( "AmountOld" )
. HasColumnType ( "double" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เงินเดือน" ) ;
2023-08-11 01:57:09 +07:00
b . Property < Guid ? > ( "BloodGroupId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "CitizenId" )
. IsRequired ( )
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
. HasComment ( "เลขประจำตัวประชาชน" ) ;
2023-08-05 17:53:07 +07:00
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 ที่สร้างข้อมูล" ) ;
2023-08-11 01:57:09 +07:00
b . Property < DateTime > ( "DateOfBirth" )
. HasMaxLength ( 40 )
2023-08-09 23:34:25 +07:00
. HasColumnType ( "datetime(6)" )
2023-08-11 01:57:09 +07:00
. HasComment ( "วันเกิด" ) ;
b . Property < string > ( "EducationOld" )
. HasColumnType ( "longtext" )
. HasComment ( "วุฒิ/สาขาเดิม" ) ;
b . Property < string > ( "Firstname" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อ" ) ;
b . Property < Guid ? > ( "GenderId" )
. HasColumnType ( "char(36)" ) ;
2023-08-09 23:34:25 +07:00
2023-08-05 17:53:07 +07:00
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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "Lastname" )
. IsRequired ( )
2023-08-05 17:53:07 +07:00
. HasColumnType ( "longtext" )
2023-08-11 01:57:09 +07:00
. HasComment ( "นามสกุล" ) ;
b . Property < string > ( "Nationality" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "สัญชาติ" ) ;
2023-08-05 17:53:07 +07:00
2023-08-11 01:57:09 +07:00
b . Property < Guid ? > ( "OrganizationPositionId" )
2023-08-09 23:34:25 +07:00
. HasColumnType ( "char(36)" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "OrganizationPositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัดเดิม" ) ;
b . Property < Guid ? > ( "PositionLevelId" )
2023-08-09 23:34:25 +07:00
. HasColumnType ( "char(36)" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "PositionLevelOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ระดับ" ) ;
b . Property < Guid ? > ( "PositionLineId" )
2023-08-09 23:34:25 +07:00
. HasColumnType ( "char(36)" ) ;
2023-08-11 01:57:09 +07:00
b . Property < Guid ? > ( "PositionNumberId" )
2023-08-09 23:34:25 +07:00
. HasColumnType ( "char(36)" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "PositionNumberOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เลขที่" ) ;
b . Property < Guid ? > ( "PositionPathId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "PositionPathSideId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "PositionTypeId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "PositionTypeOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท" ) ;
b . Property < Guid > ( "PrefixId" )
2023-08-05 17:53:07 +07:00
. HasColumnType ( "char(36)" ) ;
2023-08-19 21:03:17 +07:00
b . Property < Guid > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "Race" )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "เชื้อชาติ" ) ;
2023-08-05 17:53:07 +07:00
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
2023-08-11 01:57:09 +07:00
. HasComment ( "เหตุผลที่ย้ายราชการ" ) ;
b . Property < DateTime ? > ( "RecruitDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่บรรจุ" ) ;
b . Property < Guid ? > ( "RelationshipId" )
. HasColumnType ( "char(36)" ) ;
b . Property < Guid ? > ( "ReligionId" )
. HasColumnType ( "char(36)" ) ;
2023-08-05 17:53:07 +07:00
b . Property < string > ( "Status" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะคำขอ" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "TelephoneNumber" )
. HasMaxLength ( 50 )
. HasColumnType ( "varchar(50)" )
. HasComment ( "เบอร์โทร" ) ;
2023-08-05 17:53:07 +07:00
b . HasKey ( "Id" ) ;
2023-08-11 01:57:09 +07:00
b . HasIndex ( "BloodGroupId" ) ;
2023-08-09 23:34:25 +07:00
2023-08-11 01:57:09 +07:00
b . HasIndex ( "GenderId" ) ;
2023-08-09 23:34:25 +07:00
2023-08-11 01:57:09 +07:00
b . HasIndex ( "OrganizationPositionId" ) ;
2023-08-09 23:34:25 +07:00
2023-08-11 01:57:09 +07:00
b . HasIndex ( "PositionLevelId" ) ;
2023-08-09 23:34:25 +07:00
2023-08-11 01:57:09 +07:00
b . HasIndex ( "PositionLineId" ) ;
2023-08-05 17:53:07 +07:00
2023-08-11 01:57:09 +07:00
b . HasIndex ( "PositionNumberId" ) ;
b . HasIndex ( "PositionPathId" ) ;
b . HasIndex ( "PositionPathSideId" ) ;
b . HasIndex ( "PositionTypeId" ) ;
b . HasIndex ( "PrefixId" ) ;
2023-08-19 21:03:17 +07:00
b . HasIndex ( "ProfileId" ) ;
2023-08-11 01:57:09 +07:00
b . HasIndex ( "RelationshipId" ) ;
b . HasIndex ( "ReligionId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PlacementRelocations" ) ;
2023-08-05 17:53:07 +07:00
} ) ;
2023-08-11 01:57:09 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc" , b = >
2023-08-05 17:53:07 +07:00
{
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 < Guid > ( "DocumentId" )
. 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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2023-08-11 01:57:09 +07:00
b . Property < Guid > ( "PlacementRelocationId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "DocumentId" ) ;
b . HasIndex ( "PlacementRelocationId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PlacementRelocationDocs" ) ;
2023-08-11 01:57:09 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementRepatriation" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < double? > ( "AmountOld" )
. HasColumnType ( "double" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เงินเดือน" ) ;
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 ? > ( "Date" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ตั้งแต่วันที่" ) ;
2023-09-27 20:36:13 +07:00
b . Property < DateTime ? > ( "DateRepatriation" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ส่งตัวกลับตั้งแต่วันที่" ) ;
2023-08-11 01:57:09 +07:00
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 > ( "Organization" )
. HasColumnType ( "longtext" )
. HasComment ( "หน่วยงานที่ส่งตัวกลับไป" ) ;
2024-05-03 17:39:10 +07:00
b . Property < string > ( "OrganizationOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัดเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "OrganizationPositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัด" ) ;
2025-03-21 14:31:45 +07:00
b . Property < string > ( "PositionExecutiveOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหารเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "PositionLevelOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ระดับ" ) ;
b . Property < string > ( "PositionNumberOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เลขที่" ) ;
2024-05-03 17:39:10 +07:00
b . Property < string > ( "PositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "PositionTypeOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท" ) ;
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผล" ) ;
b . Property < string > ( "Status" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะคำขอ" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child1DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1Dna old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1Old" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child1 old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1OldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child1 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1ShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child1 old" ) ;
2024-05-02 09:31:38 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child2DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2Dna old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2Old" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child2 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2OldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child2 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2ShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child2 old" ) ;
2024-05-02 09:31:38 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child3DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3Dna old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3Old" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child3 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3OldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child3 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3ShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child3 old" ) ;
2024-05-02 09:31:38 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child4DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4Dna old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4Old" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child4 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4OldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child4 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4ShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child4 old" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "citizenId" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขบัตรประชาชน" ) ;
b . Property < string > ( "firstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "lastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุล" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posLevelNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อระดับตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posLevelOldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id ระดับตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < int? > ( "posMasterNoOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "int" )
2024-05-24 01:12:27 +07:00
. HasComment ( "เลขที่ตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posTypeNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อประเภทตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posTypeOldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id ประเภทตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2025-06-16 14:40:38 +07:00
b . Property < string > ( "positionArea" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา" ) ;
b . Property < string > ( "positionAreaOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา (เก่า)" ) ;
b . Property < string > ( "positionExecutiveField" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร" ) ;
b . Property < string > ( "positionExecutiveFieldOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร (เก่า)" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < string > ( "profileId" )
. HasColumnType ( "longtext" )
. HasComment ( "profile Id" ) ;
2025-04-01 11:08:27 +07:00
b . Property < Guid ? > ( "refId" )
. HasColumnType ( "char(36)" )
. HasComment ( "Id อ้างอิงช่วยราช" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "rootDnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน rootDna old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน root old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootOldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน root old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน root old" ) ;
2024-05-02 09:31:38 +07:00
b . HasKey ( "Id" ) ;
2023-08-11 01:57:09 +07:00
2023-08-16 15:14:29 +07:00
b . ToTable ( "PlacementRepatriations" ) ;
2023-08-11 01:57:09 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementTransfer" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < double? > ( "AmountOld" )
. HasColumnType ( "double" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เงินเดือน" ) ;
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 ? > ( "Date" )
. 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 > ( "Organization" )
. HasColumnType ( "longtext" )
2024-05-17 18:12:45 +07:00
. HasComment ( "หน่วยงานที่ส่งตัวกลับไป" ) ;
b . Property < string > ( "OrganizationOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัดเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "OrganizationPositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัด" ) ;
2025-03-21 14:31:45 +07:00
b . Property < string > ( "PositionExecutiveOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหารเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "PositionLevelOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ระดับ" ) ;
b . Property < string > ( "PositionNumberOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เลขที่" ) ;
2024-05-17 18:12:45 +07:00
b . Property < string > ( "PositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "PositionTypeOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท" ) ;
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผล" ) ;
b . Property < string > ( "Status" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะคำขอ" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child1DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1Dna old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1Old" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child1 old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1OldId" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child1 old" ) ;
2024-05-17 18:12:45 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1ShortNameOld" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child1 old" ) ;
2024-05-17 18:12:45 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child2DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2Dna old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2Old" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child2 old" ) ;
2024-05-17 18:12:45 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2OldId" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child2 old" ) ;
2024-05-17 18:12:45 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2ShortNameOld" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child2 old" ) ;
2024-05-17 18:12:45 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child3DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3Dna old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3Old" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child3 old" ) ;
2024-05-17 18:12:45 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3OldId" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child3 old" ) ;
2024-05-17 18:12:45 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3ShortNameOld" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child3 old" ) ;
2024-05-17 18:12:45 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child4DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4Dna old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4Old" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child4 old" ) ;
2024-05-17 18:12:45 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4OldId" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child4 old" ) ;
2024-05-17 18:12:45 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4ShortNameOld" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child4 old" ) ;
2024-05-17 18:12:45 +07:00
b . Property < string > ( "citizenId" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขบัตรประชาชน" ) ;
b . Property < string > ( "firstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "lastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุล" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posLevelNameOld" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อระดับตำแหน่ง old" ) ;
2024-05-17 18:12:45 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posLevelOldId" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id ระดับตำแหน่ง old" ) ;
2024-05-17 18:12:45 +07:00
2024-05-24 01:12:27 +07:00
b . Property < int? > ( "posMasterNoOld" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "int" )
2024-05-24 01:12:27 +07:00
. HasComment ( "เลขที่ตำแหน่ง old" ) ;
2024-05-17 18:12:45 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posTypeNameOld" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อประเภทตำแหน่ง old" ) ;
2024-05-17 18:12:45 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posTypeOldId" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id ประเภทตำแหน่ง old" ) ;
2024-05-17 18:12:45 +07:00
2025-06-16 14:40:38 +07:00
b . Property < string > ( "positionArea" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา" ) ;
b . Property < string > ( "positionAreaOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา (เก่า)" ) ;
b . Property < string > ( "positionExecutiveField" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร" ) ;
b . Property < string > ( "positionExecutiveFieldOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร (เก่า)" ) ;
2024-05-17 18:12:45 +07:00
b . Property < string > ( "prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < string > ( "profileId" )
. HasColumnType ( "longtext" )
. HasComment ( "profile Id" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "rootDnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน rootDna old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootOld" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน root old" ) ;
2024-05-17 18:12:45 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootOldId" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน root old" ) ;
2024-05-17 18:12:45 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootShortNameOld" )
2024-05-17 18:12:45 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน root old" ) ;
2024-05-17 18:12:45 +07:00
b . HasKey ( "Id" ) ;
2023-08-11 01:57:09 +07:00
2023-08-16 15:14:29 +07:00
b . ToTable ( "PlacementTransfers" ) ;
2023-08-11 01:57:09 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementTransferDoc" , 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 < Guid > ( "DocumentId" )
. 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 > ( "PlacementTransferId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "DocumentId" ) ;
b . HasIndex ( "PlacementTransferId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PlacementTransferDocs" ) ;
2023-08-11 01:57:09 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementType" , 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" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "PlacementTypes" ) ;
2023-08-11 01:57:09 +07:00
} ) ;
2023-09-08 15:23:41 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Probation.CronjobNotiProbation" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "Body" )
. IsRequired ( )
. HasColumnType ( "text" )
. HasComment ( "รายละเอียดข้อความ" ) ;
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 > ( "IsSendInbox" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ส่งกล่องข้อความหรือไม่?" ) ;
b . Property < bool > ( "IsSendMail" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ส่งอีเมล์หรือไม่?" ) ;
b . Property < bool > ( "IsSendNoti" )
. 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 > ( "Payload" )
. IsRequired ( )
. HasColumnType ( "text" )
. HasComment ( "สิงที่แนบมาด้วย" ) ;
b . Property < DateTime > ( "ReceiveDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ได้รับ" ) ;
b . Property < Guid > ( "ReceiverUserId" )
. HasColumnType ( "char(36)" )
. HasComment ( "รหัสผู้รับข้อความ" ) ;
b . Property < string > ( "Subject" )
. IsRequired ( )
. HasMaxLength ( 200 )
. HasColumnType ( "varchar(200)" )
. HasComment ( "หัวเรื่อง" ) ;
b . HasKey ( "Id" ) ;
b . ToTable ( "CronjobNotiProbations" ) ;
} ) ;
2023-08-11 01:57:09 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementDeceased" , 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 ? > ( "Date" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่เสียชีวิต" ) ;
2023-09-14 00:10:03 +07:00
b . Property < Guid ? > ( "DocumentForwardId" )
. HasColumnType ( "char(36)" ) ;
2023-08-11 01:57:09 +07:00
b . Property < Guid ? > ( "DocumentId" )
. HasColumnType ( "char(36)" ) ;
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 > ( "Location" )
. HasColumnType ( "longtext" )
. HasComment ( "สถานที่ออกใบมรณบัตร" ) ;
b . Property < string > ( "Number" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขที่ใบมรณบัตร" ) ;
2025-03-21 14:31:45 +07:00
b . Property < string > ( "PositionExecutiveOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหารเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลการเสียชีวิต" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child1" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child1" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child1DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child1Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1" ) ;
b . Property < string > ( "child1ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child1" ) ;
b . Property < string > ( "child2" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child2" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child2DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child2Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2" ) ;
b . Property < string > ( "child2ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child2" ) ;
b . Property < string > ( "child3" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child3" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child3DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child3Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3" ) ;
b . Property < string > ( "child3ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child3" ) ;
b . Property < string > ( "child4" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child4" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child4DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "child4Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4" ) ;
b . Property < string > ( "child4ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child4" ) ;
b . Property < string > ( "citizenId" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขบัตรประชาชน" ) ;
b . Property < string > ( "firstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "lastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุล" ) ;
b . Property < string > ( "posLevelId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ระดับตำแหน่ง" ) ;
b . Property < string > ( "posLevelName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อระดับตำแหน่ง" ) ;
b . Property < int? > ( "posMasterNo" )
. HasColumnType ( "int" )
. HasComment ( "เลขที่ตำแหน่ง" ) ;
b . Property < string > ( "posTypeId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ประเภทตำแหน่ง" ) ;
b . Property < string > ( "posTypeName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อประเภทตำแหน่ง" ) ;
b . Property < string > ( "position" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อตำแหน่งในสายงาน" ) ;
2025-06-16 14:40:38 +07:00
b . Property < string > ( "positionArea" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา" ) ;
b . Property < string > ( "positionAreaOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา (เก่า)" ) ;
b . Property < string > ( "positionExecutiveField" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร" ) ;
b . Property < string > ( "positionExecutiveFieldOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร (เก่า)" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < string > ( "profileId" )
. HasColumnType ( "longtext" )
. HasComment ( "profile Id" ) ;
2025-01-15 16:14:54 +07:00
b . Property < string > ( "profileType" )
. HasColumnType ( "longtext" )
. HasComment ( "สถานภาพ (OFFICER->ข้าราชการ EMPLOYEE->ลูกจ้างประจำ)" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "root" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน root" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "rootDnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "rootId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root" ) ;
b . Property < string > ( "rootShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน root" ) ;
2023-08-11 01:57:09 +07:00
b . HasKey ( "Id" ) ;
2023-09-14 00:10:03 +07:00
b . HasIndex ( "DocumentForwardId" ) ;
2023-08-11 01:57:09 +07:00
b . HasIndex ( "DocumentId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "RetirementDeceaseds" ) ;
2023-08-11 01:57:09 +07:00
} ) ;
2023-09-01 15:21:27 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "CitizenId" )
. IsRequired ( )
. HasMaxLength ( 13 )
. HasColumnType ( "varchar(13)" )
. HasComment ( "เลขประจำตัวประชาชน" ) ;
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 ที่สร้างข้อมูล" ) ;
2023-09-13 21:51:57 +07:00
b . Property < Guid ? > ( "DocumentId" )
. HasColumnType ( "char(36)" ) ;
2023-09-01 15:21:27 +07:00
b . Property < string > ( "FirstName" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. HasComment ( "ชื่อ" ) ;
b . Property < bool > ( "IsSendInbox" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ส่งกล่องข้อความหรือไม่?" ) ;
b . Property < bool > ( "IsSendMail" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ส่งอีเมล์หรือไม่?" ) ;
b . Property < bool > ( "IsSendNotification" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ส่งแจ้งเตือนหรือไม่?" ) ;
b . Property < string > ( "LastName" )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasColumnType ( "varchar(100)" )
. 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 > ( "OrganizationName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงานของผู้รับสำเนาคำสั่ง" ) ;
b . Property < string > ( "PositionName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อตำแหน่งของผู้รับสำเนาคำสั่ง" ) ;
b . Property < string > ( "Prefix" )
. IsRequired ( )
. HasMaxLength ( 50 )
. HasColumnType ( "varchar(50)" )
. HasComment ( "คำนำหน้านาม" ) ;
b . Property < Guid > ( "RetirementDeceasedId" )
. HasColumnType ( "char(36)" ) ;
2024-05-21 14:31:29 +07:00
b . Property < string > ( "profileId" )
. HasColumnType ( "longtext" )
. HasComment ( "profile Id" ) ;
2023-09-01 15:21:27 +07:00
b . HasKey ( "Id" ) ;
2023-09-13 21:51:57 +07:00
b . HasIndex ( "DocumentId" ) ;
2023-09-01 15:21:27 +07:00
b . HasIndex ( "RetirementDeceasedId" ) ;
b . ToTable ( "RetirementDeceasedNotis" ) ;
} ) ;
2023-08-11 01:57:09 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementDischarge" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < double? > ( "AmountOld" )
. HasColumnType ( "double" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เงินเดือน" ) ;
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 ? > ( "Date" )
. 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 > ( "Organization" )
. HasColumnType ( "longtext" )
. HasComment ( "หน่วยงานที่ปลดออกไป" ) ;
b . Property < string > ( "OrganizationPositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัด" ) ;
b . Property < string > ( "PositionLevelOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ระดับ" ) ;
b . Property < string > ( "PositionNumberOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เลขที่" ) ;
b . Property < string > ( "PositionTypeOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท" ) ;
b . Property < Guid > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผล" ) ;
b . Property < string > ( "Status" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะคำขอ" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "RetirementDischarges" ) ;
2023-08-11 01:57:09 +07:00
} ) ;
2025-06-20 01:24:57 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementEmployeeQuestion" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "Adjust" )
. HasColumnType ( "longtext" )
. HasComment ( "อะไรคือสิ่งที่ท่านเห็นว่าควรปรับปรุง" ) ;
b . Property < string > ( "AdjustOther" )
. HasColumnType ( "longtext" )
. HasComment ( "อื่นๆ อะไรคือสิ่งที่ท่านเห็นว่าควรปรับปรุง" ) ;
b . Property < DateTime ? > ( "AppointDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "กําหนดวันนัดหมายเพื่อทําการสัมภาษณ์การลาออก" ) ;
b . Property < string > ( "Comment" )
. HasColumnType ( "longtext" )
. HasComment ( "ความคิดเห็น" ) ;
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 > ( "ExitFactor" )
. HasColumnType ( "longtext" )
. HasComment ( "ปัจจัยใดที่ทำให้ท่านตัดสินใจลาออกจากราชการ" ) ;
b . Property < string > ( "ExitFactorOther" )
. HasColumnType ( "longtext" )
. HasComment ( "อื่นๆ ปัจจัยใดที่ทำให้ท่านตัดสินใจลาออกจากราชการ" ) ;
b . Property < bool? > ( "FutureWork" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "หากท่านมีโอกาสในอนาคต ท่านอยากกลับมาร่วมงานกับกรุงเทพมหานครหรือไม่" ) ;
b . Property < string > ( "FutureWorkReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลหากท่านมีโอกาสในอนาคต ท่านอยากกลับมาร่วมงานกับกรุงเทพมหานครหรือไม่" ) ;
b . Property < bool? > ( "Havejob" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ท่านมีงานใหม่หรือไม่และอะไรคือสิ่งที่ที่ทำงานใหม่ให้กับท่าน ซึ่งท่านรู้สึกว่าเป็นที่น่าพอใจมากกว่าการปฏิบัติราชการกับกรุงเทพมหานคร" ) ;
b . Property < string > ( "HavejobReason" )
. 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 > ( "NotExitFactor" )
. HasColumnType ( "longtext" )
. HasComment ( "ปัจจัยใดที่จะช่วยทำให้ท่านเปลี่ยนใจ ไม่อยากลาออกจากการปฏิบัติราชการกับกรุงเทพมหานคร" ) ;
b . Property < string > ( "RealReason" )
. HasColumnType ( "longtext" )
. HasComment ( "โปรดระบุสาเหตุที่แท้จริง ที่ทำให้ท่านตัดสินใจลาออกจากการปฏิบัติราชการกับกรุงเทพมหานคร" ) ;
b . Property < string > ( "ReasonWork" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุใดท่านจึงตัดสินใจร่วมงานกับกรุงเทพมหานคร" ) ;
b . Property < string > ( "ReasonWorkOther" )
. HasColumnType ( "longtext" )
. HasComment ( "อื่นๆ เหตุใดท่านจึงตัดสินใจร่วมงานกับกรุงเทพมหานคร" ) ;
b . Property < Guid > ( "RetirementResignEmployeeId" )
. HasColumnType ( "char(36)" ) ;
b . Property < int? > ( "Score1" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 1" ) ;
b . Property < int? > ( "Score10" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 10" ) ;
b . Property < int? > ( "Score2" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 2" ) ;
b . Property < int? > ( "Score3" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 3" ) ;
b . Property < int? > ( "Score4" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 4" ) ;
b . Property < int? > ( "Score5" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 5" ) ;
b . Property < int? > ( "Score6" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 6" ) ;
b . Property < int? > ( "Score7" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 7" ) ;
b . Property < int? > ( "Score8" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 8" ) ;
b . Property < int? > ( "Score9" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 9" ) ;
b . Property < int? > ( "ScoreTotal" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนรวม" ) ;
b . Property < bool? > ( "SuggestFriends" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ท่านจะแนะนำเพื่อนให้มาร่วมงานกับกรุงเทพมหานครหรือไม่" ) ;
b . Property < string > ( "SuggestFriendsReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลท่านจะแนะนำเพื่อนให้มาร่วมงานกับกรุงเทพมหานครหรือไม่" ) ;
b . Property < string > ( "Suggestion" )
. HasColumnType ( "longtext" )
. HasComment ( "ความคิดเห็นและข้อเสนอแนะอื่น ๆ " ) ;
b . Property < int? > ( "TimeThink" )
. HasColumnType ( "int" )
. HasComment ( "สำหรับการลาออกในครั้งนี้ ท่านได้คิดทบทวนอย่างจริงจังเป็นระยะเวลานานเท่าใด" ) ;
b . Property < string > ( "child1" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child1 " ) ;
b . Property < string > ( "child1DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1 " ) ;
b . Property < string > ( "child1Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1 " ) ;
b . Property < string > ( "child2" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child2 " ) ;
b . Property < string > ( "child2DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2 " ) ;
b . Property < string > ( "child2Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2 " ) ;
b . Property < string > ( "child3" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child3 " ) ;
b . Property < string > ( "child3DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3 " ) ;
b . Property < string > ( "child3Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3 " ) ;
b . Property < string > ( "child4" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child4 " ) ;
b . Property < string > ( "child4DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4 " ) ;
b . Property < string > ( "child4Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4 " ) ;
b . Property < string > ( "root" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน root " ) ;
b . Property < string > ( "rootDnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root " ) ;
b . Property < string > ( "rootId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root " ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "RetirementResignEmployeeId" ) ;
b . ToTable ( "RetirementEmployeeQuestions" ) ;
} ) ;
2023-08-11 01:57:09 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementExpulsion" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < double? > ( "AmountOld" )
. HasColumnType ( "double" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เงินเดือน" ) ;
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 ? > ( "Date" )
. 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 > ( "Organization" )
. HasColumnType ( "longtext" )
. HasComment ( "หน่วยงานที่ไล่ออกไป" ) ;
b . Property < string > ( "OrganizationPositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัด" ) ;
b . Property < string > ( "PositionLevelOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ระดับ" ) ;
b . Property < string > ( "PositionNumberOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เลขที่" ) ;
b . Property < string > ( "PositionTypeOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท" ) ;
b . Property < Guid > ( "ProfileId" )
2023-08-05 17:53:07 +07:00
. HasColumnType ( "char(36)" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผล" ) ;
2023-08-05 17:53:07 +07:00
2023-08-11 01:57:09 +07:00
b . Property < string > ( "Status" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะคำขอ" ) ;
2023-08-05 17:53:07 +07:00
2023-08-11 01:57:09 +07:00
b . HasKey ( "Id" ) ;
2023-08-05 17:53:07 +07:00
2023-08-11 01:57:09 +07:00
b . HasIndex ( "ProfileId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "RetirementExpulsions" ) ;
2023-08-05 17:53:07 +07:00
} ) ;
2023-08-11 01:57:09 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementOther" , b = >
2023-06-29 10:41:00 +07:00
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
2023-08-16 15:14:29 +07:00
b . Property < double? > ( "Amount" )
. HasColumnType ( "double" )
. HasComment ( "เงินเดือน" ) ;
2023-08-11 01:57:09 +07:00
b . Property < double? > ( "AmountOld" )
. HasColumnType ( "double" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เงินเดือน" ) ;
b . Property < Guid ? > ( "CommandTypeId" )
. HasColumnType ( "char(36)" ) ;
2023-06-29 10:41:00 +07:00
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 ที่สร้างข้อมูล" ) ;
2023-08-16 15:14:29 +07:00
b . Property < string > ( "EducationOld" )
. HasColumnType ( "longtext" )
. HasComment ( "วุฒิ/สาขาเดิม" ) ;
2023-06-29 10:41:00 +07:00
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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2024-06-14 17:26:15 +07:00
b . Property < DateTime ? > ( "LeaveDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ออกราชการเมื่อ" ) ;
2023-10-02 19:51:38 +07:00
b . Property < DateTime ? > ( "MilitaryDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่พ้นจากราชการทหาร" ) ;
2024-05-03 17:39:10 +07:00
b . Property < string > ( "OrganizationOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัดเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "OrganizationPositionOld" )
. HasColumnType ( "longtext" )
2023-08-16 15:14:29 +07:00
. HasComment ( "สังกัดเดิม" ) ;
b . Property < DateTime ? > ( "PositionDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ดำรงตำแหน่งในระดับปัจจุบันเมื่อ" ) ;
2025-03-28 16:31:33 +07:00
b . Property < string > ( "PositionExecutive" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหาร" ) ;
2025-03-21 14:31:45 +07:00
b . Property < string > ( "PositionExecutiveOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหารเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "PositionLevelOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ระดับ" ) ;
b . Property < string > ( "PositionNumberOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เลขที่" ) ;
2024-05-03 17:39:10 +07:00
b . Property < string > ( "PositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "PositionTypeOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท" ) ;
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
2023-08-16 15:14:29 +07:00
. HasComment ( "เหตุผลที่รับย้ายราชการ" ) ;
b . Property < DateTime ? > ( "RecruitDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่บรรจุ" ) ;
2025-03-28 16:31:33 +07:00
b . Property < DateTime ? > ( "ReportingDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่รายงานตัว" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "Status" )
2023-06-29 10:41:00 +07:00
. IsRequired ( )
. HasColumnType ( "longtext" )
2023-08-11 01:57:09 +07:00
. HasComment ( "สถานะคำขอ" ) ;
2023-06-29 10:41:00 +07:00
2025-03-28 16:31:33 +07:00
b . Property < string > ( "child1" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child1" ) ;
b . Property < string > ( "child1DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1Dna" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child1DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1Dna old" ) ;
2025-03-28 16:31:33 +07:00
b . Property < string > ( "child1Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1Old" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child1 old" ) ;
2023-08-16 15:14:29 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1OldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child1 old" ) ;
2023-06-29 10:41:00 +07:00
2025-03-28 16:31:33 +07:00
b . Property < string > ( "child1ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child1" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1ShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child1 old" ) ;
2023-08-16 15:14:29 +07:00
2025-03-28 16:31:33 +07:00
b . Property < string > ( "child2" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child2" ) ;
b . Property < string > ( "child2DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2Dna" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child2DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2Dna old" ) ;
2025-03-28 16:31:33 +07:00
b . Property < string > ( "child2Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2Old" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child2 old" ) ;
2023-08-11 01:57:09 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2OldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child2 old" ) ;
2023-08-16 15:14:29 +07:00
2025-03-28 16:31:33 +07:00
b . Property < string > ( "child2ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child2" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2ShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child2 old" ) ;
2023-08-16 15:14:29 +07:00
2025-03-28 16:31:33 +07:00
b . Property < string > ( "child3" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child3" ) ;
b . Property < string > ( "child3DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3Dna" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child3DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3Dna old" ) ;
2025-03-28 16:31:33 +07:00
b . Property < string > ( "child3Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3Old" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child3 old" ) ;
2023-08-16 15:14:29 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3OldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child3 old" ) ;
2023-08-16 15:14:29 +07:00
2025-03-28 16:31:33 +07:00
b . Property < string > ( "child3ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child3" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3ShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child3 old" ) ;
2023-08-16 15:14:29 +07:00
2025-03-28 16:31:33 +07:00
b . Property < string > ( "child4" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child4" ) ;
b . Property < string > ( "child4DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4Dna" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child4DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4Dna old" ) ;
2025-03-28 16:31:33 +07:00
b . Property < string > ( "child4Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4Old" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child4 old" ) ;
2023-08-16 15:14:29 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4OldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child4 old" ) ;
2023-08-16 15:14:29 +07:00
2025-03-28 16:31:33 +07:00
b . Property < string > ( "child4ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child4" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4ShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child4 old" ) ;
2023-08-16 15:14:29 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "citizenId" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขบัตรประชาชน" ) ;
2023-08-16 15:14:29 +07:00
2024-05-02 09:31:38 +07:00
b . Property < string > ( "firstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "lastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุล" ) ;
2025-03-28 16:31:33 +07:00
b . Property < int? > ( "node" )
. HasColumnType ( "int" )
. HasComment ( "ระดับโครงสร้าง" ) ;
b . Property < Guid ? > ( "nodeId" )
. HasColumnType ( "char(36)" )
. HasComment ( "id โครงสร้าง" ) ;
b . Property < string > ( "orgRevisionId" )
. HasColumnType ( "longtext" )
. HasComment ( "id revision" ) ;
b . Property < string > ( "posLevelId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ระดับตำแหน่ง" ) ;
b . Property < string > ( "posLevelName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อระดับตำแหน่ง" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posLevelNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อระดับตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posLevelOldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id ระดับตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2025-03-28 16:31:33 +07:00
b . Property < int? > ( "posMasterNo" )
. HasColumnType ( "int" )
. HasComment ( "เลขที่ตำแหน่ง" ) ;
2024-05-24 01:12:27 +07:00
b . Property < int? > ( "posMasterNoOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "int" )
2024-05-24 01:12:27 +07:00
. HasComment ( "เลขที่ตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2025-03-28 16:31:33 +07:00
b . Property < string > ( "posTypeId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ประเภทตำแหน่ง" ) ;
b . Property < string > ( "posTypeName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อประเภทตำแหน่ง" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posTypeNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อประเภทตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posTypeOldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id ประเภทตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2025-03-28 16:31:33 +07:00
b . Property < string > ( "position" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อตำแหน่งในสายงาน" ) ;
2025-06-16 14:40:38 +07:00
b . Property < string > ( "positionArea" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา" ) ;
b . Property < string > ( "positionAreaOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา (เก่า)" ) ;
b . Property < string > ( "positionExecutiveField" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร" ) ;
b . Property < string > ( "positionExecutiveFieldOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร (เก่า)" ) ;
2025-03-28 16:31:33 +07:00
b . Property < string > ( "positionField" )
. HasColumnType ( "longtext" )
. HasComment ( "สายงาน" ) ;
b . Property < string > ( "positionId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ตำแหน่ง" ) ;
b . Property < string > ( "posmasterId" )
. HasColumnType ( "longtext" )
. HasComment ( "id อัตรากำลัง" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < string > ( "profileId" )
. HasColumnType ( "longtext" )
. HasComment ( "profile Id" ) ;
2025-03-28 16:31:33 +07:00
b . Property < string > ( "root" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน root" ) ;
b . Property < string > ( "rootDnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน rootDna" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "rootDnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน rootDna old" ) ;
2025-03-28 16:31:33 +07:00
b . Property < string > ( "rootId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน root old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootOldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน root old" ) ;
2024-05-02 09:31:38 +07:00
2025-03-28 16:31:33 +07:00
b . Property < string > ( "rootShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน root" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน root old" ) ;
2023-08-19 21:03:17 +07:00
2024-05-02 09:31:38 +07:00
b . HasKey ( "Id" ) ;
2023-08-16 15:14:29 +07:00
2024-05-02 09:31:38 +07:00
b . HasIndex ( "CommandTypeId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "RetirementOthers" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc" , 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 < Guid > ( "DocumentId" )
. 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 > ( "RetirementOtherId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
2023-08-11 01:57:09 +07:00
2023-08-16 15:14:29 +07:00
b . HasIndex ( "DocumentId" ) ;
b . HasIndex ( "RetirementOtherId" ) ;
b . ToTable ( "RetirementOtherDocs" ) ;
2023-06-29 10:41:00 +07:00
} ) ;
2023-08-11 01:57:09 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementOut" , b = >
2023-08-08 11:21:21 +07:00
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
2023-08-11 01:57:09 +07:00
b . Property < double? > ( "AmountOld" )
. HasColumnType ( "double" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เงินเดือน" ) ;
2023-08-08 11:21:21 +07:00
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 ? > ( "Date" )
. HasColumnType ( "datetime(6)" )
2023-08-11 01:57:09 +07:00
. HasComment ( "ตั้งแต่วันที่" ) ;
2023-08-08 11:21:21 +07:00
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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "Organization" )
2023-08-08 11:21:21 +07:00
. HasColumnType ( "longtext" )
2023-08-11 01:57:09 +07:00
. HasComment ( "หน่วยงานที่ให้ออกไป" ) ;
2023-08-08 11:21:21 +07:00
2024-05-03 17:39:10 +07:00
b . Property < string > ( "OrganizationOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัดเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "OrganizationPositionOld" )
2023-08-08 11:21:21 +07:00
. HasColumnType ( "longtext" )
2023-08-11 01:57:09 +07:00
. HasComment ( "สังกัด" ) ;
2025-03-21 14:31:45 +07:00
b . Property < string > ( "PositionExecutiveOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหารเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "PositionLevelOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ระดับ" ) ;
b . Property < string > ( "PositionNumberOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เลขที่" ) ;
2024-05-03 17:39:10 +07:00
b . Property < string > ( "PositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "PositionTypeOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท" ) ;
2023-08-08 11:21:21 +07:00
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
2023-08-11 01:57:09 +07:00
. HasComment ( "เหตุผล" ) ;
2023-08-08 11:21:21 +07:00
2023-08-11 01:57:09 +07:00
b . Property < string > ( "Status" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะคำขอ" ) ;
2023-08-08 11:21:21 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child1DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1 old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1Old" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child1 old" ) ;
2023-08-08 11:21:21 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1OldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child1 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1ShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child1 old" ) ;
2024-05-02 09:31:38 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child2DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2 old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2Old" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child2 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2OldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child2 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2ShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child2 old" ) ;
2024-05-02 09:31:38 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child3DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3 old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3Old" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child3 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3OldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child3 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3ShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child3 old" ) ;
2024-05-02 09:31:38 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child4DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4 old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4Old" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child4 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4OldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child4 old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4ShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child4 old" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "citizenId" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขบัตรประชาชน" ) ;
b . Property < string > ( "firstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "lastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุล" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posLevelNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อระดับตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posLevelOldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id ระดับตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < int? > ( "posMasterNoOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "int" )
2024-05-24 01:12:27 +07:00
. HasComment ( "เลขที่ตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posTypeNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อประเภทตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posTypeOldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id ประเภทตำแหน่ง old" ) ;
2024-05-02 09:31:38 +07:00
2025-06-16 14:40:38 +07:00
b . Property < string > ( "positionArea" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา" ) ;
b . Property < string > ( "positionAreaOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา (เก่า)" ) ;
b . Property < string > ( "positionExecutiveField" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร" ) ;
b . Property < string > ( "positionExecutiveFieldOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร (เก่า)" ) ;
2024-05-02 09:31:38 +07:00
b . Property < string > ( "prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < string > ( "profileId" )
. HasColumnType ( "longtext" )
. HasComment ( "profile Id" ) ;
2025-01-15 16:14:54 +07:00
b . Property < string > ( "profileType" )
. HasColumnType ( "longtext" )
. HasComment ( "สถานภาพ (OFFICER->ข้าราชการ EMPLOYEE->ลูกจ้างประจำ)" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "rootDnaOldId" )
. HasColumnType ( "longtext" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน root old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootOldId" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน root old" ) ;
2024-05-02 09:31:38 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootShortNameOld" )
2024-05-02 09:31:38 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน root old" ) ;
2024-05-02 09:31:38 +07:00
b . HasKey ( "Id" ) ;
2023-08-08 11:21:21 +07:00
2023-08-16 15:14:29 +07:00
b . ToTable ( "RetirementOuts" ) ;
2023-08-08 11:21:21 +07:00
} ) ;
2023-07-22 22:14:50 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementPeriod" , 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 ที่สร้างข้อมูล" ) ;
2023-09-13 14:56:47 +07:00
b . Property < string > ( "Detail" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "รายละเอียดมติ อกก" ) ;
2023-08-23 20:30:30 +07:00
b . Property < Guid ? > ( "DocumentId" )
. HasColumnType ( "char(36)" ) ;
2023-07-22 22:14:50 +07:00
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 < int > ( "Round" )
. HasColumnType ( "int" )
. HasComment ( "ครั้งที่" ) ;
2023-10-08 12:41:53 +07:00
b . Property < DateTime ? > ( "SignDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ประกาศ ณ วันที่" ) ;
2023-07-22 22:14:50 +07:00
b . Property < string > ( "Type" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภท" ) ;
2023-08-03 12:53:33 +07:00
b . Property < string > ( "TypeReport" )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภทคำสั่ง" ) ;
2023-07-25 14:32:02 +07:00
b . Property < int > ( "Year" )
. HasColumnType ( "int" )
. HasComment ( "ปีงบประมาณ" ) ;
2023-07-22 22:14:50 +07:00
b . HasKey ( "Id" ) ;
2023-08-23 20:30:30 +07:00
b . HasIndex ( "DocumentId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "RetirementPeriods" ) ;
2023-07-22 22:14:50 +07:00
} ) ;
2023-08-03 12:53:33 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory" , 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 ที่สร้างข้อมูล" ) ;
2023-09-13 14:56:47 +07:00
b . Property < string > ( "Detail" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "รายละเอียดมติ อกก" ) ;
2023-08-23 20:30:30 +07:00
b . Property < Guid ? > ( "DocumentId" )
. HasColumnType ( "char(36)" ) ;
2023-08-03 12:53:33 +07:00
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 > ( "ProfileFile" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "รายชื่อเกษียญ" ) ;
b . Property < Guid > ( "RetirementPeriodId" )
. HasColumnType ( "char(36)" ) ;
b . Property < int > ( "Round" )
. HasColumnType ( "int" )
. HasComment ( "ครั้งที่" ) ;
2023-10-08 12:41:53 +07:00
b . Property < DateTime ? > ( "SignDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "ประกาศ ณ วันที่" ) ;
2023-08-03 12:53:33 +07:00
b . Property < int > ( "Total" )
. HasColumnType ( "int" )
. HasComment ( "จำนวนคน" ) ;
b . Property < string > ( "Type" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภท" ) ;
b . Property < string > ( "TypeReport" )
. HasColumnType ( "longtext" )
. HasComment ( "ประเภทคำสั่ง" ) ;
b . Property < int > ( "Year" )
. HasColumnType ( "int" )
. HasComment ( "ปีงบประมาณ" ) ;
b . HasKey ( "Id" ) ;
2023-08-23 20:30:30 +07:00
b . HasIndex ( "DocumentId" ) ;
2023-08-03 12:53:33 +07:00
b . HasIndex ( "RetirementPeriodId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "RetirementPeriodHistorys" ) ;
2023-08-03 12:53:33 +07:00
} ) ;
2023-07-22 22:14:50 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementProfile" , 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 > ( "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 < int > ( "Order" )
. HasColumnType ( "int" )
. HasComment ( "ลำดับที่" ) ;
b . Property < string > ( "Reason" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผล" ) ;
2023-07-25 14:32:02 +07:00
b . Property < string > ( "Remove" )
. IsRequired ( )
. HasColumnType ( "longtext" )
2023-07-22 22:14:50 +07:00
. HasComment ( "ลบออกจากเกษียญ" ) ;
b . Property < Guid > ( "RetirementPeriodId" )
. HasColumnType ( "char(36)" ) ;
2024-05-29 16:29:12 +07:00
b . Property < string > ( "child1" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child1 " ) ;
2023-07-22 22:14:50 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child1DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1 " ) ;
2024-05-29 16:29:12 +07:00
b . Property < string > ( "child1Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1 " ) ;
b . Property < string > ( "child1ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child1 " ) ;
b . Property < string > ( "child2" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child2 " ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child2DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2 " ) ;
2024-05-29 16:29:12 +07:00
b . Property < string > ( "child2Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2 " ) ;
b . Property < string > ( "child2ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child2 " ) ;
b . Property < string > ( "child3" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child3 " ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child3DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3 " ) ;
2024-05-29 16:29:12 +07:00
b . Property < string > ( "child3Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3 " ) ;
b . Property < string > ( "child3ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child3 " ) ;
b . Property < string > ( "child4" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child4 " ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child4DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4 " ) ;
2024-05-29 16:29:12 +07:00
b . Property < string > ( "child4Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4 " ) ;
b . Property < string > ( "child4ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child4 " ) ;
b . Property < string > ( "citizenId" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขบัตรประชาชน" ) ;
b . Property < string > ( "firstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "lastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุล" ) ;
b . Property < string > ( "posExecutiveId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ตำแหน่งทางการบริหาร " ) ;
b . Property < string > ( "posExecutiveName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อตำแหน่งทางการบริหาร " ) ;
b . Property < string > ( "posLevelId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ระดับตำแหน่ง " ) ;
b . Property < string > ( "posLevelName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อระดับตำแหน่ง " ) ;
b . Property < int? > ( "posLevelRank" )
. HasColumnType ( "int" )
. HasComment ( "ลำดับระดับตำแหน่ง " ) ;
b . Property < int? > ( "posMasterNo" )
. HasColumnType ( "int" )
. HasComment ( "เลขที่ตำแหน่ง " ) ;
b . Property < string > ( "posNo" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขที่ตำแหน่ง " ) ;
b . Property < string > ( "posTypeId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ประเภทตำแหน่ง " ) ;
b . Property < string > ( "posTypeName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อประเภทตำแหน่ง " ) ;
b . Property < int? > ( "posTypeRank" )
. HasColumnType ( "int" )
. HasComment ( "ลำดับประเภทตำแหน่ง " ) ;
b . Property < string > ( "position" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อตำแหน่งในสายงาน " ) ;
2025-06-16 14:40:38 +07:00
b . Property < string > ( "positionArea" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา" ) ;
b . Property < string > ( "positionAreaOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา (เก่า)" ) ;
b . Property < string > ( "positionExecutiveField" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร" ) ;
b . Property < string > ( "positionExecutiveFieldOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร (เก่า)" ) ;
2024-05-29 16:29:12 +07:00
b . Property < string > ( "prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < string > ( "profileId" )
. HasColumnType ( "longtext" )
. HasComment ( "profile Id" ) ;
b . Property < string > ( "root" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน root " ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "rootDnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root " ) ;
2024-05-29 16:29:12 +07:00
b . Property < string > ( "rootId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root " ) ;
b . Property < string > ( "rootShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน root " ) ;
b . HasKey ( "Id" ) ;
2023-07-22 22:14:50 +07:00
b . HasIndex ( "RetirementPeriodId" ) ;
2023-08-16 15:14:29 +07:00
b . ToTable ( "RetirementProfiles" ) ;
2023-07-22 22:14:50 +07:00
} ) ;
2023-08-23 20:30:30 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementQuestion" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "Adjust" )
. HasColumnType ( "longtext" )
. HasComment ( "อะไรคือสิ่งที่ท่านเห็นว่าควรปรับปรุง" ) ;
b . Property < string > ( "AdjustOther" )
. HasColumnType ( "longtext" )
. HasComment ( "อื่นๆ อะไรคือสิ่งที่ท่านเห็นว่าควรปรับปรุง" ) ;
2023-08-25 18:18:28 +07:00
b . Property < DateTime ? > ( "AppointDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "กําหนดวันนัดหมายเพื่อทําการสัมภาษณ์การลาออก" ) ;
2023-10-08 12:41:53 +07:00
b . Property < string > ( "Comment" )
. HasColumnType ( "longtext" )
. HasComment ( "ความคิดเห็น" ) ;
2023-08-23 20:30:30 +07:00
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 > ( "ExitFactor" )
. HasColumnType ( "longtext" )
. HasComment ( "ปัจจัยใดที่ทำให้ท่านตัดสินใจลาออกจากราชการ" ) ;
b . Property < string > ( "ExitFactorOther" )
. HasColumnType ( "longtext" )
. HasComment ( "อื่นๆ ปัจจัยใดที่ทำให้ท่านตัดสินใจลาออกจากราชการ" ) ;
b . Property < bool? > ( "FutureWork" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "หากท่านมีโอกาสในอนาคต ท่านอยากกลับมาร่วมงานกับกรุงเทพมหานครหรือไม่" ) ;
b . Property < string > ( "FutureWorkReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลหากท่านมีโอกาสในอนาคต ท่านอยากกลับมาร่วมงานกับกรุงเทพมหานครหรือไม่" ) ;
b . Property < bool? > ( "Havejob" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ท่านมีงานใหม่หรือไม่และอะไรคือสิ่งที่ที่ทำงานใหม่ให้กับท่าน ซึ่งท่านรู้สึกว่าเป็นที่น่าพอใจมากกว่าการปฏิบัติราชการกับกรุงเทพมหานคร" ) ;
b . Property < string > ( "HavejobReason" )
. 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 > ( "NotExitFactor" )
. HasColumnType ( "longtext" )
. HasComment ( "ปัจจัยใดที่จะช่วยทำให้ท่านเปลี่ยนใจ ไม่อยากลาออกจากการปฏิบัติราชการกับกรุงเทพมหานคร" ) ;
b . Property < string > ( "RealReason" )
. HasColumnType ( "longtext" )
. HasComment ( "โปรดระบุสาเหตุที่แท้จริง ที่ทำให้ท่านตัดสินใจลาออกจากการปฏิบัติราชการกับกรุงเทพมหานคร" ) ;
b . Property < string > ( "ReasonWork" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุใดท่านจึงตัดสินใจร่วมงานกับกรุงเทพมหานคร" ) ;
b . Property < string > ( "ReasonWorkOther" )
. HasColumnType ( "longtext" )
. HasComment ( "อื่นๆ เหตุใดท่านจึงตัดสินใจร่วมงานกับกรุงเทพมหานคร" ) ;
b . Property < Guid > ( "RetirementResignId" )
. HasColumnType ( "char(36)" ) ;
2023-10-08 12:41:53 +07:00
b . Property < int? > ( "Score1" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 1" ) ;
b . Property < int? > ( "Score10" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 10" ) ;
b . Property < int? > ( "Score2" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 2" ) ;
b . Property < int? > ( "Score3" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 3" ) ;
b . Property < int? > ( "Score4" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 4" ) ;
b . Property < int? > ( "Score5" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 5" ) ;
b . Property < int? > ( "Score6" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 6" ) ;
b . Property < int? > ( "Score7" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 7" ) ;
b . Property < int? > ( "Score8" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 8" ) ;
b . Property < int? > ( "Score9" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนข้อ 9" ) ;
b . Property < int? > ( "ScoreTotal" )
. HasColumnType ( "int" )
. HasComment ( "คะแนนรวม" ) ;
2023-08-23 20:30:30 +07:00
b . Property < bool? > ( "SuggestFriends" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "ท่านจะแนะนำเพื่อนให้มาร่วมงานกับกรุงเทพมหานครหรือไม่" ) ;
b . Property < string > ( "SuggestFriendsReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลท่านจะแนะนำเพื่อนให้มาร่วมงานกับกรุงเทพมหานครหรือไม่" ) ;
b . Property < string > ( "Suggestion" )
. HasColumnType ( "longtext" )
. HasComment ( "ความคิดเห็นและข้อเสนอแนะอื่น ๆ " ) ;
2023-08-25 10:32:43 +07:00
b . Property < int? > ( "TimeThink" )
. HasColumnType ( "int" )
2023-08-23 20:30:30 +07:00
. HasComment ( "สำหรับการลาออกในครั้งนี้ ท่านได้คิดทบทวนอย่างจริงจังเป็นระยะเวลานานเท่าใด" ) ;
2025-06-20 01:24:57 +07:00
b . Property < string > ( "child1" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child1 " ) ;
b . Property < string > ( "child1DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1 " ) ;
b . Property < string > ( "child1Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1 " ) ;
b . Property < string > ( "child2" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child2 " ) ;
b . Property < string > ( "child2DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2 " ) ;
b . Property < string > ( "child2Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2 " ) ;
b . Property < string > ( "child3" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child3 " ) ;
b . Property < string > ( "child3DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3 " ) ;
b . Property < string > ( "child3Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3 " ) ;
b . Property < string > ( "child4" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child4 " ) ;
b . Property < string > ( "child4DnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4 " ) ;
b . Property < string > ( "child4Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4 " ) ;
b . Property < string > ( "root" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน root " ) ;
b . Property < string > ( "rootDnaId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root " ) ;
b . Property < string > ( "rootId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root " ) ;
2023-08-23 20:30:30 +07:00
b . HasKey ( "Id" ) ;
b . HasIndex ( "RetirementResignId" ) ;
b . ToTable ( "RetirementQuestions" ) ;
} ) ;
2023-10-08 12:41:53 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementQuestionnaireQuestion" , 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 > ( "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 > ( "Question10Answer" )
. HasColumnType ( "longtext" )
. HasComment ( "กรอกคะแนน 10" ) ;
b . Property < string > ( "Question10Desc" )
. HasColumnType ( "longtext" )
. HasComment ( "คำถามข้อที่ 10" ) ;
b . Property < string > ( "Question10Score" )
. HasColumnType ( "longtext" )
. HasComment ( "คำตอบข้อที่ 10" ) ;
b . Property < string > ( "Question1Answer" )
. HasColumnType ( "longtext" )
. HasComment ( "กรอกคะแนน 1" ) ;
b . Property < string > ( "Question1Desc" )
. HasColumnType ( "longtext" )
. HasComment ( "คำถามข้อที่ 1" ) ;
b . Property < string > ( "Question1Score" )
. HasColumnType ( "longtext" )
. HasComment ( "คำตอบข้อที่ 1" ) ;
b . Property < string > ( "Question2Answer" )
. HasColumnType ( "longtext" )
. HasComment ( "กรอกคะแนน 2" ) ;
b . Property < string > ( "Question2Desc" )
. HasColumnType ( "longtext" )
. HasComment ( "คำถามข้อที่ 2" ) ;
b . Property < string > ( "Question2Score" )
. HasColumnType ( "longtext" )
. HasComment ( "คำตอบข้อที่ 2" ) ;
b . Property < string > ( "Question3Answer" )
. HasColumnType ( "longtext" )
. HasComment ( "กรอกคะแนน 3" ) ;
b . Property < string > ( "Question3Desc" )
. HasColumnType ( "longtext" )
. HasComment ( "คำถามข้อที่ 3" ) ;
b . Property < string > ( "Question3Score" )
. HasColumnType ( "longtext" )
. HasComment ( "คำตอบข้อที่ 3" ) ;
b . Property < string > ( "Question4Answer" )
. HasColumnType ( "longtext" )
. HasComment ( "กรอกคะแนน 4" ) ;
b . Property < string > ( "Question4Desc" )
. HasColumnType ( "longtext" )
. HasComment ( "คำถามข้อที่ 4" ) ;
b . Property < string > ( "Question4Score" )
. HasColumnType ( "longtext" )
. HasComment ( "คำตอบข้อที่ 4" ) ;
b . Property < string > ( "Question5Answer" )
. HasColumnType ( "longtext" )
. HasComment ( "กรอกคะแนน 5" ) ;
b . Property < string > ( "Question5Desc" )
. HasColumnType ( "longtext" )
. HasComment ( "คำถามข้อที่ 5" ) ;
b . Property < string > ( "Question5Score" )
. HasColumnType ( "longtext" )
. HasComment ( "คำตอบข้อที่ 5" ) ;
b . Property < string > ( "Question6Answer" )
. HasColumnType ( "longtext" )
. HasComment ( "กรอกคะแนน 6" ) ;
b . Property < string > ( "Question6Desc" )
. HasColumnType ( "longtext" )
. HasComment ( "คำถามข้อที่ 6" ) ;
b . Property < string > ( "Question6Score" )
. HasColumnType ( "longtext" )
. HasComment ( "คำตอบข้อที่ 6" ) ;
b . Property < string > ( "Question7Answer" )
. HasColumnType ( "longtext" )
. HasComment ( "กรอกคะแนน 7" ) ;
b . Property < string > ( "Question7Desc" )
. HasColumnType ( "longtext" )
. HasComment ( "คำถามข้อที่ 7" ) ;
b . Property < string > ( "Question7Score" )
. HasColumnType ( "longtext" )
. HasComment ( "คำตอบข้อที่ 7" ) ;
b . Property < string > ( "Question8Answer" )
. HasColumnType ( "longtext" )
. HasComment ( "กรอกคะแนน 8" ) ;
b . Property < string > ( "Question8Desc" )
. HasColumnType ( "longtext" )
. HasComment ( "คำถามข้อที่ 8" ) ;
b . Property < string > ( "Question8Score" )
. HasColumnType ( "longtext" )
. HasComment ( "คำตอบข้อที่ 8" ) ;
b . Property < string > ( "Question9Answer" )
. HasColumnType ( "longtext" )
. HasComment ( "กรอกคะแนน 9" ) ;
b . Property < string > ( "Question9Desc" )
. HasColumnType ( "longtext" )
. HasComment ( "คำถามข้อที่ 9" ) ;
b . Property < string > ( "Question9Score" )
. HasColumnType ( "longtext" )
. HasComment ( "คำตอบข้อที่ 9" ) ;
b . HasKey ( "Id" ) ;
b . ToTable ( "RetirementQuestionnaireQuestions" ) ;
} ) ;
2025-01-28 13:11:20 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementRawProfile" , 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 > ( "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 < int > ( "Order" )
. HasColumnType ( "int" )
. HasComment ( "ลำดับที่" ) ;
b . Property < string > ( "Reason" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผล" ) ;
b . Property < string > ( "Remove" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasComment ( "ลบออกจากเกษียญ" ) ;
b . Property < Guid > ( "RetirementPeriodId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "child1" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child1 " ) ;
b . Property < string > ( "child1Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1 " ) ;
b . Property < string > ( "child1ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child1 " ) ;
b . Property < string > ( "child2" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child2 " ) ;
b . Property < string > ( "child2Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2 " ) ;
b . Property < string > ( "child2ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child2 " ) ;
b . Property < string > ( "child3" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child3 " ) ;
b . Property < string > ( "child3Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3 " ) ;
b . Property < string > ( "child3ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child3 " ) ;
b . Property < string > ( "child4" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child4 " ) ;
b . Property < string > ( "child4Id" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4 " ) ;
b . Property < string > ( "child4ShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child4 " ) ;
b . Property < string > ( "citizenId" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขบัตรประชาชน" ) ;
b . Property < string > ( "firstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "lastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุล" ) ;
b . Property < string > ( "posExecutiveId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ตำแหน่งทางการบริหาร " ) ;
b . Property < string > ( "posExecutiveName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อตำแหน่งทางการบริหาร " ) ;
b . Property < string > ( "posLevelId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ระดับตำแหน่ง " ) ;
b . Property < string > ( "posLevelName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อระดับตำแหน่ง " ) ;
b . Property < int? > ( "posLevelRank" )
. HasColumnType ( "int" )
. HasComment ( "ลำดับระดับตำแหน่ง " ) ;
b . Property < int? > ( "posMasterNo" )
. HasColumnType ( "int" )
. HasComment ( "เลขที่ตำแหน่ง " ) ;
b . Property < string > ( "posNo" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขที่ตำแหน่ง " ) ;
b . Property < string > ( "posTypeId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ประเภทตำแหน่ง " ) ;
b . Property < string > ( "posTypeName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อประเภทตำแหน่ง " ) ;
b . Property < int? > ( "posTypeRank" )
. HasColumnType ( "int" )
. HasComment ( "ลำดับประเภทตำแหน่ง " ) ;
b . Property < string > ( "position" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อตำแหน่งในสายงาน " ) ;
2025-06-16 14:40:38 +07:00
b . Property < string > ( "positionArea" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา" ) ;
b . Property < string > ( "positionAreaOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา (เก่า)" ) ;
b . Property < string > ( "positionExecutiveField" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร" ) ;
b . Property < string > ( "positionExecutiveFieldOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร (เก่า)" ) ;
2025-01-28 13:11:20 +07:00
b . Property < string > ( "prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < string > ( "profileId" )
. HasColumnType ( "longtext" )
. HasComment ( "profile Id" ) ;
b . Property < string > ( "root" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน root " ) ;
b . Property < string > ( "rootId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root " ) ;
b . Property < string > ( "rootShortName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน root " ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "RetirementPeriodId" ) ;
b . ToTable ( "RetirementRawProfiles" ) ;
} ) ;
2023-08-08 11:21:21 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResign" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < DateTime ? > ( "ActiveDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ขอออกราชการ" ) ;
2023-08-11 01:57:09 +07:00
b . Property < double? > ( "AmountOld" )
. HasColumnType ( "double" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เงินเดือน" ) ;
2023-08-23 20:30:30 +07:00
b . Property < string > ( "ApproveReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลอนุมัติ" ) ;
2025-05-07 14:17:28 +07:00
b . Property < string > ( "ApproveStep" )
. HasColumnType ( "longtext" )
. HasComment ( "step การอนุมัติ st1 = จทน.อนุมัตื,st2 = ผู้บังคับบัญชา อนุมัติ " ) ;
2024-05-21 19:41:55 +07:00
b . Property < string > ( "CancelReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลยกเลิก" ) ;
2023-08-29 14:17:28 +07:00
b . Property < string > ( "CommanderApproveReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลอนุมัติผู้บังคับบัญชา" ) ;
2023-08-29 12:08:02 +07:00
b . Property < bool? > ( "CommanderReject" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะยับยั้งผู้บังคับบัญชา" ) ;
b . Property < DateTime ? > ( "CommanderRejectDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ยับยั้งผู้บังคับบัญชา" ) ;
b . Property < string > ( "CommanderRejectReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลยับยั้งผู้บังคับบัญชา" ) ;
2023-08-08 11:21:21 +07:00
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 ที่สร้างข้อมูล" ) ;
2025-05-23 10:49:40 +07:00
b . Property < string > ( "Group" )
. HasColumnType ( "longtext" )
. HasComment ( "คนยื่นมาอยู่ในกลุ่ม" ) ;
2023-08-08 11:21:21 +07:00
b . Property < bool > ( "IsActive" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะการใช้งาน" ) ;
2024-11-14 11:00:22 +07:00
b . Property < bool > ( "IsCancel" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะยกเลิก" ) ;
2024-06-11 11:58:38 +07:00
b . Property < bool > ( "IsDiscipline" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะพฤติการณ์ทางวินัย" ) ;
b . Property < bool > ( "IsNoBurden" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะไม่มีภาระผูกพันค้ำประกันทุนการศึกษา" ) ;
2024-05-21 19:41:55 +07:00
b . Property < bool > ( "IsNoDebt" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะไม่เป็นหนี้สหกรณ์" ) ;
2023-08-08 11:21:21 +07:00
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 > ( "Location" )
. HasColumnType ( "longtext" )
. HasComment ( "สถานที่ยื่นขอลาออกราชการ" ) ;
2024-05-23 17:07:55 +07:00
b . Property < string > ( "OfficerApproveReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลอนุมัติการเจ้าหน้าที่" ) ;
b . Property < bool? > ( "OfficerReject" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะยับยั้งการเจ้าหน้าที่" ) ;
b . Property < DateTime ? > ( "OfficerRejectDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ยับยั้งการเจ้าหน้าที่" ) ;
b . Property < string > ( "OfficerRejectReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลยับยั้งการเจ้าหน้าที่" ) ;
2023-08-29 14:17:28 +07:00
b . Property < string > ( "OligarchApproveReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลอนุมัติผู้ดูแล" ) ;
2023-08-29 12:08:02 +07:00
b . Property < bool? > ( "OligarchReject" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะยับยั้งผู้ดูแล" ) ;
b . Property < DateTime ? > ( "OligarchRejectDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ยับยั้งผู้ดูแล" ) ;
b . Property < string > ( "OligarchRejectReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลยับยั้งผู้ดูแล" ) ;
2024-05-21 19:41:55 +07:00
b . Property < string > ( "OrganizationOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัดเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "OrganizationPositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัด" ) ;
2023-08-08 11:21:21 +07:00
2025-03-21 18:08:41 +07:00
b . Property < string > ( "PositionExecutiveOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหารเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "PositionLevelOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ระดับ" ) ;
2023-08-08 11:21:21 +07:00
2023-08-11 01:57:09 +07:00
b . Property < string > ( "PositionNumberOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เลขที่" ) ;
2023-08-08 11:21:21 +07:00
2024-05-21 19:41:55 +07:00
b . Property < string > ( "PositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งเดิม" ) ;
2023-08-11 01:57:09 +07:00
b . Property < string > ( "PositionTypeOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท" ) ;
2023-08-08 11:21:21 +07:00
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลที่ลาออกจากราชการ" ) ;
2025-01-13 16:52:51 +07:00
b . Property < string > ( "ReasonResign" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลที่ลาออกจากราชการ" ) ;
2023-08-23 20:30:30 +07:00
b . Property < string > ( "RejectReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลไม่อนุมัติ" ) ;
2024-12-13 21:39:00 +07:00
b . Property < string > ( "Remark" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลที่ลาออกจากราชการ(อื่นๆ)" ) ;
2023-10-08 12:41:53 +07:00
b . Property < string > ( "RemarkHorizontal" )
. HasColumnType ( "longtext" )
. HasComment ( "หมายเหตุแนวนอน" ) ;
2023-08-08 11:21:21 +07:00
b . Property < DateTime ? > ( "SendDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ยื่นขอออกราชการ" ) ;
b . Property < string > ( "Status" )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะลาออก" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child1DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1 old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1Old" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child1 old" ) ;
2023-08-08 11:21:21 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1OldId" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child1 old" ) ;
2024-05-21 19:41:55 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child1ShortNameOld" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child1 old" ) ;
2024-05-21 19:41:55 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child2DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2 old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2Old" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child2 old" ) ;
2024-05-21 19:41:55 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2OldId" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child2 old" ) ;
2024-05-21 19:41:55 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child2ShortNameOld" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child2 old" ) ;
2024-05-21 19:41:55 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child3DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3 old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3Old" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child3 old" ) ;
2024-05-21 19:41:55 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3OldId" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child3 old" ) ;
2024-05-21 19:41:55 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child3ShortNameOld" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child3 old" ) ;
2024-05-21 19:41:55 +07:00
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child4DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4 old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4Old" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน child4 old" ) ;
2024-05-21 19:41:55 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4OldId" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน child4 old" ) ;
2024-05-21 19:41:55 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "child4ShortNameOld" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน child4 old" ) ;
2024-05-21 19:41:55 +07:00
b . Property < string > ( "citizenId" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขบัตรประชาชน" ) ;
b . Property < string > ( "firstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "lastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุล" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posLevelNameOld" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อระดับตำแหน่ง old" ) ;
2024-05-21 19:41:55 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posLevelOldId" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id ระดับตำแหน่ง old" ) ;
2024-05-21 19:41:55 +07:00
2024-05-24 01:12:27 +07:00
b . Property < int? > ( "posMasterNoOld" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "int" )
2024-05-24 01:12:27 +07:00
. HasComment ( "เลขที่ตำแหน่ง old" ) ;
2024-05-21 19:41:55 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posTypeNameOld" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อประเภทตำแหน่ง old" ) ;
2024-05-21 19:41:55 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "posTypeOldId" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id ประเภทตำแหน่ง old" ) ;
2024-05-21 19:41:55 +07:00
2025-06-16 14:40:38 +07:00
b . Property < string > ( "positionArea" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา" ) ;
b . Property < string > ( "positionAreaOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา (เก่า)" ) ;
b . Property < string > ( "positionExecutiveField" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร" ) ;
b . Property < string > ( "positionExecutiveFieldOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร (เก่า)" ) ;
2024-05-21 19:41:55 +07:00
b . Property < string > ( "prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < string > ( "profileId" )
. HasColumnType ( "longtext" )
. HasComment ( "profile Id" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "rootDnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root old" ) ;
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootOld" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อหน่วยงาน root old" ) ;
2024-05-21 19:41:55 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootOldId" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "id หน่วยงาน root old" ) ;
2024-05-21 19:41:55 +07:00
2024-05-24 01:12:27 +07:00
b . Property < string > ( "rootShortNameOld" )
2024-05-21 19:41:55 +07:00
. HasColumnType ( "longtext" )
2024-05-24 01:12:27 +07:00
. HasComment ( "ชื่อย่อหน่วยงาน root old" ) ;
2024-05-21 19:41:55 +07:00
b . HasKey ( "Id" ) ;
2023-08-08 11:21:21 +07:00
2023-08-16 15:14:29 +07:00
b . ToTable ( "RetirementResigns" ) ;
2023-08-08 11:21:21 +07:00
} ) ;
2025-05-07 14:17:28 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignApprover" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "ApproveStatus" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "ApproveType" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "Comment" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
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 > ( "FirstName" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
b . Property < Guid > ( "KeycloakId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "LastName" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2025-05-07 17:13:57 +07:00
b . Property < string > ( "Org" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
2025-07-25 18:08:48 +07:00
b . Property < string > ( "PositionExecutiveName" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
2025-05-07 14:17:28 +07:00
b . Property < string > ( "PositionName" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "Prefix" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
b . Property < Guid > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
2025-05-07 17:13:57 +07:00
b . Property < DateTime ? > ( "RejectDate" )
. HasColumnType ( "datetime(6)" ) ;
2025-05-07 14:17:28 +07:00
b . Property < Guid > ( "RetirementResignId" )
. HasColumnType ( "char(36)" ) ;
b . Property < int > ( "Seq" )
. HasColumnType ( "int" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "RetirementResignId" ) ;
b . ToTable ( "RetirementResignApprovers" ) ;
} ) ;
2024-10-29 17:48:41 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignCancel" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < DateTime ? > ( "ActiveDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ขอออกราชการ" ) ;
b . Property < double? > ( "AmountOld" )
. HasColumnType ( "double" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เงินเดือน" ) ;
b . Property < string > ( "ApproveReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลอนุมัติ" ) ;
2025-05-27 19:48:38 +07:00
b . Property < string > ( "ApproveStep" )
. HasColumnType ( "longtext" )
. HasComment ( "step การอนุมัติ st1 = จทน.อนุมัตื,st2 = ผู้บังคับบัญชา อนุมัติ " ) ;
2024-10-29 17:48:41 +07:00
b . Property < string > ( "CancelReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลยกเลิก" ) ;
b . Property < string > ( "CommanderApproveReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลอนุมัติผู้บังคับบัญชา" ) ;
b . Property < bool? > ( "CommanderReject" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะยับยั้งผู้บังคับบัญชา" ) ;
b . Property < DateTime ? > ( "CommanderRejectDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ยับยั้งผู้บังคับบัญชา" ) ;
b . Property < string > ( "CommanderRejectReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลยับยั้งผู้บังคับบัญชา" ) ;
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 ที่สร้างข้อมูล" ) ;
2025-05-27 19:48:38 +07:00
b . Property < string > ( "Group" )
. HasColumnType ( "longtext" )
. HasComment ( "คนยื่นมาอยู่ในกลุ่ม" ) ;
2024-10-29 17:48:41 +07:00
b . Property < bool > ( "IsActive" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะการใช้งาน" ) ;
b . Property < bool > ( "IsDiscipline" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะพฤติการณ์ทางวินัย" ) ;
b . Property < bool > ( "IsNoBurden" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะไม่มีภาระผูกพันค้ำประกันทุนการศึกษา" ) ;
b . Property < bool > ( "IsNoDebt" )
. 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 > ( "Location" )
. HasColumnType ( "longtext" )
. HasComment ( "สถานที่ยื่นขอลาออกราชการ" ) ;
b . Property < string > ( "OfficerApproveReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลอนุมัติการเจ้าหน้าที่" ) ;
b . Property < bool? > ( "OfficerReject" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะยับยั้งการเจ้าหน้าที่" ) ;
b . Property < DateTime ? > ( "OfficerRejectDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ยับยั้งการเจ้าหน้าที่" ) ;
b . Property < string > ( "OfficerRejectReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลยับยั้งการเจ้าหน้าที่" ) ;
b . Property < string > ( "OligarchApproveReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลอนุมัติผู้ดูแล" ) ;
b . Property < bool? > ( "OligarchReject" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะยับยั้งผู้ดูแล" ) ;
b . Property < DateTime ? > ( "OligarchRejectDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ยับยั้งผู้ดูแล" ) ;
b . Property < string > ( "OligarchRejectReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลยับยั้งผู้ดูแล" ) ;
b . Property < string > ( "OrganizationOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัดเดิม" ) ;
b . Property < string > ( "OrganizationPositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัด" ) ;
2025-03-21 18:08:41 +07:00
b . Property < string > ( "PositionExecutiveOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งทางการบริหารเดิม" ) ;
2024-10-29 17:48:41 +07:00
b . Property < string > ( "PositionLevelOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ระดับ" ) ;
b . Property < string > ( "PositionNumberOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เลขที่" ) ;
b . Property < string > ( "PositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งเดิม" ) ;
b . Property < string > ( "PositionTypeOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท" ) ;
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลที่ลาออกจากราชการ" ) ;
b . Property < string > ( "RejectReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลไม่อนุมัติ" ) ;
2024-12-13 21:39:00 +07:00
b . Property < string > ( "Remark" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลที่ลาออกจากราชการ(อื่นๆ)" ) ;
2024-10-29 17:48:41 +07:00
b . Property < string > ( "RemarkHorizontal" )
. HasColumnType ( "longtext" )
. HasComment ( "หมายเหตุแนวนอน" ) ;
b . Property < Guid > ( "RetirementResignId" )
. HasColumnType ( "char(36)" ) ;
b . Property < DateTime ? > ( "SendDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ยื่นขอออกราชการ" ) ;
b . Property < string > ( "Status" )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะลาออก" ) ;
2025-06-20 01:24:57 +07:00
b . Property < string > ( "child1DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1 old" ) ;
2024-10-29 17:48:41 +07:00
b . Property < string > ( "child1Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child1 old" ) ;
b . Property < string > ( "child1OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1 old" ) ;
b . Property < string > ( "child1ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child1 old" ) ;
2025-06-20 01:24:57 +07:00
b . Property < string > ( "child2DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2 old" ) ;
2024-10-29 17:48:41 +07:00
b . Property < string > ( "child2Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child2 old" ) ;
b . Property < string > ( "child2OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2 old" ) ;
b . Property < string > ( "child2ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child2 old" ) ;
2025-06-20 01:24:57 +07:00
b . Property < string > ( "child3DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3 old" ) ;
2024-10-29 17:48:41 +07:00
b . Property < string > ( "child3Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child3 old" ) ;
b . Property < string > ( "child3OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3 old" ) ;
b . Property < string > ( "child3ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child3 old" ) ;
2025-06-20 01:24:57 +07:00
b . Property < string > ( "child4DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4 old" ) ;
2024-10-29 17:48:41 +07:00
b . Property < string > ( "child4Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child4 old" ) ;
b . Property < string > ( "child4OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4 old" ) ;
b . Property < string > ( "child4ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child4 old" ) ;
b . Property < string > ( "citizenId" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขบัตรประชาชน" ) ;
b . Property < string > ( "firstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "lastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุล" ) ;
b . Property < string > ( "posLevelNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อระดับตำแหน่ง old" ) ;
b . Property < string > ( "posLevelOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ระดับตำแหน่ง old" ) ;
b . Property < int? > ( "posMasterNoOld" )
. HasColumnType ( "int" )
. HasComment ( "เลขที่ตำแหน่ง old" ) ;
b . Property < string > ( "posTypeNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อประเภทตำแหน่ง old" ) ;
b . Property < string > ( "posTypeOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ประเภทตำแหน่ง old" ) ;
2025-06-16 14:40:38 +07:00
b . Property < string > ( "positionArea" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา" ) ;
b . Property < string > ( "positionAreaOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้าน/สาขา (เก่า)" ) ;
b . Property < string > ( "positionExecutiveField" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร" ) ;
b . Property < string > ( "positionExecutiveFieldOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ด้านทางการบริหาร (เก่า)" ) ;
2024-10-29 17:48:41 +07:00
b . Property < string > ( "prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < string > ( "profileId" )
. HasColumnType ( "longtext" )
. HasComment ( "profile Id" ) ;
2025-06-20 01:24:57 +07:00
b . Property < string > ( "rootDnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root old" ) ;
2024-10-29 17:48:41 +07:00
b . Property < string > ( "rootOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน root old" ) ;
b . Property < string > ( "rootOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root old" ) ;
b . Property < string > ( "rootShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน root old" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "RetirementResignId" ) ;
b . ToTable ( "RetirementResignCancels" ) ;
} ) ;
2025-05-07 14:17:28 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "ApproveStatus" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "ApproveType" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "Comment" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
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 > ( "FirstName" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
b . Property < Guid > ( "KeycloakId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "LastName" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2025-05-27 19:48:38 +07:00
b . Property < string > ( "Org" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
2025-05-07 14:17:28 +07:00
b . Property < string > ( "PositionName" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "Prefix" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
b . Property < Guid > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
2025-05-27 19:48:38 +07:00
b . Property < DateTime ? > ( "RejectDate" )
. HasColumnType ( "datetime(6)" ) ;
2025-05-07 14:17:28 +07:00
b . Property < Guid > ( "RetirementResignCancelId" )
. HasColumnType ( "char(36)" ) ;
b . Property < int > ( "Seq" )
. HasColumnType ( "int" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "RetirementResignCancelId" ) ;
b . ToTable ( "RetirementResignCancelApprovers" ) ;
} ) ;
2024-05-21 19:41:55 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc" , 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 < Guid > ( "DocumentId" )
. 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 > ( "RetirementResignId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "DocumentId" ) ;
b . HasIndex ( "RetirementResignId" ) ;
b . ToTable ( "RetirementResignDebtDocs" ) ;
} ) ;
2023-08-23 20:30:30 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignDoc" , 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 < Guid > ( "DocumentId" )
. 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 > ( "RetirementResignId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "DocumentId" ) ;
b . HasIndex ( "RetirementResignId" ) ;
b . ToTable ( "RetirementResignDocs" ) ;
} ) ;
2024-11-08 16:58:53 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < DateTime ? > ( "ActiveDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ขอออกราชการ" ) ;
b . Property < double? > ( "AmountOld" )
. HasColumnType ( "double" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เงินเดือน" ) ;
b . Property < string > ( "ApproveReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลอนุมัติ" ) ;
2025-05-07 14:17:28 +07:00
b . Property < string > ( "ApproveStep" )
. HasColumnType ( "longtext" )
. HasComment ( "step การอนุมัติ st1 = จทน.อนุมัตื,st2 = ผู้บังคับบัญชา อนุมัติ " ) ;
2024-11-08 16:58:53 +07:00
b . Property < string > ( "CancelReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลยกเลิก" ) ;
b . Property < string > ( "CommanderApproveReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลอนุมัติผู้บังคับบัญชา" ) ;
b . Property < bool? > ( "CommanderReject" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะยับยั้งผู้บังคับบัญชา" ) ;
b . Property < DateTime ? > ( "CommanderRejectDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ยับยั้งผู้บังคับบัญชา" ) ;
b . Property < string > ( "CommanderRejectReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลยับยั้งผู้บังคับบัญชา" ) ;
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 ที่สร้างข้อมูล" ) ;
2025-05-23 10:49:40 +07:00
b . Property < string > ( "Group" )
. HasColumnType ( "longtext" )
. HasComment ( "คนยื่นมาอยู่ในกลุ่ม" ) ;
2024-11-08 16:58:53 +07:00
b . Property < bool > ( "IsActive" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะการใช้งาน" ) ;
2024-11-14 11:00:22 +07:00
b . Property < bool > ( "IsCancel" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะยกเลิก" ) ;
2024-11-08 16:58:53 +07:00
b . Property < bool > ( "IsDiscipline" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะพฤติการณ์ทางวินัย" ) ;
b . Property < bool > ( "IsNoBurden" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะไม่มีภาระผูกพันค้ำประกันทุนการศึกษา" ) ;
b . Property < bool > ( "IsNoDebt" )
. 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 > ( "Location" )
. HasColumnType ( "longtext" )
. HasComment ( "สถานที่ยื่นขอลาออกราชการ" ) ;
b . Property < string > ( "OfficerApproveReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลอนุมัติการเจ้าหน้าที่" ) ;
b . Property < bool? > ( "OfficerReject" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะยับยั้งการเจ้าหน้าที่" ) ;
b . Property < DateTime ? > ( "OfficerRejectDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ยับยั้งการเจ้าหน้าที่" ) ;
b . Property < string > ( "OfficerRejectReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลยับยั้งการเจ้าหน้าที่" ) ;
b . Property < string > ( "OligarchApproveReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลอนุมัติผู้ดูแล" ) ;
b . Property < bool? > ( "OligarchReject" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะยับยั้งผู้ดูแล" ) ;
b . Property < DateTime ? > ( "OligarchRejectDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ยับยั้งผู้ดูแล" ) ;
b . Property < string > ( "OligarchRejectReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลยับยั้งผู้ดูแล" ) ;
b . Property < string > ( "OrganizationOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัดเดิม" ) ;
b . Property < string > ( "OrganizationPositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัด" ) ;
b . Property < string > ( "PositionLevelOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ระดับ" ) ;
b . Property < string > ( "PositionNumberOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เลขที่" ) ;
b . Property < string > ( "PositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งเดิม" ) ;
b . Property < string > ( "PositionTypeOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท" ) ;
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลที่ลาออกจากราชการ" ) ;
2025-01-13 16:52:51 +07:00
b . Property < string > ( "ReasonResign" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลที่ลาออกจากราชการ" ) ;
2024-11-08 16:58:53 +07:00
b . Property < string > ( "RejectReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลไม่อนุมัติ" ) ;
2024-12-13 21:39:00 +07:00
b . Property < string > ( "Remark" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลที่ลาออกจากราชการ(อื่นๆ)" ) ;
2024-11-08 16:58:53 +07:00
b . Property < string > ( "RemarkHorizontal" )
. HasColumnType ( "longtext" )
. HasComment ( "หมายเหตุแนวนอน" ) ;
b . Property < DateTime ? > ( "SendDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ยื่นขอออกราชการ" ) ;
b . Property < string > ( "Status" )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะลาออก" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child1DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1 old" ) ;
2024-11-08 16:58:53 +07:00
b . Property < string > ( "child1Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child1 old" ) ;
b . Property < string > ( "child1OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1 old" ) ;
b . Property < string > ( "child1ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child1 old" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child2DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2 old" ) ;
2024-11-08 16:58:53 +07:00
b . Property < string > ( "child2Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child2 old" ) ;
b . Property < string > ( "child2OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2 old" ) ;
b . Property < string > ( "child2ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child2 old" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child3DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3 old" ) ;
2024-11-08 16:58:53 +07:00
b . Property < string > ( "child3Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child3 old" ) ;
b . Property < string > ( "child3OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3 old" ) ;
b . Property < string > ( "child3ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child3 old" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "child4DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4 old" ) ;
2024-11-08 16:58:53 +07:00
b . Property < string > ( "child4Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child4 old" ) ;
b . Property < string > ( "child4OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4 old" ) ;
b . Property < string > ( "child4ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child4 old" ) ;
b . Property < string > ( "citizenId" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขบัตรประชาชน" ) ;
b . Property < string > ( "firstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "lastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุล" ) ;
b . Property < string > ( "posLevelNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อระดับตำแหน่ง old" ) ;
b . Property < string > ( "posLevelOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ระดับตำแหน่ง old" ) ;
b . Property < int? > ( "posMasterNoOld" )
. HasColumnType ( "int" )
. HasComment ( "เลขที่ตำแหน่ง old" ) ;
b . Property < string > ( "posTypeNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อประเภทตำแหน่ง old" ) ;
b . Property < string > ( "posTypeOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ประเภทตำแหน่ง old" ) ;
b . Property < string > ( "prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < string > ( "profileId" )
. HasColumnType ( "longtext" )
. HasComment ( "profile Id" ) ;
2025-02-05 17:48:58 +07:00
b . Property < string > ( "rootDnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root old" ) ;
2024-11-08 16:58:53 +07:00
b . Property < string > ( "rootOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน root old" ) ;
b . Property < string > ( "rootOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root old" ) ;
b . Property < string > ( "rootShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน root old" ) ;
b . HasKey ( "Id" ) ;
b . ToTable ( "RetirementResignEmployees" ) ;
} ) ;
2025-05-07 14:17:28 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "ApproveStatus" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "ApproveType" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "Comment" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
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 > ( "FirstName" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
b . Property < Guid > ( "KeycloakId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "LastName" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2025-05-07 17:13:57 +07:00
b . Property < string > ( "Org" )
. IsRequired ( )
2025-07-25 18:08:48 +07:00
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "PositionExecutiveName" )
. IsRequired ( )
2025-05-07 17:13:57 +07:00
. HasColumnType ( "longtext" ) ;
2025-05-07 14:17:28 +07:00
b . Property < string > ( "PositionName" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "Prefix" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
b . Property < Guid > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
2025-05-07 17:13:57 +07:00
b . Property < DateTime ? > ( "RejectDate" )
. HasColumnType ( "datetime(6)" ) ;
2025-05-07 14:17:28 +07:00
b . Property < Guid > ( "RetirementResignEmployeeId" )
. HasColumnType ( "char(36)" ) ;
b . Property < int > ( "Seq" )
. HasColumnType ( "int" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "RetirementResignEmployeeId" ) ;
b . ToTable ( "RetirementResignEmployeeApprovers" ) ;
} ) ;
2024-11-08 16:58:53 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < DateTime ? > ( "ActiveDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ขอออกราชการ" ) ;
b . Property < double? > ( "AmountOld" )
. HasColumnType ( "double" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เงินเดือน" ) ;
b . Property < string > ( "ApproveReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลอนุมัติ" ) ;
2025-05-27 19:48:38 +07:00
b . Property < string > ( "ApproveStep" )
. HasColumnType ( "longtext" )
. HasComment ( "step การอนุมัติ st1 = จทน.อนุมัตื,st2 = ผู้บังคับบัญชา อนุมัติ " ) ;
2024-11-08 16:58:53 +07:00
b . Property < string > ( "CancelReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลยกเลิก" ) ;
b . Property < string > ( "CommanderApproveReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลอนุมัติผู้บังคับบัญชา" ) ;
b . Property < bool? > ( "CommanderReject" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะยับยั้งผู้บังคับบัญชา" ) ;
b . Property < DateTime ? > ( "CommanderRejectDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ยับยั้งผู้บังคับบัญชา" ) ;
b . Property < string > ( "CommanderRejectReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลยับยั้งผู้บังคับบัญชา" ) ;
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 ที่สร้างข้อมูล" ) ;
2025-05-27 19:48:38 +07:00
b . Property < string > ( "Group" )
. HasColumnType ( "longtext" )
. HasComment ( "คนยื่นมาอยู่ในกลุ่ม" ) ;
2024-11-08 16:58:53 +07:00
b . Property < bool > ( "IsActive" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะการใช้งาน" ) ;
b . Property < bool > ( "IsDiscipline" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะพฤติการณ์ทางวินัย" ) ;
b . Property < bool > ( "IsNoBurden" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะไม่มีภาระผูกพันค้ำประกันทุนการศึกษา" ) ;
b . Property < bool > ( "IsNoDebt" )
. 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 > ( "Location" )
. HasColumnType ( "longtext" )
. HasComment ( "สถานที่ยื่นขอลาออกราชการ" ) ;
b . Property < string > ( "OfficerApproveReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลอนุมัติการเจ้าหน้าที่" ) ;
b . Property < bool? > ( "OfficerReject" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะยับยั้งการเจ้าหน้าที่" ) ;
b . Property < DateTime ? > ( "OfficerRejectDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ยับยั้งการเจ้าหน้าที่" ) ;
b . Property < string > ( "OfficerRejectReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลยับยั้งการเจ้าหน้าที่" ) ;
b . Property < string > ( "OligarchApproveReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลอนุมัติผู้ดูแล" ) ;
b . Property < bool? > ( "OligarchReject" )
. HasColumnType ( "tinyint(1)" )
. HasComment ( "สถานะยับยั้งผู้ดูแล" ) ;
b . Property < DateTime ? > ( "OligarchRejectDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ยับยั้งผู้ดูแล" ) ;
b . Property < string > ( "OligarchRejectReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลยับยั้งผู้ดูแล" ) ;
b . Property < string > ( "OrganizationOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัดเดิม" ) ;
b . Property < string > ( "OrganizationPositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "สังกัด" ) ;
b . Property < string > ( "PositionLevelOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ระดับ" ) ;
b . Property < string > ( "PositionNumberOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม เลขที่" ) ;
b . Property < string > ( "PositionOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ตำแหน่งเดิม" ) ;
b . Property < string > ( "PositionTypeOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท" ) ;
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลที่ลาออกจากราชการ" ) ;
b . Property < string > ( "RejectReason" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลไม่อนุมัติ" ) ;
2024-12-13 21:39:00 +07:00
b . Property < string > ( "Remark" )
. HasColumnType ( "longtext" )
. HasComment ( "เหตุผลที่ลาออกจากราชการ(อื่นๆ)" ) ;
2024-11-08 16:58:53 +07:00
b . Property < string > ( "RemarkHorizontal" )
. HasColumnType ( "longtext" )
. HasComment ( "หมายเหตุแนวนอน" ) ;
b . Property < Guid > ( "RetirementResignEmployeeId" )
. HasColumnType ( "char(36)" ) ;
b . Property < DateTime ? > ( "SendDate" )
. HasColumnType ( "datetime(6)" )
. HasComment ( "วันที่ยื่นขอออกราชการ" ) ;
b . Property < string > ( "Status" )
. HasColumnType ( "longtext" )
. HasComment ( "สถานะลาออก" ) ;
2025-06-20 01:24:57 +07:00
b . Property < string > ( "child1DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1 old" ) ;
2024-11-08 16:58:53 +07:00
b . Property < string > ( "child1Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child1 old" ) ;
b . Property < string > ( "child1OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child1 old" ) ;
b . Property < string > ( "child1ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child1 old" ) ;
2025-06-20 01:24:57 +07:00
b . Property < string > ( "child2DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2 old" ) ;
2024-11-08 16:58:53 +07:00
b . Property < string > ( "child2Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child2 old" ) ;
b . Property < string > ( "child2OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child2 old" ) ;
b . Property < string > ( "child2ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child2 old" ) ;
2025-06-20 01:24:57 +07:00
b . Property < string > ( "child3DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3 old" ) ;
2024-11-08 16:58:53 +07:00
b . Property < string > ( "child3Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child3 old" ) ;
b . Property < string > ( "child3OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child3 old" ) ;
b . Property < string > ( "child3ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child3 old" ) ;
2025-06-20 01:24:57 +07:00
b . Property < string > ( "child4DnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4 old" ) ;
2024-11-08 16:58:53 +07:00
b . Property < string > ( "child4Old" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน child4 old" ) ;
b . Property < string > ( "child4OldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน child4 old" ) ;
b . Property < string > ( "child4ShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน child4 old" ) ;
b . Property < string > ( "citizenId" )
. HasColumnType ( "longtext" )
. HasComment ( "เลขบัตรประชาชน" ) ;
b . Property < string > ( "firstName" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อ" ) ;
b . Property < string > ( "lastName" )
. HasColumnType ( "longtext" )
. HasComment ( "นามสกุล" ) ;
b . Property < string > ( "posLevelNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อระดับตำแหน่ง old" ) ;
b . Property < string > ( "posLevelOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ระดับตำแหน่ง old" ) ;
b . Property < int? > ( "posMasterNoOld" )
. HasColumnType ( "int" )
. HasComment ( "เลขที่ตำแหน่ง old" ) ;
b . Property < string > ( "posTypeNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อประเภทตำแหน่ง old" ) ;
b . Property < string > ( "posTypeOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id ประเภทตำแหน่ง old" ) ;
b . Property < string > ( "prefix" )
. HasColumnType ( "longtext" )
. HasComment ( "คำนำหน้า" ) ;
b . Property < string > ( "profileId" )
. HasColumnType ( "longtext" )
. HasComment ( "profile Id" ) ;
2025-06-20 01:24:57 +07:00
b . Property < string > ( "rootDnaOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root old" ) ;
2024-11-08 16:58:53 +07:00
b . Property < string > ( "rootOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อหน่วยงาน root old" ) ;
b . Property < string > ( "rootOldId" )
. HasColumnType ( "longtext" )
. HasComment ( "id หน่วยงาน root old" ) ;
b . Property < string > ( "rootShortNameOld" )
. HasColumnType ( "longtext" )
. HasComment ( "ชื่อย่อหน่วยงาน root old" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "RetirementResignEmployeeId" ) ;
b . ToTable ( "RetirementResignEmployeeCancels" ) ;
} ) ;
2025-05-07 14:17:28 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover" , b = >
{
b . Property < Guid > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "char(36)" )
. HasColumnOrder ( 0 )
. HasComment ( "PrimaryKey" )
. HasAnnotation ( "Relational:JsonPropertyName" , "id" ) ;
b . Property < string > ( "ApproveStatus" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "ApproveType" )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "Comment" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
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 > ( "FirstName" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
b . Property < Guid > ( "KeycloakId" )
. HasColumnType ( "char(36)" ) ;
b . Property < string > ( "LastName" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
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 ( "แก้ไขข้อมูลล่าสุดเมื่อ" ) ;
2025-05-27 19:48:38 +07:00
b . Property < string > ( "Org" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
2025-05-07 14:17:28 +07:00
b . Property < string > ( "PositionName" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "Prefix" )
. IsRequired ( )
. HasColumnType ( "longtext" ) ;
b . Property < Guid > ( "ProfileId" )
. HasColumnType ( "char(36)" ) ;
2025-05-27 19:48:38 +07:00
b . Property < DateTime ? > ( "RejectDate" )
. HasColumnType ( "datetime(6)" ) ;
2025-05-07 14:17:28 +07:00
b . Property < Guid > ( "RetirementResignEmployeeCancelId" )
. HasColumnType ( "char(36)" ) ;
b . Property < int > ( "Seq" )
. HasColumnType ( "int" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "RetirementResignEmployeeCancelId" ) ;
b . ToTable ( "RetirementResignEmployeeCancelApprovers" ) ;
} ) ;
2024-11-08 16:58:53 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc" , 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 < Guid > ( "DocumentId" )
. 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 > ( "RetirementResignEmployeeId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "DocumentId" ) ;
b . HasIndex ( "RetirementResignEmployeeId" ) ;
b . ToTable ( "RetirementResignEmployeeDebtDocs" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc" , 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 < Guid > ( "DocumentId" )
. 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 > ( "RetirementResignEmployeeId" )
. HasColumnType ( "char(36)" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "DocumentId" ) ;
b . HasIndex ( "RetirementResignEmployeeId" ) ;
b . ToTable ( "RetirementResignEmployeeDocs" ) ;
} ) ;
2023-07-13 15:03:29 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Commands.Core.Command" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Commands.Core.CommandStatus" , "CommandStatus" )
. WithMany ( )
. HasForeignKey ( "CommandStatusId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . HasOne ( "BMA.EHR.Domain.Models.Commands.Core.CommandType" , "CommandType" )
. WithMany ( )
. HasForeignKey ( "CommandTypeId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
2023-07-28 15:04:26 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Placement.Placement" , "Placement" )
. WithMany ( )
2023-08-25 10:32:43 +07:00
. HasForeignKey ( "PlacementId" ) ;
2023-07-28 15:04:26 +07:00
2023-07-13 15:03:29 +07:00
b . Navigation ( "CommandStatus" ) ;
b . Navigation ( "CommandType" ) ;
2023-07-28 15:04:26 +07:00
b . Navigation ( "Placement" ) ;
2023-07-13 15:03:29 +07:00
} ) ;
2023-07-27 10:22:51 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Commands.Core.CommandDeployment" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Commands.Core.Command" , "Command" )
. WithMany ( "Deployments" )
. HasForeignKey ( "CommandId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Command" ) ;
2023-07-13 15:03:29 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Commands.Core.CommandDocument" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Commands.Core.Command" , "Command" )
. WithMany ( "Documents" )
. HasForeignKey ( "CommandId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Command" ) ;
b . Navigation ( "Document" ) ;
} ) ;
2023-07-27 10:22:51 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Commands.Core.CommandReceiver" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Commands.Core.Command" , "Command" )
. WithMany ( "Receivers" )
. HasForeignKey ( "CommandId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Command" ) ;
} ) ;
2023-06-26 15:18:39 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.LimitTypeLeave" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.LimitLeave" , "LimitLeave" )
. WithMany ( "LimitTypeLeaves" )
. HasForeignKey ( "LimitLeaveId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.HR.TypeLeave" , "TypeLeave" )
. WithMany ( "LimitTypeLeaves" )
. HasForeignKey ( "TypeLeaveId" ) ;
b . Navigation ( "LimitLeave" ) ;
b . Navigation ( "TypeLeave" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.Profile" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Avatar" )
. WithMany ( )
. HasForeignKey ( "AvatarId" ) ;
2023-07-22 22:14:50 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.Gender" , "Gender" )
. WithMany ( )
. HasForeignKey ( "GenderId" ) ;
2023-06-26 15:18:39 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.HR.LimitLeave" , "LimitLeave" )
. WithMany ( "Profiles" )
. HasForeignKey ( "LimitLeaveId" ) ;
2023-07-22 22:14:50 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Organizations.PositionNumberEntity" , "PosNo" )
. WithMany ( )
. HasForeignKey ( "PosNoId" ) ;
2023-08-31 12:26:04 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionEmployeeGroup" , "PositionEmployeeGroup" )
. WithMany ( )
. HasForeignKey ( "PositionEmployeeGroupId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel" , "PositionEmployeeLevel" )
. WithMany ( )
. HasForeignKey ( "PositionEmployeeLevelId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine" , "PositionEmployeeLine" )
. WithMany ( )
. HasForeignKey ( "PositionEmployeeLineId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition" , "PositionEmployeePosition" )
. WithMany ( )
. HasForeignKey ( "PositionEmployeePositionId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide" , "PositionEmployeePositionSide" )
. WithMany ( )
. HasForeignKey ( "PositionEmployeePositionSideId" ) ;
2023-07-22 22:14:50 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionPath" , "Position" )
. WithMany ( )
. HasForeignKey ( "PositionId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionLevel" , "PositionLevel" )
. WithMany ( )
. HasForeignKey ( "PositionLevelId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionType" , "PositionType" )
. WithMany ( )
. HasForeignKey ( "PositionTypeId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.Prefix" , "Prefix" )
. WithMany ( )
. HasForeignKey ( "PrefixId" ) ;
2023-06-26 15:18:39 +07:00
b . Navigation ( "Avatar" ) ;
2023-07-22 22:14:50 +07:00
b . Navigation ( "Gender" ) ;
2023-06-26 15:18:39 +07:00
b . Navigation ( "LimitLeave" ) ;
2023-07-22 22:14:50 +07:00
b . Navigation ( "PosNo" ) ;
b . Navigation ( "Position" ) ;
2023-08-31 12:26:04 +07:00
b . Navigation ( "PositionEmployeeGroup" ) ;
b . Navigation ( "PositionEmployeeLevel" ) ;
b . Navigation ( "PositionEmployeeLine" ) ;
b . Navigation ( "PositionEmployeePosition" ) ;
b . Navigation ( "PositionEmployeePositionSide" ) ;
2023-07-22 22:14:50 +07:00
b . Navigation ( "PositionLevel" ) ;
b . Navigation ( "PositionType" ) ;
b . Navigation ( "Prefix" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileAbility" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "Abilitys" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileAbilityHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.ProfileAbility" , "ProfileAbility" )
. WithMany ( "ProfileAbilityHistorys" )
. HasForeignKey ( "ProfileAbilityId" ) ;
b . Navigation ( "ProfileAbility" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileAddressHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "AddressHistory" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileAssessment" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "Assessments" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileAssessmentHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.ProfileAssessment" , "ProfileAssessment" )
. WithMany ( "ProfileAssessmentHistorys" )
. HasForeignKey ( "ProfileAssessmentId" ) ;
b . Navigation ( "ProfileAssessment" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileAvatarHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "AvatarFile" )
. WithMany ( )
. HasForeignKey ( "AvatarFileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "AvatarHistory" )
. HasForeignKey ( "ProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "AvatarFile" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileCertificate" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "Certificates" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileCertificateHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.ProfileCertificate" , "ProfileCertificate" )
. WithMany ( "ProfileCertificateHistorys" )
. HasForeignKey ( "ProfileCertificateId" ) ;
b . Navigation ( "ProfileCertificate" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileChangeName" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "ChangeNames" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Document" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileChangeNameHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.HR.ProfileChangeName" , "ProfileChangeName" )
. WithMany ( "ProfileChangeNameHistorys" )
. HasForeignKey ( "ProfileChangeNameId" ) ;
b . Navigation ( "Document" ) ;
b . Navigation ( "ProfileChangeName" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileChildren" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "Childrens" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileChildrenHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.ProfileChildren" , null )
. WithMany ( "ProfileChildrenHistorys" )
. HasForeignKey ( "ProfileChildrenId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.HR.ProfileFamilyHistory" , null )
. WithMany ( "Childrens" )
. HasForeignKey ( "ProfileFamilyHistoryId" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileCoupleHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "CoupleHistory" )
. HasForeignKey ( "ProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileCurrentAddressHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "CurrentAddressHistory" )
. HasForeignKey ( "ProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileDiscipline" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "Disciplines" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileDisciplineHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.ProfileDiscipline" , "ProfileDiscipline" )
. WithMany ( "ProfileDisciplineHistorys" )
. HasForeignKey ( "ProfileDisciplineId" ) ;
b . Navigation ( "ProfileDiscipline" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileDuty" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "Dutys" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileDutyHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.ProfileDuty" , "ProfileDuty" )
. WithMany ( "ProfileDutyHistorys" )
. HasForeignKey ( "ProfileDutyId" ) ;
b . Navigation ( "ProfileDuty" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileEducation" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "Educations" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileEducationHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.ProfileEducation" , "ProfileEducation" )
. WithMany ( "ProfileEducationHistorys" )
. HasForeignKey ( "ProfileEducationId" ) ;
b . Navigation ( "ProfileEducation" ) ;
} ) ;
2023-10-24 18:22:20 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileEmployment" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "Employments" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileEmploymentHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.ProfileEmployment" , "ProfileEmployment" )
. WithMany ( )
. HasForeignKey ( "ProfileEmploymentId" ) ;
b . Navigation ( "ProfileEmployment" ) ;
} ) ;
2023-06-26 15:18:39 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileFamilyHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "FamilyHistory" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileFatherHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "FatherHistory" )
. HasForeignKey ( "ProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileGovernmentHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "GovernmentHistory" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "ProfileHistory" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileHonor" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "Honors" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileHonorHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.ProfileHonor" , "ProfileHonor" )
. WithMany ( "ProfileHonorHistorys" )
. HasForeignKey ( "ProfileHonorId" ) ;
b . Navigation ( "ProfileHonor" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileInsignia" , b = >
{
2023-07-22 22:14:50 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.Insignia" , "Insignia" )
. WithMany ( )
. HasForeignKey ( "InsigniaId" ) ;
2024-06-25 00:54:16 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , null )
2023-06-26 15:18:39 +07:00
. WithMany ( "Insignias" )
2024-06-25 00:54:16 +07:00
. HasForeignKey ( "ProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
2023-06-26 15:18:39 +07:00
2023-07-22 22:14:50 +07:00
b . Navigation ( "Insignia" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileInsigniaHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.ProfileInsignia" , "ProfileInsignia" )
. WithMany ( "ProfileInsigniaHistorys" )
. HasForeignKey ( "ProfileInsigniaId" ) ;
b . Navigation ( "ProfileInsignia" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileLeave" , b = >
{
2024-06-14 17:26:15 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , null )
2023-06-26 15:18:39 +07:00
. WithMany ( "Leaves" )
2024-06-14 17:26:15 +07:00
. HasForeignKey ( "ProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
2023-06-26 15:18:39 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.HR.TypeLeave" , "TypeLeave" )
. WithMany ( )
. HasForeignKey ( "TypeLeaveId" ) ;
b . Navigation ( "TypeLeave" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileLeaveHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.ProfileLeave" , "ProfileLeave" )
. WithMany ( "ProfileLeaveHistorys" )
. HasForeignKey ( "ProfileLeaveId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.HR.TypeLeave" , "TypeLeave" )
. WithMany ( )
. HasForeignKey ( "TypeLeaveId" ) ;
b . Navigation ( "ProfileLeave" ) ;
b . Navigation ( "TypeLeave" ) ;
} ) ;
2024-02-09 12:49:13 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileLeaveSummary" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "LeaveSummary" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
2023-06-26 15:18:39 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileMotherHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "MotherHistory" )
. HasForeignKey ( "ProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileNopaid" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "Nopaids" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileNopaidHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.ProfileNopaid" , "ProfileNopaid" )
. WithMany ( "ProfileNopaidHistorys" )
. HasForeignKey ( "ProfileNopaidId" ) ;
b . Navigation ( "ProfileNopaid" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileOther" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "Others" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileOtherHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.ProfileOther" , "ProfileOther" )
. WithMany ( "ProfileOtherHistorys" )
. HasForeignKey ( "ProfileOtherId" ) ;
b . Navigation ( "ProfileOther" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfilePaper" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "Papers" )
. HasForeignKey ( "ProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Document" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileRegistrationAddressHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "RegistrationAddressHistory" )
. HasForeignKey ( "ProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileSalary" , b = >
{
2023-07-22 22:14:50 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionLevel" , "PositionLevel" )
. WithMany ( )
. HasForeignKey ( "PositionLevelId" ) ;
2023-06-26 15:18:39 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "Salaries" )
. HasForeignKey ( "ProfileId" ) ;
2023-07-22 22:14:50 +07:00
b . Navigation ( "PositionLevel" ) ;
2023-06-26 15:18:39 +07:00
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileSalaryHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.ProfileSalary" , "ProfileSalary" )
. WithMany ( "ProfileSalaryHistorys" )
. HasForeignKey ( "ProfileSalaryId" ) ;
b . Navigation ( "ProfileSalary" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileSalaryPosition" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.Position" , "Position" )
. WithMany ( )
. HasForeignKey ( "PositionId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Position" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileTraining" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( "Trainings" )
. HasForeignKey ( "ProfileId" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileTrainingHistory" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.ProfileTraining" , "ProfileTraining" )
. WithMany ( "ProfileTrainingHistorys" )
. HasForeignKey ( "ProfileTrainingId" ) ;
b . Navigation ( "ProfileTraining" ) ;
} ) ;
2025-01-25 01:20:08 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaEmployee" , b = >
{
2025-01-27 10:14:54 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Insignias.InsigniaPeriod" , "InsigniaPeriod" )
2025-01-25 01:20:08 +07:00
. WithMany ( "InsigniaEmployees" )
2025-01-27 10:14:54 +07:00
. HasForeignKey ( "InsigniaPeriodId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "InsigniaPeriod" ) ;
2025-01-25 01:20:08 +07:00
} ) ;
2023-08-18 14:35:45 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaManage" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.Insignia" , "Insignia" )
. WithMany ( )
. HasForeignKey ( "InsigniaId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Insignia" ) ;
} ) ;
2023-08-25 18:18:28 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Insignias.InsigniaManage" , "InsigniaManage" )
. WithMany ( "InsigniaManageOrganiations" )
. HasForeignKey ( "InsigniaManageId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "InsigniaManage" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaManageProfile" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation" , "InsigniaManageOrganiation" )
. WithMany ( "InsigniaManageProfiles" )
. HasForeignKey ( "InsigniaManageOrganiationId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . HasOne ( "BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile" , "InsigniaNoteProfile" )
. WithMany ( )
. HasForeignKey ( "InsigniaNoteProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "InsigniaManageOrganiation" ) ;
b . Navigation ( "InsigniaNoteProfile" ) ;
} ) ;
2023-08-23 20:30:30 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaNoteDoc" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . HasOne ( "BMA.EHR.Domain.Models.Insignias.InsigniaNote" , "InsigniaNote" )
. WithMany ( "InsigniaNoteDocs" )
. HasForeignKey ( "InsigniaNoteId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Document" ) ;
b . Navigation ( "InsigniaNote" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile" , b = >
{
2023-09-26 17:51:18 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "DocReceiveInsignia" )
. WithMany ( )
. HasForeignKey ( "DocReceiveInsigniaId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "DocReturnInsignia" )
. WithMany ( )
. HasForeignKey ( "DocReturnInsigniaId" ) ;
2023-08-23 20:30:30 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Insignias.InsigniaNote" , "InsigniaNote" )
. WithMany ( "InsigniaNoteProfiles" )
. HasForeignKey ( "InsigniaNoteId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.Insignia" , "RequestInsignia" )
. WithMany ( )
. HasForeignKey ( "RequestInsigniaId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
2023-09-26 17:51:18 +07:00
b . Navigation ( "DocReceiveInsignia" ) ;
b . Navigation ( "DocReturnInsignia" ) ;
2023-08-23 20:30:30 +07:00
b . Navigation ( "InsigniaNote" ) ;
b . Navigation ( "RequestInsignia" ) ;
} ) ;
2023-08-04 16:17:57 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaPeriod" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "ReliefDoc" )
. WithMany ( )
. HasForeignKey ( "ReliefDocId" ) ;
b . Navigation ( "ReliefDoc" ) ;
} ) ;
2025-05-07 11:51:19 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaReclaimProfile" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Insignias.InsigniaNoteProfile" , "InsigniaNoteProfile" )
. WithMany ( )
. HasForeignKey ( "InsigniaNoteProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "InsigniaNoteProfile" ) ;
} ) ;
2023-07-19 10:25:54 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaRequest" , b = >
{
2023-09-26 17:51:18 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" ) ;
2023-07-19 10:25:54 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Insignias.InsigniaPeriod" , "Period" )
. WithMany ( "InsigniaRequests" )
. HasForeignKey ( "PeriodId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
2023-09-26 17:51:18 +07:00
b . Navigation ( "Document" ) ;
2023-07-19 10:25:54 +07:00
b . Navigation ( "Period" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaRequestProfile" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Insignias.InsigniaRequest" , "Request" )
. WithMany ( "RequestProfiles" )
. HasForeignKey ( "RequestId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.Insignia" , "RequestInsignia" )
. WithMany ( )
. HasForeignKey ( "RequestInsigniaId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Request" ) ;
b . Navigation ( "RequestInsignia" ) ;
} ) ;
2023-06-26 15:18:39 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.District" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.Province" , "Province" )
. WithMany ( "Districts" )
. HasForeignKey ( "ProvinceId" ) ;
b . Navigation ( "Province" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.Insignia" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.InsigniaType" , "InsigniaType" )
. WithMany ( )
. HasForeignKey ( "InsigniaTypeId" ) ;
b . Navigation ( "InsigniaType" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.Position" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide" , "ExecutiveSide" )
. WithMany ( )
. HasForeignKey ( "ExecutiveSideId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionPathSide" , "PathSide" )
. WithMany ( )
. HasForeignKey ( "PathSideId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionLevel" , "PositionLevel" )
. WithMany ( )
. HasForeignKey ( "PositionLevelId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionPath" , "PositionPath" )
. WithMany ( )
. HasForeignKey ( "PositionPathId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionType" , "PositionType" )
. WithMany ( )
. HasForeignKey ( "PositionTypeId" ) ;
b . Navigation ( "ExecutiveSide" ) ;
b . Navigation ( "PathSide" ) ;
b . Navigation ( "PositionLevel" ) ;
b . Navigation ( "PositionPath" ) ;
b . Navigation ( "PositionType" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.SubDistrict" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.District" , "District" )
. WithMany ( "SubDistricts" )
. HasForeignKey ( "DistrictId" ) ;
b . Navigation ( "District" ) ;
} ) ;
2023-07-13 09:01:47 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Organizations.OrganizationEntity" , "OrganizationAgency" )
. WithMany ( )
. HasForeignKey ( "OrganizationAgencyId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.OrganizationFax" , "OrganizationFax" )
. WithMany ( )
. HasForeignKey ( "OrganizationFaxId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.Organizations.OrganizationEntity" , "OrganizationGovernmentAgency" )
. WithMany ( )
. HasForeignKey ( "OrganizationGovernmentAgencyId" ) ;
2023-09-15 14:32:57 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Organizations.OrganizationEntity" , "Organization" )
. WithMany ( )
. HasForeignKey ( "OrganizationId" ) ;
2023-07-13 09:01:47 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.OrganizationLevel" , "OrganizationLevel" )
. WithMany ( )
. HasForeignKey ( "OrganizationLevelId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.OrganizationOrganization" , "OrganizationOrganization" )
. WithMany ( )
. HasForeignKey ( "OrganizationOrganizationId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.OrganizationShortName" , "OrganizationShortName" )
. WithMany ( )
. HasForeignKey ( "OrganizationShortNameId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal" , "OrganizationTelExternal" )
. WithMany ( )
. HasForeignKey ( "OrganizationTelExternalId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal" , "OrganizationTelInternal" )
. WithMany ( )
. HasForeignKey ( "OrganizationTelInternalId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.OrganizationType" , "OrganizationType" )
. WithMany ( )
. HasForeignKey ( "OrganizationTypeId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionEmployeeLine" , "PositionEmployeeLine" )
. WithMany ( )
. HasForeignKey ( "PositionEmployeeLineId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionEmployeePosition" , "PositionEmployeePosition" )
. WithMany ( )
. HasForeignKey ( "PositionEmployeePositionId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionEmployeeStatus" , "PositionEmployeeStatus" )
. WithMany ( )
. HasForeignKey ( "PositionEmployeeStatusId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( )
. HasForeignKey ( "ProfileId" ) ;
2023-09-15 14:32:57 +07:00
b . Navigation ( "Organization" ) ;
2023-07-13 09:01:47 +07:00
b . Navigation ( "OrganizationAgency" ) ;
b . Navigation ( "OrganizationFax" ) ;
b . Navigation ( "OrganizationGovernmentAgency" ) ;
b . Navigation ( "OrganizationLevel" ) ;
b . Navigation ( "OrganizationOrganization" ) ;
b . Navigation ( "OrganizationShortName" ) ;
b . Navigation ( "OrganizationTelExternal" ) ;
b . Navigation ( "OrganizationTelInternal" ) ;
b . Navigation ( "OrganizationType" ) ;
b . Navigation ( "PositionEmployeeLine" ) ;
b . Navigation ( "PositionEmployeePosition" ) ;
b . Navigation ( "PositionEmployeeStatus" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
2023-08-19 21:03:17 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationEmployeeProfile" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee" , "OrgEmployee" )
2023-08-23 20:30:30 +07:00
. WithMany ( "OrganizationEmployeeProfiles" )
2023-08-19 21:03:17 +07:00
. HasForeignKey ( "OrgEmployeeId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( )
. HasForeignKey ( "ProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "OrgEmployee" ) ;
b . Navigation ( "Profile" ) ;
} ) ;
2023-07-13 09:01:47 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeeLevel" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee" , "OrganizationEmployee" )
. WithMany ( "OrganizationPositionEmployeeLevels" )
. HasForeignKey ( "OrganizationEmployeeId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionEmployeeLevel" , "PositionEmployeeLevel" )
. WithMany ( )
. HasForeignKey ( "PositionEmployeeLevelId" ) ;
b . Navigation ( "OrganizationEmployee" ) ;
b . Navigation ( "PositionEmployeeLevel" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.OrganizationEmployee.OrganizationPositionEmployeePositionSide" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee" , "OrganizationEmployee" )
. WithMany ( "OrganizationPositionEmployeePositionSides" )
. HasForeignKey ( "OrganizationEmployeeId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionEmployeePositionSide" , "PositionEmployeePositionSide" )
. WithMany ( )
. HasForeignKey ( "PositionEmployeePositionSideId" ) ;
b . Navigation ( "OrganizationEmployee" ) ;
b . Navigation ( "PositionEmployeePositionSide" ) ;
} ) ;
2023-06-26 15:18:39 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.AvailablePositionLevelEntity" , b = >
{
2023-07-05 16:22:44 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionLevel" , "PositionLevel" )
. WithMany ( )
. HasForeignKey ( "PositionLevelId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.Organizations.PositionMasterEntity" , "PositionMaster" )
2023-06-26 15:18:39 +07:00
. WithMany ( )
. HasForeignKey ( "PositionMasterId" ) ;
2023-07-05 16:22:44 +07:00
b . Navigation ( "PositionLevel" ) ;
b . Navigation ( "PositionMaster" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.OrganizationEntity" , b = >
{
2023-07-05 16:22:44 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.OrganizationFax" , "OrganizationFax" )
. WithMany ( )
. HasForeignKey ( "OrganizationFaxId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.OrganizationLevel" , "OrganizationLevel" )
. WithMany ( )
. HasForeignKey ( "OrganizationLevelId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.OrganizationOrganization" , "OrganizationOrganization" )
. WithMany ( )
. HasForeignKey ( "OrganizationOrganizationId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.OrganizationShortName" , "OrganizationShortName" )
. WithMany ( )
. HasForeignKey ( "OrganizationShortNameId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.OrganizationStatus" , "OrganizationStatus" )
. WithMany ( )
. HasForeignKey ( "OrganizationStatusId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.OrganizationTelExternal" , "OrganizationTelExternal" )
. WithMany ( )
. HasForeignKey ( "OrganizationTelExternalId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.OrganizationTelInternal" , "OrganizationTelInternal" )
. WithMany ( )
. HasForeignKey ( "OrganizationTelInternalId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.OrganizationType" , "OrganizationType" )
. WithMany ( )
. HasForeignKey ( "OrganizationTypeId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.Organizations.OrganizationEntity" , "Parent" )
2023-06-26 15:18:39 +07:00
. WithMany ( "Organizations" )
. HasForeignKey ( "ParentId" ) ;
2023-07-05 16:22:44 +07:00
b . Navigation ( "OrganizationFax" ) ;
b . Navigation ( "OrganizationLevel" ) ;
b . Navigation ( "OrganizationOrganization" ) ;
b . Navigation ( "OrganizationShortName" ) ;
b . Navigation ( "OrganizationStatus" ) ;
b . Navigation ( "OrganizationTelExternal" ) ;
b . Navigation ( "OrganizationTelInternal" ) ;
b . Navigation ( "OrganizationType" ) ;
b . Navigation ( "Parent" ) ;
2023-06-26 15:18:39 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity" , b = >
{
2023-07-05 16:22:44 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Organizations.OrganizationEntity" , "Organization" )
2023-06-26 15:18:39 +07:00
. WithMany ( )
. HasForeignKey ( "OrganizationId" ) ;
2023-07-05 16:22:44 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Organizations.PositionMasterEntity" , "PositionMaster" )
2023-06-26 15:18:39 +07:00
. WithMany ( )
. HasForeignKey ( "PositionMasterId" ) ;
2023-07-05 16:22:44 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Organizations.PositionNumberEntity" , "PositionNumber" )
. WithMany ( )
. HasForeignKey ( "PositionNumberId" ) ;
b . Navigation ( "Organization" ) ;
b . Navigation ( "PositionMaster" ) ;
2023-06-26 15:18:39 +07:00
2023-07-05 16:22:44 +07:00
b . Navigation ( "PositionNumber" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.PositionMasterEntity" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionExecutive" , "PositionExecutive" )
. WithMany ( )
. HasForeignKey ( "PositionExecutiveId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionExecutiveSide" , "PositionExecutiveSide" )
. WithMany ( )
. HasForeignKey ( "PositionExecutiveSideId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionLine" , "PositionLine" )
. WithMany ( )
. HasForeignKey ( "PositionLineId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionPath" , "PositionPath" )
. WithMany ( )
. HasForeignKey ( "PositionPathId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionPathSide" , "PositionPathSide" )
. WithMany ( )
2024-05-02 09:31:38 +07:00
. HasForeignKey ( "PositionPathSideId" ) ;
2023-07-05 16:22:44 +07:00
2024-05-02 09:31:38 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionStatus" , "PositionStatus" )
2023-08-11 01:57:09 +07:00
. WithMany ( )
2024-05-02 09:31:38 +07:00
. HasForeignKey ( "PositionStatusId" ) ;
2023-07-05 16:22:44 +07:00
2024-05-02 09:31:38 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionType" , "PositionType" )
. WithMany ( )
. HasForeignKey ( "PositionTypeId" ) ;
2023-07-05 16:22:44 +07:00
2024-05-02 09:31:38 +07:00
b . Navigation ( "PositionExecutive" ) ;
2023-07-05 16:22:44 +07:00
2024-05-02 09:31:38 +07:00
b . Navigation ( "PositionExecutiveSide" ) ;
2023-07-05 16:22:44 +07:00
2024-05-02 09:31:38 +07:00
b . Navigation ( "PositionLine" ) ;
2023-10-11 10:04:52 +07:00
2024-05-02 09:31:38 +07:00
b . Navigation ( "PositionPath" ) ;
2023-07-05 16:22:44 +07:00
2024-05-02 09:31:38 +07:00
b . Navigation ( "PositionPathSide" ) ;
2023-10-11 10:04:52 +07:00
2024-05-02 09:31:38 +07:00
b . Navigation ( "PositionStatus" ) ;
2023-10-11 10:04:52 +07:00
2024-05-02 09:31:38 +07:00
b . Navigation ( "PositionType" ) ;
} ) ;
2023-10-11 10:04:52 +07:00
2024-05-02 09:31:38 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.PositionMasterHistoryEntity" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Organizations.PositionMasterEntity" , "PositionMasterEntity" )
. WithMany ( "PositionMasterHistorys" )
. HasForeignKey ( "PositionMasterEntityId" ) ;
2023-06-26 15:18:39 +07:00
2024-05-02 09:31:38 +07:00
b . Navigation ( "PositionMasterEntity" ) ;
} ) ;
2023-06-26 15:18:39 +07:00
2024-05-02 09:31:38 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.PositionNumberEntity" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.OrganizationShortName" , "OrganizationShortName" )
. WithMany ( )
. HasForeignKey ( "OrganizationShortNameId" ) ;
2023-06-26 15:18:39 +07:00
2024-05-02 09:31:38 +07:00
b . Navigation ( "OrganizationShortName" ) ;
} ) ;
2023-07-05 16:22:44 +07:00
2024-05-02 09:31:38 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.ProfilePosition" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity" , "OrganizationPosition" )
. WithMany ( )
. HasForeignKey ( "OrganizationPositionId" ) ;
2023-07-05 16:22:44 +07:00
2024-05-02 09:31:38 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( )
. HasForeignKey ( "ProfileId" ) ;
2023-07-05 16:22:44 +07:00
2024-05-02 09:31:38 +07:00
b . Navigation ( "OrganizationPosition" ) ;
2023-06-26 15:18:39 +07:00
2023-08-19 21:03:17 +07:00
b . Navigation ( "Profile" ) ;
2024-05-02 09:31:38 +07:00
} ) ;
2023-08-19 21:03:17 +07:00
2024-05-02 09:31:38 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.Report2.Report2History" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Organizations.Report2.Report2DetailHistory" , "Report2DetailHistory" )
. WithMany ( )
. HasForeignKey ( "Report2DetailHistoryId" ) ;
2023-07-05 16:22:44 +07:00
2024-05-02 09:31:38 +07:00
b . Navigation ( "Report2DetailHistory" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.Placement" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Placement.PlacementType" , "PlacementType" )
. WithMany ( )
. HasForeignKey ( "PlacementTypeId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "PlacementType" ) ;
} ) ;
2023-08-11 01:57:09 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementAppointmentDoc" , b = >
2023-06-26 15:18:39 +07:00
{
2023-08-11 01:57:09 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
2023-06-26 15:18:39 +07:00
. WithMany ( )
2023-08-11 01:57:09 +07:00
. HasForeignKey ( "DocumentId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
2023-06-26 15:18:39 +07:00
2023-08-11 01:57:09 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Placement.PlacementAppointment" , "PlacementAppointment" )
. WithMany ( "PlacementAppointmentDocs" )
. HasForeignKey ( "PlacementAppointmentId" )
2023-06-29 21:04:49 +07:00
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
2023-08-11 01:57:09 +07:00
b . Navigation ( "Document" ) ;
b . Navigation ( "PlacementAppointment" ) ;
2023-06-29 21:04:49 +07:00
} ) ;
2023-07-05 19:41:40 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementCertificate" , b = >
2023-06-29 10:41:00 +07:00
{
b . HasOne ( "BMA.EHR.Domain.Models.Placement.PlacementProfile" , "PlacementProfile" )
2023-07-05 19:41:40 +07:00
. WithMany ( "PlacementCertificates" )
2023-06-29 10:41:00 +07:00
. HasForeignKey ( "PlacementProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "PlacementProfile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementEducation" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Placement.PlacementProfile" , "PlacementProfile" )
2023-06-29 21:04:49 +07:00
. WithMany ( "PlacementEducations" )
2023-06-29 10:41:00 +07:00
. HasForeignKey ( "PlacementProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
2023-07-06 09:34:09 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionPath" , "PositionPath" )
. WithMany ( )
. HasForeignKey ( "PositionPathId" ) ;
2023-06-29 10:41:00 +07:00
b . Navigation ( "PlacementProfile" ) ;
2023-07-06 09:34:09 +07:00
b . Navigation ( "PositionPath" ) ;
2023-06-29 10:41:00 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementProfile" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Placement.Placement" , "Placement" )
2023-06-29 21:04:49 +07:00
. WithMany ( "PlacementProfiles" )
2023-06-29 10:41:00 +07:00
. HasForeignKey ( "PlacementId" ) ;
2023-09-07 19:03:53 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "ProfileImg" )
. WithMany ( )
. HasForeignKey ( "ProfileImgId" ) ;
2023-06-29 10:41:00 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "ReliefDoc" )
. WithMany ( )
. HasForeignKey ( "ReliefDocId" ) ;
b . Navigation ( "Placement" ) ;
2023-09-07 19:03:53 +07:00
b . Navigation ( "ProfileImg" ) ;
2023-06-29 10:41:00 +07:00
b . Navigation ( "ReliefDoc" ) ;
} ) ;
2023-07-13 15:03:29 +07:00
2023-10-08 12:41:53 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementProfileDoc" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . HasOne ( "BMA.EHR.Domain.Models.Placement.PlacementProfile" , "PlacementProfile" )
. WithMany ( "PlacementProfileDocs" )
. HasForeignKey ( "PlacementProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Document" ) ;
b . Navigation ( "PlacementProfile" ) ;
} ) ;
2023-08-05 17:53:07 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementReceive" , b = >
{
2023-08-29 17:41:16 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Avatar" )
. WithMany ( )
. HasForeignKey ( "AvatarId" ) ;
b . Navigation ( "Avatar" ) ;
2023-08-05 17:53:07 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementReceiveDoc" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . HasOne ( "BMA.EHR.Domain.Models.Placement.PlacementReceive" , "PlacementReceive" )
. WithMany ( "PlacementReceiveDocs" )
. HasForeignKey ( "PlacementReceiveId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Document" ) ;
b . Navigation ( "PlacementReceive" ) ;
} ) ;
2023-08-11 01:57:09 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementRelocation" , b = >
2023-08-05 17:53:07 +07:00
{
2023-08-11 01:57:09 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.BloodGroup" , "BloodGroup" )
2023-08-09 23:34:25 +07:00
. WithMany ( )
2023-08-11 01:57:09 +07:00
. HasForeignKey ( "BloodGroupId" ) ;
2023-08-09 23:34:25 +07:00
2023-08-11 01:57:09 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.Gender" , "Gender" )
2023-08-09 23:34:25 +07:00
. WithMany ( )
2023-08-11 01:57:09 +07:00
. HasForeignKey ( "GenderId" ) ;
2023-08-09 23:34:25 +07:00
2023-08-11 01:57:09 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Organizations.OrganizationPositionEntity" , "OrganizationPosition" )
2023-08-09 23:34:25 +07:00
. WithMany ( )
2023-08-11 01:57:09 +07:00
. HasForeignKey ( "OrganizationPositionId" ) ;
2023-08-09 23:34:25 +07:00
2023-08-11 01:57:09 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionLevel" , "PositionLevel" )
2023-08-09 23:34:25 +07:00
. WithMany ( )
2023-08-11 01:57:09 +07:00
. HasForeignKey ( "PositionLevelId" ) ;
2023-08-09 23:34:25 +07:00
2023-08-11 01:57:09 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.PositionLine" , "PositionLine" )
2023-08-05 17:53:07 +07:00
. WithMany ( )
2023-08-11 01:57:09 +07:00
. 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" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
2023-08-19 21:03:17 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( )
. HasForeignKey ( "ProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
2023-08-11 01:57:09 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.Relationship" , "Relationship" )
. WithMany ( )
. HasForeignKey ( "RelationshipId" ) ;
b . HasOne ( "BMA.EHR.Domain.Models.MetaData.Religion" , "Religion" )
. WithMany ( )
. HasForeignKey ( "ReligionId" ) ;
b . Navigation ( "BloodGroup" ) ;
b . Navigation ( "Gender" ) ;
b . Navigation ( "OrganizationPosition" ) ;
b . Navigation ( "PositionLevel" ) ;
b . Navigation ( "PositionLine" ) ;
b . Navigation ( "PositionNumber" ) ;
b . Navigation ( "PositionPath" ) ;
b . Navigation ( "PositionPathSide" ) ;
b . Navigation ( "PositionType" ) ;
b . Navigation ( "Prefix" ) ;
2023-08-19 21:03:17 +07:00
b . Navigation ( "Profile" ) ;
2023-08-11 01:57:09 +07:00
b . Navigation ( "Relationship" ) ;
b . Navigation ( "Religion" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementRelocationDoc" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . HasOne ( "BMA.EHR.Domain.Models.Placement.PlacementRelocation" , "PlacementRelocation" )
. WithMany ( "PlacementRelocationDocs" )
. HasForeignKey ( "PlacementRelocationId" )
2023-08-05 17:53:07 +07:00
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
2023-08-11 01:57:09 +07:00
b . Navigation ( "Document" ) ;
b . Navigation ( "PlacementRelocation" ) ;
} ) ;
2023-08-09 23:34:25 +07:00
2023-08-05 17:53:07 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementTransferDoc" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . HasOne ( "BMA.EHR.Domain.Models.Placement.PlacementTransfer" , "PlacementTransfer" )
. WithMany ( "PlacementTransferDocs" )
. HasForeignKey ( "PlacementTransferId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Document" ) ;
b . Navigation ( "PlacementTransfer" ) ;
} ) ;
2023-08-08 11:21:21 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementDeceased" , b = >
{
2023-09-14 00:10:03 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "DocumentForward" )
. WithMany ( )
. HasForeignKey ( "DocumentForwardId" ) ;
2023-08-08 11:21:21 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" ) ;
b . Navigation ( "Document" ) ;
2023-09-14 00:10:03 +07:00
b . Navigation ( "DocumentForward" ) ;
2023-08-08 11:21:21 +07:00
} ) ;
2023-09-01 15:21:27 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementDeceasedNoti" , b = >
{
2023-09-13 21:51:57 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" ) ;
2023-09-01 15:21:27 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Retirement.RetirementDeceased" , "RetirementDeceased" )
. WithMany ( "RetirementDeceasedNotis" )
. HasForeignKey ( "RetirementDeceasedId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
2023-09-13 21:51:57 +07:00
b . Navigation ( "Document" ) ;
2023-09-01 15:21:27 +07:00
b . Navigation ( "RetirementDeceased" ) ;
} ) ;
2023-08-11 01:57:09 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementDischarge" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( )
. HasForeignKey ( "ProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Profile" ) ;
} ) ;
2025-06-20 01:24:57 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementEmployeeQuestion" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee" , "RetirementResignEmployee" )
. WithMany ( )
. HasForeignKey ( "RetirementResignEmployeeId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "RetirementResignEmployee" ) ;
} ) ;
2023-08-11 01:57:09 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementExpulsion" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.HR.Profile" , "Profile" )
. WithMany ( )
. HasForeignKey ( "ProfileId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Profile" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementOther" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Commands.Core.CommandType" , "CommandType" )
. WithMany ( )
. HasForeignKey ( "CommandTypeId" ) ;
b . Navigation ( "CommandType" ) ;
2023-08-16 15:14:29 +07:00
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementOtherDoc" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . HasOne ( "BMA.EHR.Domain.Models.Retirement.RetirementOther" , "RetirementOther" )
. WithMany ( "RetirementOtherDocs" )
. HasForeignKey ( "RetirementOtherId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Document" ) ;
b . Navigation ( "RetirementOther" ) ;
2023-08-11 01:57:09 +07:00
} ) ;
2023-08-23 20:30:30 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementPeriod" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" ) ;
b . Navigation ( "Document" ) ;
} ) ;
2023-08-03 12:53:33 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementPeriodHistory" , b = >
{
2023-08-23 20:30:30 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" ) ;
2023-08-03 12:53:33 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Retirement.RetirementPeriod" , "RetirementPeriod" )
. WithMany ( "RetirementPeriodHistorys" )
. HasForeignKey ( "RetirementPeriodId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
2023-08-23 20:30:30 +07:00
b . Navigation ( "Document" ) ;
2023-08-03 12:53:33 +07:00
b . Navigation ( "RetirementPeriod" ) ;
} ) ;
2023-07-22 22:14:50 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementProfile" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Retirement.RetirementPeriod" , "RetirementPeriod" )
. WithMany ( "RetirementProfiles" )
. HasForeignKey ( "RetirementPeriodId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "RetirementPeriod" ) ;
} ) ;
2023-08-23 20:30:30 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementQuestion" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Retirement.RetirementResign" , "RetirementResign" )
2024-10-29 17:48:41 +07:00
. WithMany ( )
. HasForeignKey ( "RetirementResignId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "RetirementResign" ) ;
} ) ;
2025-01-28 13:11:20 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementRawProfile" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Retirement.RetirementPeriod" , "RetirementPeriod" )
. WithMany ( "RetirementRawProfiles" )
. HasForeignKey ( "RetirementPeriodId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "RetirementPeriod" ) ;
} ) ;
2025-05-07 14:17:28 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignApprover" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Retirement.RetirementResign" , "RetirementResign" )
. WithMany ( "Approvers" )
. HasForeignKey ( "RetirementResignId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "RetirementResign" ) ;
} ) ;
2024-10-29 17:48:41 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignCancel" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Retirement.RetirementResign" , "RetirementResign" )
2024-10-31 12:54:13 +07:00
. WithMany ( "RetirementResignCancels" )
2023-08-23 20:30:30 +07:00
. HasForeignKey ( "RetirementResignId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "RetirementResign" ) ;
} ) ;
2025-05-07 14:17:28 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignCancelApprover" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Retirement.RetirementResignCancel" , "RetirementResignCancel" )
. WithMany ( "Approvers" )
. HasForeignKey ( "RetirementResignCancelId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "RetirementResignCancel" ) ;
} ) ;
2024-05-21 19:41:55 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignDebtDoc" , b = >
2023-08-08 11:21:21 +07:00
{
2024-05-21 19:41:55 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
2023-08-08 11:21:21 +07:00
. WithMany ( )
2024-05-21 19:41:55 +07:00
. HasForeignKey ( "DocumentId" )
2023-08-08 11:21:21 +07:00
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
2024-05-21 19:41:55 +07:00
b . HasOne ( "BMA.EHR.Domain.Models.Retirement.RetirementResign" , "RetirementResign" )
. WithMany ( "RetirementResignDebtDocs" )
. HasForeignKey ( "RetirementResignId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Document" ) ;
b . Navigation ( "RetirementResign" ) ;
2023-08-08 11:21:21 +07:00
} ) ;
2023-08-23 20:30:30 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignDoc" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . HasOne ( "BMA.EHR.Domain.Models.Retirement.RetirementResign" , "RetirementResign" )
. WithMany ( "RetirementResignDocs" )
. HasForeignKey ( "RetirementResignId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Document" ) ;
b . Navigation ( "RetirementResign" ) ;
} ) ;
2025-05-07 14:17:28 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeApprover" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee" , "RetirementResignEmployee" )
. WithMany ( "Approvers" )
. HasForeignKey ( "RetirementResignEmployeeId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "RetirementResignEmployee" ) ;
} ) ;
2024-11-08 16:58:53 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee" , "RetirementResignEmployee" )
. WithMany ( "RetirementResignEmployeeCancels" )
. HasForeignKey ( "RetirementResignEmployeeId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "RetirementResignEmployee" ) ;
} ) ;
2025-05-07 14:17:28 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancelApprover" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel" , "RetirementResignEmployeeCancel" )
. WithMany ( "Approvers" )
. HasForeignKey ( "RetirementResignEmployeeCancelId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "RetirementResignEmployeeCancel" ) ;
} ) ;
2024-11-08 16:58:53 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDebtDoc" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . HasOne ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee" , "RetirementResignEmployee" )
. WithMany ( "RetirementResignEmployeeDebtDocs" )
. HasForeignKey ( "RetirementResignEmployeeId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Document" ) ;
b . Navigation ( "RetirementResignEmployee" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeDoc" , b = >
{
b . HasOne ( "BMA.EHR.Domain.Models.Documents.Document" , "Document" )
. WithMany ( )
. HasForeignKey ( "DocumentId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . HasOne ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee" , "RetirementResignEmployee" )
. WithMany ( "RetirementResignEmployeeDocs" )
. HasForeignKey ( "RetirementResignEmployeeId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
b . Navigation ( "Document" ) ;
b . Navigation ( "RetirementResignEmployee" ) ;
} ) ;
2023-07-13 15:03:29 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Commands.Core.Command" , b = >
{
2023-07-27 10:22:51 +07:00
b . Navigation ( "Deployments" ) ;
2023-07-13 15:03:29 +07:00
b . Navigation ( "Documents" ) ;
2023-07-27 10:22:51 +07:00
b . Navigation ( "Receivers" ) ;
2023-07-13 15:03:29 +07:00
} ) ;
2023-06-29 10:41:00 +07:00
2023-06-26 15:18:39 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.LimitLeave" , b = >
{
b . Navigation ( "LimitTypeLeaves" ) ;
b . Navigation ( "Profiles" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.Profile" , b = >
{
b . Navigation ( "Abilitys" ) ;
b . Navigation ( "AddressHistory" ) ;
b . Navigation ( "Assessments" ) ;
b . Navigation ( "AvatarHistory" ) ;
b . Navigation ( "Certificates" ) ;
b . Navigation ( "ChangeNames" ) ;
b . Navigation ( "Childrens" ) ;
b . Navigation ( "CoupleHistory" ) ;
b . Navigation ( "CurrentAddressHistory" ) ;
b . Navigation ( "Disciplines" ) ;
b . Navigation ( "Dutys" ) ;
b . Navigation ( "Educations" ) ;
2023-10-24 18:22:20 +07:00
b . Navigation ( "Employments" ) ;
2023-06-26 15:18:39 +07:00
b . Navigation ( "FamilyHistory" ) ;
b . Navigation ( "FatherHistory" ) ;
b . Navigation ( "GovernmentHistory" ) ;
b . Navigation ( "Honors" ) ;
b . Navigation ( "Insignias" ) ;
2024-02-09 12:49:13 +07:00
b . Navigation ( "LeaveSummary" ) ;
2023-06-26 15:18:39 +07:00
b . Navigation ( "Leaves" ) ;
b . Navigation ( "MotherHistory" ) ;
b . Navigation ( "Nopaids" ) ;
b . Navigation ( "Others" ) ;
b . Navigation ( "Papers" ) ;
b . Navigation ( "ProfileHistory" ) ;
b . Navigation ( "RegistrationAddressHistory" ) ;
b . Navigation ( "Salaries" ) ;
b . Navigation ( "Trainings" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileAbility" , b = >
{
b . Navigation ( "ProfileAbilityHistorys" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileAssessment" , b = >
{
b . Navigation ( "ProfileAssessmentHistorys" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileCertificate" , b = >
{
b . Navigation ( "ProfileCertificateHistorys" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileChangeName" , b = >
{
b . Navigation ( "ProfileChangeNameHistorys" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileChildren" , b = >
{
b . Navigation ( "ProfileChildrenHistorys" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileDiscipline" , b = >
{
b . Navigation ( "ProfileDisciplineHistorys" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileDuty" , b = >
{
b . Navigation ( "ProfileDutyHistorys" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileEducation" , b = >
{
b . Navigation ( "ProfileEducationHistorys" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileFamilyHistory" , b = >
{
b . Navigation ( "Childrens" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileHonor" , b = >
{
b . Navigation ( "ProfileHonorHistorys" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileInsignia" , b = >
{
b . Navigation ( "ProfileInsigniaHistorys" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileLeave" , b = >
{
b . Navigation ( "ProfileLeaveHistorys" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileNopaid" , b = >
{
b . Navigation ( "ProfileNopaidHistorys" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileOther" , b = >
{
b . Navigation ( "ProfileOtherHistorys" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileSalary" , b = >
{
b . Navigation ( "ProfileSalaryHistorys" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.ProfileTraining" , b = >
{
b . Navigation ( "ProfileTrainingHistorys" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.HR.TypeLeave" , b = >
{
b . Navigation ( "LimitTypeLeaves" ) ;
} ) ;
2023-08-25 18:18:28 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaManage" , b = >
{
b . Navigation ( "InsigniaManageOrganiations" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaManageOrganiation" , b = >
{
b . Navigation ( "InsigniaManageProfiles" ) ;
} ) ;
2023-08-23 20:30:30 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaNote" , b = >
{
b . Navigation ( "InsigniaNoteDocs" ) ;
b . Navigation ( "InsigniaNoteProfiles" ) ;
} ) ;
2023-07-19 10:25:54 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaPeriod" , b = >
{
2025-01-25 01:20:08 +07:00
b . Navigation ( "InsigniaEmployees" ) ;
2023-07-19 10:25:54 +07:00
b . Navigation ( "InsigniaRequests" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Insignias.InsigniaRequest" , b = >
{
b . Navigation ( "RequestProfiles" ) ;
} ) ;
2023-06-26 15:18:39 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.District" , b = >
{
b . Navigation ( "SubDistricts" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.MetaData.Province" , b = >
{
b . Navigation ( "Districts" ) ;
} ) ;
2023-07-13 09:01:47 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.OrganizationEmployee.OrgEmployee" , b = >
{
2023-08-23 20:30:30 +07:00
b . Navigation ( "OrganizationEmployeeProfiles" ) ;
2023-07-13 09:01:47 +07:00
b . Navigation ( "OrganizationPositionEmployeeLevels" ) ;
b . Navigation ( "OrganizationPositionEmployeePositionSides" ) ;
} ) ;
2023-06-26 15:18:39 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.OrganizationEntity" , b = >
{
b . Navigation ( "Organizations" ) ;
} ) ;
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Organizations.PositionMasterEntity" , b = >
{
b . Navigation ( "PositionMasterHistorys" ) ;
} ) ;
2023-06-29 21:04:49 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.Placement" , b = >
{
b . Navigation ( "PlacementProfiles" ) ;
} ) ;
2023-08-11 01:57:09 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementAppointment" , b = >
{
b . Navigation ( "PlacementAppointmentDocs" ) ;
} ) ;
2023-06-29 21:04:49 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementProfile" , b = >
{
2023-07-05 19:41:40 +07:00
b . Navigation ( "PlacementCertificates" ) ;
2023-06-29 21:04:49 +07:00
b . Navigation ( "PlacementEducations" ) ;
2023-10-08 12:41:53 +07:00
b . Navigation ( "PlacementProfileDocs" ) ;
2023-06-29 21:04:49 +07:00
} ) ;
2023-07-22 22:14:50 +07:00
2023-08-05 17:53:07 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementReceive" , b = >
{
b . Navigation ( "PlacementReceiveDocs" ) ;
} ) ;
2023-08-11 01:57:09 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementRelocation" , b = >
{
b . Navigation ( "PlacementRelocationDocs" ) ;
} ) ;
2023-08-05 17:53:07 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Placement.PlacementTransfer" , b = >
{
b . Navigation ( "PlacementTransferDocs" ) ;
} ) ;
2023-09-01 15:21:27 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementDeceased" , b = >
{
b . Navigation ( "RetirementDeceasedNotis" ) ;
} ) ;
2023-08-16 15:14:29 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementOther" , b = >
{
b . Navigation ( "RetirementOtherDocs" ) ;
} ) ;
2023-07-22 22:14:50 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementPeriod" , b = >
{
2023-08-03 12:53:33 +07:00
b . Navigation ( "RetirementPeriodHistorys" ) ;
2023-07-22 22:14:50 +07:00
b . Navigation ( "RetirementProfiles" ) ;
2025-01-28 13:11:20 +07:00
b . Navigation ( "RetirementRawProfiles" ) ;
2023-07-22 22:14:50 +07:00
} ) ;
2023-08-23 20:30:30 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResign" , b = >
{
2025-05-07 14:17:28 +07:00
b . Navigation ( "Approvers" ) ;
2024-10-31 12:54:13 +07:00
b . Navigation ( "RetirementResignCancels" ) ;
2024-05-21 19:41:55 +07:00
b . Navigation ( "RetirementResignDebtDocs" ) ;
2023-08-23 20:30:30 +07:00
b . Navigation ( "RetirementResignDocs" ) ;
} ) ;
2024-11-08 16:58:53 +07:00
2025-05-07 14:17:28 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignCancel" , b = >
{
b . Navigation ( "Approvers" ) ;
} ) ;
2024-11-08 16:58:53 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployee" , b = >
{
2025-05-07 14:17:28 +07:00
b . Navigation ( "Approvers" ) ;
2024-11-08 16:58:53 +07:00
b . Navigation ( "RetirementResignEmployeeCancels" ) ;
b . Navigation ( "RetirementResignEmployeeDebtDocs" ) ;
b . Navigation ( "RetirementResignEmployeeDocs" ) ;
} ) ;
2025-05-07 14:17:28 +07:00
modelBuilder . Entity ( "BMA.EHR.Domain.Models.Retirement.RetirementResignEmployeeCancel" , b = >
{
b . Navigation ( "Approvers" ) ;
} ) ;
2023-06-05 20:22:51 +07:00
#pragma warning restore 612 , 618
}
}
}