using System.ComponentModel.DataAnnotations.Schema;
using Marco.Pms.Model.Employees;
using Marco.Pms.Model.Utilities;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;

namespace Marco.Pms.Model.Activities
{
    public class TaskMembers : TenantRelation
    {
        public Guid Id { get; set; }

        public Guid TaskAllocationId { get; set; }
        [ValidateNever]
        [ForeignKey(nameof(TaskAllocationId))]
        public TaskAllocation? TaskAllocation { get; set; }

        public Guid EmployeeId { get; set; }
        [ForeignKey("EmployeeId")]
        [ValidateNever]
        public Employee? Employee { get; set; }
    }
}
