Add lead-history audit log — entity, registry, service, DTO, LeadService hooks

Featurekamo-shared-library
Shipped
April 27, 2026 at 8:31 PM UTC
Author
Kamo
Commit
e0515ae

- LeadHistory entity (UUID PK, plain Long FKs — no FK constraints to allow lead deletion/conversion) - LeadHistoryEventType enum with human-readable labels - LeadHistoryFieldRegistry: single source of truth for ~55 tracked Lead fields; adding a field is one line - LeadFieldDescriptor record (key, label, category, extractor) - LeadHistoryService: snapshot/diff pipeline, **************** paginated+filtered findHistory, distinctFields/Actors for filter dropdowns - LeadHistoryDTO with nested ActorDTO; all Long IDs serialized as String for CockroachDB JS precision safety - LeadService: history hooks on create, update, delete, assignLead, assignLeadAccount, unassignLeadAccount

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