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

namespace Marco.Pms.Model.ServiceProject
{
    public class ServiceProjectServiceMapping : TenantRelation
    {
        public Guid Id { get; set; }
        public Guid ProjectId { get; set; }

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

        [ValidateNever]
        [ForeignKey("ServiceId")]
        public ServiceMaster? Service { get; set; }

    }
}
