// using System; using BMA.EHR.Infrastructure.Persistence; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace BMA.EHR.Infrastructure.Migrations.LeaveDb { [DbContext(typeof(LeaveDbContext))] partial class LeaveDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "7.0.9") .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.DutyTime", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)") .HasColumnOrder(0) .HasComment("PrimaryKey") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("CreatedAt") .HasColumnType("datetime(6)") .HasColumnOrder(100) .HasComment("สร้างข้อมูลเมื่อ"); b.Property("CreatedFullName") .IsRequired() .HasMaxLength(200) .HasColumnType("varchar(200)") .HasColumnOrder(104) .HasComment("ชื่อ User ที่สร้างข้อมูล"); b.Property("CreatedUserId") .IsRequired() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnOrder(101) .HasComment("User Id ที่สร้างข้อมูล"); b.Property("Description") .IsRequired() .HasColumnType("longtext") .HasComment("คำอธิบาย"); b.Property("EndTimeAfternoon") .IsRequired() .HasColumnType("longtext") .HasComment("เวลาออกงานช่วงบ่าย"); b.Property("EndTimeMorning") .IsRequired() .HasColumnType("longtext") .HasComment("เวลาออกงานช่วงเช้า"); b.Property("IsActive") .HasColumnType("tinyint(1)") .HasComment("สถานะการเปิดใช้งาน (เปิด/ปิด)"); b.Property("IsDefault") .HasColumnType("tinyint(1)") .HasComment("สถานะว่ารอบใดเป็นค่า Default ของข้าราชการ (สำหรับทุกคนที่ยังไม่ได้ทำการเลือกรอบ)"); b.Property("LastUpdateFullName") .IsRequired() .HasMaxLength(200) .HasColumnType("varchar(200)") .HasColumnOrder(105) .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); b.Property("LastUpdateUserId") .IsRequired() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnOrder(103) .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); b.Property("LastUpdatedAt") .HasColumnType("datetime(6)") .HasColumnOrder(102) .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); b.Property("StartTimeAfternoon") .IsRequired() .HasColumnType("longtext") .HasComment("เวลาเข้างานช่วงบ่าย"); b.Property("StartTimeMorning") .IsRequired() .HasColumnType("longtext") .HasComment("เวลาเข้างานช่วงเช้า"); b.HasKey("Id"); b.ToTable("DutyTimes", (string)null); }); modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.ProcessUserTimeStamp", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)") .HasColumnOrder(0) .HasComment("PrimaryKey") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("CheckIn") .HasColumnType("datetime(6)") .HasComment("วัน เวลา เข้างาน"); b.Property("CheckInImageUrl") .IsRequired() .HasColumnType("longtext") .HasComment("รูปถ่ายสถานที่ Check-In"); b.Property("CheckInLat") .HasColumnType("double") .HasComment("พิกัดละติจูด Check-In"); b.Property("CheckInLocationName") .HasColumnType("longtext") .HasComment("กรณีเลือกนอกสถานที่ตั้ง ต้องระบุข้อมูลชื่อสถานะที่ Check-In"); b.Property("CheckInLon") .HasColumnType("double") .HasComment("พิกัดลองจิจูด Check-In"); b.Property("CheckInPOI") .IsRequired() .HasColumnType("longtext") .HasComment("ชื่อสถานที่ ได้มาจากระบบ ArcGis ของกองสารสนเทศภูมิศาสตร์ Check-In"); b.Property("CheckInRemark") .HasColumnType("longtext") .HasComment("ข้อความหมายเหตุที่ต้องการระบุเพิ่ม(มีเผื่อไว้อาจไม่ได้ใช้) Check-In"); b.Property("CheckInStatus") .IsRequired() .HasColumnType("longtext") .HasComment("สถานะ Check-In"); b.Property("CheckOut") .HasColumnType("datetime(6)") .HasComment("วัน เวลา ออกงาน"); b.Property("CheckOutImageUrl") .IsRequired() .HasColumnType("longtext") .HasComment("รูปถ่ายสถานที่ Check-Out"); b.Property("CheckOutLat") .HasColumnType("double") .HasComment("พิกัดละติจูด Check-Out"); b.Property("CheckOutLocationName") .HasColumnType("longtext") .HasComment("กรณีเลือกนอกสถานที่ตั้ง ต้องระบุข้อมูลชื่อสถานะที่ Check-Out"); b.Property("CheckOutLon") .HasColumnType("double") .HasComment("พิกัดลองจิจูด Check-Out"); b.Property("CheckOutPOI") .IsRequired() .HasColumnType("longtext") .HasComment("ชื่อสถานที่ ได้มาจากระบบ ArcGis ของกองสารสนเทศภูมิศาสตร์ Check-Out"); b.Property("CheckOutRemark") .HasColumnType("longtext") .HasComment("ข้อความหมายเหตุที่ต้องการระบุเพิ่ม(มีเผื่อไว้อาจไม่ได้ใช้) Check-Out"); b.Property("CheckOutStatus") .HasColumnType("longtext") .HasComment("สถานะ Check-Out"); b.Property("CreatedAt") .HasColumnType("datetime(6)") .HasColumnOrder(100) .HasComment("สร้างข้อมูลเมื่อ"); b.Property("CreatedFullName") .IsRequired() .HasMaxLength(200) .HasColumnType("varchar(200)") .HasColumnOrder(104) .HasComment("ชื่อ User ที่สร้างข้อมูล"); b.Property("CreatedUserId") .IsRequired() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnOrder(101) .HasComment("User Id ที่สร้างข้อมูล"); b.Property("IsLocationCheckIn") .HasColumnType("tinyint(1)") .HasComment("true คือ ณ สถานที่ตั้ง, false คือ นอกสถานที่ตั้ง Check-In"); b.Property("IsLocationCheckOut") .HasColumnType("tinyint(1)") .HasComment("true คือ ณ สถานที่ตั้ง, false คือ นอกสถานที่ตั้ง Check-Out"); b.Property("IsProcess") .HasColumnType("tinyint(1)") .HasComment("นำไปประมวลผลแล้วหรือยัง"); b.Property("KeycloakUserId") .HasColumnType("char(36)") .HasComment("รหัส User ของ Keycloak"); b.Property("LastUpdateFullName") .IsRequired() .HasMaxLength(200) .HasColumnType("varchar(200)") .HasColumnOrder(105) .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); b.Property("LastUpdateUserId") .IsRequired() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnOrder(103) .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); b.Property("LastUpdatedAt") .HasColumnType("datetime(6)") .HasColumnOrder(102) .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); b.HasKey("Id"); b.ToTable("ProcessUserTimeStamps", (string)null); }); modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserDutyTime", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)") .HasColumnOrder(0) .HasComment("PrimaryKey") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("CreatedAt") .HasColumnType("datetime(6)") .HasColumnOrder(100) .HasComment("สร้างข้อมูลเมื่อ"); b.Property("CreatedFullName") .IsRequired() .HasMaxLength(200) .HasColumnType("varchar(200)") .HasColumnOrder(104) .HasComment("ชื่อ User ที่สร้างข้อมูล"); b.Property("CreatedUserId") .IsRequired() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnOrder(101) .HasComment("User Id ที่สร้างข้อมูล"); b.Property("DutyTimeId") .HasColumnType("char(36)") .HasComment("รหัสรอบการลงเวลา"); b.Property("EffectiveDate") .HasColumnType("datetime(6)") .HasComment("วันที่มีผล"); b.Property("IsProcess") .HasColumnType("tinyint(1)") .HasComment("ทำการประมวลผลแล้วหรือยัง"); b.Property("LastUpdateFullName") .IsRequired() .HasMaxLength(200) .HasColumnType("varchar(200)") .HasColumnOrder(105) .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); b.Property("LastUpdateUserId") .IsRequired() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnOrder(103) .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); b.Property("LastUpdatedAt") .HasColumnType("datetime(6)") .HasColumnOrder(102) .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); b.Property("ProfileId") .HasColumnType("char(36)") .HasComment("รหัส Profile ในระบบทะเบียนประวัติ"); b.Property("Remark") .HasColumnType("longtext") .HasComment("หมายเหตุ"); b.HasKey("Id"); b.ToTable("UserDutyTimes", (string)null); }); modelBuilder.Entity("BMA.EHR.Domain.Models.Leave.TimeAttendants.UserTimeStamp", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)") .HasColumnOrder(0) .HasComment("PrimaryKey") .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("CheckIn") .HasColumnType("datetime(6)") .HasComment("วัน เวลา เข้างาน"); b.Property("CheckInImageUrl") .IsRequired() .HasColumnType("longtext") .HasComment("รูปถ่ายสถานที่ Check-In"); b.Property("CheckInLat") .HasColumnType("double") .HasComment("พิกัดละติจูด Check-In"); b.Property("CheckInLocationName") .HasColumnType("longtext") .HasComment("กรณีเลือกนอกสถานที่ตั้ง ต้องระบุข้อมูลชื่อสถานะที่ Check-In"); b.Property("CheckInLon") .HasColumnType("double") .HasComment("พิกัดลองจิจูด Check-In"); b.Property("CheckInPOI") .IsRequired() .HasColumnType("longtext") .HasComment("ชื่อสถานที่ ได้มาจากระบบ ArcGis ของกองสารสนเทศภูมิศาสตร์ Check-In"); b.Property("CheckInRemark") .HasColumnType("longtext") .HasComment("ข้อความหมายเหตุที่ต้องการระบุเพิ่ม(มีเผื่อไว้อาจไม่ได้ใช้) Check-In"); b.Property("CheckOut") .HasColumnType("datetime(6)") .HasComment("วัน เวลา ออกงาน"); b.Property("CheckOutImageUrl") .IsRequired() .HasColumnType("longtext") .HasComment("รูปถ่ายสถานที่ Check-Out"); b.Property("CheckOutLat") .HasColumnType("double") .HasComment("พิกัดละติจูด Check-Out"); b.Property("CheckOutLocationName") .HasColumnType("longtext") .HasComment("กรณีเลือกนอกสถานที่ตั้ง ต้องระบุข้อมูลชื่อสถานะที่ Check-Out"); b.Property("CheckOutLon") .HasColumnType("double") .HasComment("พิกัดลองจิจูด Check-Out"); b.Property("CheckOutPOI") .IsRequired() .HasColumnType("longtext") .HasComment("ชื่อสถานที่ ได้มาจากระบบ ArcGis ของกองสารสนเทศภูมิศาสตร์ Check-Out"); b.Property("CheckOutRemark") .HasColumnType("longtext") .HasComment("ข้อความหมายเหตุที่ต้องการระบุเพิ่ม(มีเผื่อไว้อาจไม่ได้ใช้) Check-Out"); b.Property("CreatedAt") .HasColumnType("datetime(6)") .HasColumnOrder(100) .HasComment("สร้างข้อมูลเมื่อ"); b.Property("CreatedFullName") .IsRequired() .HasMaxLength(200) .HasColumnType("varchar(200)") .HasColumnOrder(104) .HasComment("ชื่อ User ที่สร้างข้อมูล"); b.Property("CreatedUserId") .IsRequired() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnOrder(101) .HasComment("User Id ที่สร้างข้อมูล"); b.Property("IsLocationCheckIn") .HasColumnType("tinyint(1)") .HasComment("true คือ ณ สถานที่ตั้ง, false คือ นอกสถานที่ตั้ง Check-In"); b.Property("IsLocationCheckOut") .HasColumnType("tinyint(1)") .HasComment("true คือ ณ สถานที่ตั้ง, false คือ นอกสถานที่ตั้ง Check-Out"); b.Property("IsProcess") .HasColumnType("tinyint(1)") .HasComment("นำไปประมวลผลแล้วหรือยัง"); b.Property("KeycloakUserId") .HasColumnType("char(36)") .HasComment("รหัส User ของ Keycloak"); b.Property("LastUpdateFullName") .IsRequired() .HasMaxLength(200) .HasColumnType("varchar(200)") .HasColumnOrder(105) .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); b.Property("LastUpdateUserId") .IsRequired() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnOrder(103) .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); b.Property("LastUpdatedAt") .HasColumnType("datetime(6)") .HasColumnOrder(102) .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); b.HasKey("Id"); b.ToTable("UserTimeStamps", (string)null); }); #pragma warning restore 612, 618 } } }