41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using Marco.Pms.Model.Employees;
|
|
using Marco.Pms.Model.Entitlements;
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
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 Guid? EmployeeRoleId { 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; }
|
|
}
|
|
}
|