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

namespace Marco.Pms.Model.Entitlements
{
    public class ProjectLevelPermissionMapping : TenantRelation
    {
        public Guid Id { get; set; }
        public Guid EmployeeId { get; set; }

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

        [ValidateNever]
        [ForeignKey("ProjectId")]
        public Project? Project { get; set; }
        public Guid PermissionId { get; set; }

        [ValidateNever]
        [ForeignKey("PermissionId")]
        public FeaturePermission? Permission { get; set; }
    }
}
