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

namespace Marco.Pms.Model.Employees
{
    public class EmployeeRoleMapping : TenantRelation
    {
        public Guid Id { get; set; }
        public Guid EmployeeId { get; set; }
        [ValidateNever]
        [ForeignKey(nameof(EmployeeId))]
        public Employee? Employee { get; set; } // Navigation property to Employee

        public Guid RoleId { get; set; }
        [ValidateNever]
        [ForeignKey(nameof(RoleId))]
        public ApplicationRole? Role { get; set; }


        public bool IsEnabled { get; set; }
    }
}


