Issue: template has NOT NULL constraint but pipeline-type prompts don't use template (they use stages JSONB instead). Solution: ALTER COLUMN template DROP NOT NULL before inserting pipeline configs into ai_prompts.
Issue: template has NOT NULL constraint but pipeline-type prompts don't use template (they use stages JSONB instead). Solution: ALTER COLUMN template DROP NOT NULL before inserting pipeline configs into ai_prompts.