// Domain/Entities/HrLeave.cs using System; using Volo.Abp.Domain.Entities.Auditing; using Volo.Abp.MultiTenancy; namespace Erp.Platform.Entities; public class Leave : FullAuditedEntity, IMultiTenant { public Guid? TenantId { get; set; } public Guid EmployeeId { get; set; } public Employee Employee { get; set; } public string LeaveType { get; set; } public DateTime StartDate { get; set; } public DateTime EndDate { get; set; } public decimal TotalDays { get; set; } public bool IsHalfDay { get; set; } public string Reason { get; set; } public string Status { get; set; } public DateTime AppliedDate { get; set; } public Guid? ApprovedById { get; set; } public DateTime? ApprovedDate { get; set; } public string RejectionReason { get; set; } public string Attachments { get; set; } // JSON string (from string[]) }