using Marco.Pms.Model.Master;
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.OrganizationModel
{
    public class ProjectServiceMapping : TenantRelation
    {
        public Guid Id { get; set; }
        public Guid ServiceId { get; set; }

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

        [ValidateNever]
        [ForeignKey("ProjectId")]
        public Project? Project { get; set; }
        public DateTime PlannedStartDate { get; set; }
        public DateTime PlannedEndDate { get; set; }
        public DateTime ActualStartDate { get; set; }
        public DateTime? ActualEndDate { get; set; }
        public bool IsActive { get; set; }
    }
}
