Refactor Lead assignment from String to Employee reference

Featurekamo-shared-library
Shipped
February 3, 2026 at 9:01 PM UTC
Author
Kamo
Commit
d398322

- Changed Lead.assignedUser (String) to Lead.assignedEmployee (Employee) - Added LeadAssignment entity to track assignment history - Added LeadAssignmentType enum with various assignment types - Added LeadCredit entity for tracking employee lead credits - Added LeadAllotment entity for managing employee lead allotments - Added corresponding repositories and services - Updated LeadService to record assignments automatically - Updated LeadDTO and request DTOs for the new structure - Added MemberService methods for retrieving employees by organization - Database datetime fields now use DB-level defaults for consistency

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing