using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using BMA.EHR.Domain.Models.Base; using BMA.EHR.Domain.Models.MetaData; using BMA.EHR.Domain.Models.Organizations; using BMA.EHR.Domain.Models.Documents; using BMA.EHR.Domain.Models.HR; namespace BMA.EHR.Domain.Models.Retirement { public class RetirementDeceasedNoti : EntityBase { [Comment("profile Id")] public string? profileId { get; set; } [Comment("Fk Table RetirementDeceased")] public RetirementDeceased RetirementDeceased { get; set; } [MaxLength(13), Required, Comment("เลขประจำตัวประชาชน")] public string CitizenId { get; set; } = string.Empty; [MaxLength(50), Required, Comment("คำนำหน้านาม")] public string Prefix { get; set; } = string.Empty; [MaxLength(100), Required, Comment("ชื่อ")] public string FirstName { get; set; } = string.Empty; [MaxLength(100), Required, Comment("นามสกุล")] public string LastName { get; set; } = string.Empty; [Required, Comment("ส่งอีเมล์หรือไม่?")] public bool IsSendMail { get; set; } = true; [Required, Comment("ส่งกล่องข้อความหรือไม่?")] public bool IsSendInbox { get; set; } = true; [Required, Comment("ส่งแจ้งเตือนหรือไม่?")] public bool IsSendNotification { get; set; } = true; [Comment("ชื่อหน่วยงานของผู้รับสำเนาคำสั่ง")] public string? OrganizationName { get; set; } = string.Empty; [Comment("ชื่อตำแหน่งของผู้รับสำเนาคำสั่ง")] public string? PositionName { get; set; } = string.Empty; [Comment("Fk Table Document")] public Document? Document { get; set; } } }