KamoCRM

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

Featurekamo-shared-library
Shipped
27 ஏப்ரல், 2026 அன்று 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?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing