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

namespace Marco.Pms.Model.OrganizationModel
{
    public class TenantOrgMapping : TenantRelation
    {
        public Guid Id { get; set; }
        public Guid OrganizationId { get; set; }

        [ValidateNever]
        [ForeignKey("OrganizationId")]
        public Organization? Organization { get; set; }
        public double SPRID { get; set; }
        public bool IsActive { get; set; } = true;
        public Guid AssignedById { get; set; }

        [ValidateNever]
        [ForeignKey("AssignedById")]
        public Employee? AssignedBy { get; set; }
        public DateTime AssignedDate { get; set; }
        public DateTime? ReassignedDate { get; set; }
    }
}
