marco.pms.api/Marco.Pms.Model/Projects/ProjectAllocation.cs

41 lines
1.1 KiB
C#

using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using Marco.Pms.Model.Employees;
using Marco.Pms.Model.Entitlements;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
namespace Marco.Pms.Model.Projects
{
public class ProjectAllocation
{
public int Id { get; set; }
public int EmployeeId { get; set; }
[ForeignKey("EmployeeId")]
[ValidateNever]
public Employee Employee { get; set; }
public int? JobRoleId { get; set; }
//[ForeignKey("EmployeeRoleId")]
//[ValidateNever]
//public EmployeeRole EmployeeRole { get; set; }
public bool IsActive { get; set; } = true;
public int ProjectId { get; set; }
[ForeignKey("ProjectId")]
[ValidateNever]
public Project Project { get; set; }
public DateTime AllocationDate { get; set; }
public DateTime? ReAllocationDate { get; set; }
[DisplayName("TenantId")]
public int TenantId { get; set; }
[ValidateNever]
[ForeignKey(nameof(TenantId))]
public Tenant Tenant { get; set; }
}
}