erp-platform/api/src/Erp.Platform.Domain/Entities/Tenant/Hr/Leave.cs

29 lines
892 B
C#
Raw Normal View History

2025-11-11 19:49:52 +00:00
// Domain/Entities/HrLeave.cs
2025-10-22 12:16:34 +00:00
using System;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
2025-11-11 19:49:52 +00:00
namespace Erp.Platform.Entities;
2025-10-22 12:16:34 +00:00
public class Leave : FullAuditedEntity<Guid>, IMultiTenant
{
public Guid? TenantId { get; set; }
public Guid EmployeeId { get; set; }
2025-10-23 08:35:35 +00:00
public Employee Employee { get; set; }
2025-10-22 12:16:34 +00:00
public string LeaveType { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
2025-10-23 08:35:35 +00:00
public decimal TotalDays { get; set; }
2025-10-22 12:16:34 +00:00
public bool IsHalfDay { get; set; }
2025-10-23 08:35:35 +00:00
public string Reason { get; set; }
2025-10-22 12:16:34 +00:00
public string Status { get; set; }
public DateTime AppliedDate { get; set; }
2025-10-23 08:35:35 +00:00
public Guid? ApprovedById { get; set; }
2025-10-22 12:16:34 +00:00
public DateTime? ApprovedDate { get; set; }
2025-10-23 08:35:35 +00:00
public string RejectionReason { get; set; }
public string Attachments { get; set; } // JSON string (from string[])
2025-10-22 12:16:34 +00:00
}
2025-11-11 19:49:52 +00:00