namespace CRMSalesDAL.DTO.LeadAllocation; /// One active sales rep's current OPEN deal count — the input to Smart Lead Allocation /// v1's capacity-based suggestion. See LeadAllocationBLL.SuggestAllocationAsync's doc comment. public class RepCapacityDTO { public int RepId { get; set; } public string RepCode { get; set; } = string.Empty; public string RepName { get; set; } = string.Empty; /// COUNT of this rep's TDEAL rows with Stage NOT IN (5,6) — ClosedWon/ClosedLost /// excluded. 0 for a rep with no current deals (LEFT JOIN, not an inner aggregate). public int OpenDealCount { get; set; } }