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.ServiceProject { public class ProjectBranch : TenantRelation { public Guid Id { get; set; } public string BranchName { get; set; } = string.Empty; public Guid ProjectId { get; set; } [ValidateNever] [ForeignKey("ProjectId")] public ServiceProject? Project { get; set; } public string ContactInformation { get; set; } = string.Empty; // Json string public string Address { get; set; } = string.Empty; public string BranchType { get; set; } = string.Empty; // HQ, ATMs, Bank Branches, Overcounter desk public string? GoogleMapUrl { get; set; } public bool IsActive { get; set; } = true; public DateTime CreatedAt { get; set; } public Guid CreatedById { get; set; } [ValidateNever] [ForeignKey("CreatedById")] public Employee? CreatedBy { get; set; } public DateTime? UpdatedAt { get; set; } public Guid? UpdatedById { get; set; } [ValidateNever] [ForeignKey("UpdatedById")] public Employee? UpdatedBy { get; set; } } }