-- 360 评估模板增加适用范围配置
ALTER TABLE "platform_performance"."evaluation_360_template"
  ADD COLUMN "cycle_id" UUID,
  ADD COLUMN "scope" JSONB;

-- 外键约束
ALTER TABLE "platform_performance"."evaluation_360_template"
  ADD CONSTRAINT "evaluation_360_template_cycle_id_fkey"
  FOREIGN KEY ("cycle_id") REFERENCES "platform_performance"."performance_cycle"("id")
  ON DELETE SET NULL ON UPDATE CASCADE;

-- 索引
CREATE INDEX "evaluation_360_template_cycle_id_idx"
  ON "platform_performance"."evaluation_360_template"("cycle_id");
