feat: versão 1.5 - CRM Beta com leads, funis, campanhas e portal do cliente

This commit is contained in:
Erik Silva
2025-12-24 17:36:52 -03:00
parent 99d828869a
commit dfb91c8ba5
98 changed files with 18255 additions and 1465 deletions

View File

@@ -0,0 +1,8 @@
-- Migration: Link funnels to campaigns (lists)
-- Description: Allows associating a campaign with a specific sales funnel
ALTER TABLE crm_lists
ADD COLUMN funnel_id UUID REFERENCES crm_funnels(id) ON DELETE SET NULL;
-- Index for performance
CREATE INDEX idx_crm_lists_funnel_id ON crm_lists(funnel_id);