-- ============================================
-- 此文件由 Meoo Cloud 自动生成，请勿修改
-- This file is auto-generated by Meoo Cloud, DO NOT MODIFY
-- ============================================


-- 为 plan_process_steps 表添加 company_id 字段
ALTER TABLE public.plan_process_steps ADD COLUMN IF NOT EXISTS company_id UUID REFERENCES public.companies(id) ON DELETE CASCADE;

-- 创建索引优化查询
CREATE INDEX IF NOT EXISTS idx_plan_process_steps_company_id ON public.plan_process_steps(company_id);

