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

namespace Marco.Pms.Model.Directory
{
    public class ContactProjectMapping : TenantRelation
    {
        public Guid Id { get; set; }
        public Guid ProjectId { get; set; }
        [ValidateNever]
        [ForeignKey("ProjectId")]
        public Project? Project { get; set; }
        public Guid ContactId { get; set; }
        [ValidateNever]
        [ForeignKey("ContactId")]
        public Contact? Contact { get; set; }
    }
}
