// 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"); }); 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("CheckOut") .HasColumnType("datetime(6)") .HasComment("วัน เวลา ออกงาน"); b.Property("CreatedAt") .HasColumnType("datetime(6)") .HasColumnOrder(100) .HasComment("สร้างข้อมูลเมื่อ"); b.Property("CreatedFullName") .IsRequired() .HasMaxLength(200) .HasColumnType("varchar(200)") .HasColumnOrder(104) .HasComment("ชื่อ User ที่สร้างข้อมูล"); b.Property("CreatedUserId") .IsRequired() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnOrder(101) .HasComment("User Id ที่สร้างข้อมูล"); b.Property("ImageUrl") .IsRequired() .HasColumnType("longtext") .HasComment("รูปถ่ายสถานที่ checkin/checkout"); b.Property("IsLocation") .HasColumnType("tinyint(1)") .HasComment("true คือ ณ สถานที่ตั้ง, false คือ นอกสถานที่ตั้ง"); 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.Property("Lat") .HasColumnType("double") .HasComment("พิกัดละติจูด"); b.Property("LocationName") .HasColumnType("longtext") .HasComment("กรณีเลือกนอกสถานที่ตั้ง ต้องระบุข้อมูลชื่อสถานะที่"); b.Property("Lon") .HasColumnType("double") .HasComment("พิกัดลองจิจูด"); b.Property("POI") .IsRequired() .HasColumnType("longtext") .HasComment("ชื่อสถานที่ ได้มาจากระบบ ArcGis ของกองสารสนเทศภูมิศาสตร์"); b.Property("Remark") .HasColumnType("longtext") .HasComment("ข้อความหมายเหตุที่ต้องการระบุเพิ่ม(มีเผื่อไว้อาจไม่ได้ใช้)"); b.HasKey("Id"); b.ToTable("UserTimeStamps"); }); #pragma warning restore 612, 618 } } }