using BMA.EHR.Domain.Models.Base; using BMA.EHR.Domain.Models.Leave.Commons; using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; namespace BMA.EHR.Domain.Models.Leave.Requests { public class LeaveBeginning : EntityBase { [Required, Comment("รหัส Profile ในระบบทะเบียนประวัติ")] public Guid ProfileId { get; set; } = Guid.Empty; [Required, Comment("รหัสประเภทการลา")] public Guid LeaveTypeId { get; set; } = Guid.Empty; public LeaveType LeaveType { get; set; } [Required, Comment("ปีงบประมาณ")] public int LeaveYear { get; set; } = 0; [Required, Comment("จำนวนวันลา")] public double LeaveDays { get; set; } = 0.0; } }