using Marco.Pms.Model.Employees; using Marco.Pms.Model.Entitlements; using Marco.Pms.Model.Projects; using Marco.Pms.Utility; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; using System.ComponentModel; using System.ComponentModel.DataAnnotations.Schema; namespace Marco.Pms.Model.Activities { public class TaskAllocation { public int Id { get; set; } public int EmployeeId { get; set; } [ForeignKey("EmployeeId")] [ValidateNever] public Employee Employee { get; set; } public EMP_ROLES EmployeeRole { get; set; } public int ProjectId { get; set; } [ForeignKey("ProjectId")] [ValidateNever] public Project Project { get; set; } public int BuildingId { get; set; } [ForeignKey("BuildingId")] [ValidateNever] public Building Building { get; set; } public DateTime AllocationDate { get; set; } public DateTime ReAllocationDate { get; set; } public int WorkAreaId { get; set; } [ForeignKey("WorkAreaId")] [ValidateNever] public WorkArea WorkArea { get; set; } public List AllotedTask { get; set; } [DisplayName("TenantId")] public int TenantId { get; set; } [ValidateNever] [ForeignKey(nameof(TenantId))] public Tenant Tenant { get; set; } } }