feat: versão 1.5 - CRM Beta com leads, funis, campanhas e portal do cliente
This commit is contained in:
8
postgres/migrations/021_link_funnels_to_campaigns.sql
Normal file
8
postgres/migrations/021_link_funnels_to_campaigns.sql
Normal 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);
|
||||
Reference in New Issue
Block a user