-- Add entityType and isHidden columns to crm_pipelines
ALTER TABLE "crm_pipelines" ADD COLUMN "entityType" TEXT NOT NULL DEFAULT 'deal';
ALTER TABLE "crm_pipelines" ADD COLUMN "isHidden" BOOLEAN NOT NULL DEFAULT false;

-- Index for filtering by club + entityType
CREATE INDEX "crm_pipelines_clubId_entityType_idx" ON "crm_pipelines" ("clubId", "entityType");
