ALTER TABLE "test_runs_to_security_configs" DROP CONSTRAINT "test_runs_to_security_configs_security_config_id_security_confi";
--> statement-breakpoint
DROP INDEX "configs_created_at_idx";--> statement-breakpoint
DROP INDEX "configs_type_idx";--> statement-breakpoint
DROP INDEX "default_providers_group_idx";--> statement-breakpoint
DROP INDEX "default_providers_label_idx";--> statement-breakpoint
DROP INDEX "applications_created_at_idx";--> statement-breakpoint
DROP INDEX "evals_author_idx";--> statement-breakpoint
DROP INDEX "evals_created_at_idx";--> statement-breakpoint
DROP INDEX "assertions_created_at_idx";--> statement-breakpoint
DROP INDEX "assertions_group_idx";--> statement-breakpoint
DROP INDEX "assertions_name_idx";--> statement-breakpoint
DROP INDEX "plugins_presets_name_idx";--> statement-breakpoint
DROP INDEX "prompts_created_at_idx";--> statement-breakpoint
DROP INDEX "prompts_library_created_at_idx";--> statement-breakpoint
DROP INDEX "provider_supported_languages_code_idx";--> statement-breakpoint
DROP INDEX "provider_supported_languages_name_idx";--> statement-breakpoint
DROP INDEX "security_config_name_idx";--> statement-breakpoint
DROP INDEX "security_config_project_id_idx";--> statement-breakpoint
DROP INDEX "security_config_status_idx";--> statement-breakpoint
DROP INDEX "strategy_presets_name_idx";--> statement-breakpoint
DROP INDEX "eval_result_eval_id_idx";--> statement-breakpoint
DROP INDEX "eval_result_test_idx";--> statement-breakpoint
DROP INDEX "trusys_datasets_created_at_idx";--> statement-breakpoint
DROP INDEX "trusys_datasets_project_id_idx";--> statement-breakpoint
DROP INDEX "tags_name_idx";--> statement-breakpoint
DROP INDEX "tags_name_value_unique";--> statement-breakpoint
DROP INDEX "monitoring_alerts_application_id_idx";--> statement-breakpoint
DROP INDEX "test_runs_created_at_idx";--> statement-breakpoint
DROP INDEX "test_runs_status_idx";--> statement-breakpoint
DROP INDEX "monitoring_application_id_idx";--> statement-breakpoint
DROP INDEX "evals_to_datasets_dataset_id_idx";--> statement-breakpoint
DROP INDEX "evals_to_datasets_eval_id_idx";--> statement-breakpoint
DROP INDEX "evals_to_prompts_eval_id_idx";--> statement-breakpoint
DROP INDEX "evals_to_prompts_prompt_id_idx";--> statement-breakpoint
DROP INDEX "evals_to_tags_eval_id_idx";--> statement-breakpoint
DROP INDEX "evals_to_tags_tag_id_idx";--> statement-breakpoint
DROP INDEX "test_runs_to_datasets_dataset_id_idx";--> statement-breakpoint
DROP INDEX "test_runs_to_datasets_test_run_id_idx";--> statement-breakpoint
DROP INDEX "test_runs_to_security_configs_security_config_id_idx";--> statement-breakpoint
DROP INDEX "test_runs_to_security_configs_test_run_id_idx";--> statement-breakpoint
DROP INDEX "test_runs_to_evals_eval_id_idx";--> statement-breakpoint
DROP INDEX "test_runs_to_evals_test_run_id_idx";--> statement-breakpoint
DROP INDEX "evals_to_traces_eval_id_idx";--> statement-breakpoint
DROP INDEX "evals_to_traces_project_id_idx";--> statement-breakpoint
DROP INDEX "evals_to_traces_trace_id_idx";--> statement-breakpoint
ALTER TABLE "test_runs_to_security_configs" ADD CONSTRAINT "test_runs_to_security_configs_security_config_id_security_config_id_fk" FOREIGN KEY ("security_config_id") REFERENCES "public"."security_config"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
CREATE INDEX "configs_created_at_idx" ON "configs" USING btree ("created_at");--> statement-breakpoint
CREATE INDEX "configs_type_idx" ON "configs" USING btree ("type");--> statement-breakpoint
CREATE INDEX "default_providers_group_idx" ON "default_providers" USING btree ("group");--> statement-breakpoint
CREATE INDEX "default_providers_label_idx" ON "default_providers" USING btree ("label");--> statement-breakpoint
CREATE INDEX "applications_created_at_idx" ON "applications" USING btree ("created_at");--> statement-breakpoint
CREATE INDEX "evals_author_idx" ON "evals" USING btree ("author");--> statement-breakpoint
CREATE INDEX "evals_created_at_idx" ON "evals" USING btree ("created_at");--> statement-breakpoint
CREATE INDEX "assertions_created_at_idx" ON "assertions" USING btree ("created_at");--> statement-breakpoint
CREATE INDEX "assertions_group_idx" ON "assertions" USING btree ("group");--> statement-breakpoint
CREATE INDEX "assertions_name_idx" ON "assertions" USING btree ("name");--> statement-breakpoint
CREATE INDEX "plugins_presets_name_idx" ON "plugins_presets" USING btree ("name");--> statement-breakpoint
CREATE INDEX "prompts_created_at_idx" ON "prompts" USING btree ("created_at");--> statement-breakpoint
CREATE INDEX "prompts_library_created_at_idx" ON "prompts_library" USING btree ("created_at");--> statement-breakpoint
CREATE INDEX "provider_supported_languages_code_idx" ON "provider_supported_languages" USING btree ("code");--> statement-breakpoint
CREATE INDEX "provider_supported_languages_name_idx" ON "provider_supported_languages" USING btree ("name");--> statement-breakpoint
CREATE INDEX "security_config_name_idx" ON "security_config" USING btree ("name");--> statement-breakpoint
CREATE INDEX "security_config_project_id_idx" ON "security_config" USING btree ("project_id");--> statement-breakpoint
CREATE INDEX "security_config_status_idx" ON "security_config" USING btree ("status");--> statement-breakpoint
CREATE INDEX "strategy_presets_name_idx" ON "strategy_presets" USING btree ("name");--> statement-breakpoint
CREATE INDEX "eval_result_eval_id_idx" ON "eval_results" USING btree ("eval_id");--> statement-breakpoint
CREATE INDEX "eval_result_test_idx" ON "eval_results" USING btree ("test_idx");--> statement-breakpoint
CREATE INDEX "trusys_datasets_created_at_idx" ON "trusys_datasets" USING btree ("created_at");--> statement-breakpoint
CREATE INDEX "trusys_datasets_project_id_idx" ON "trusys_datasets" USING btree ("project_id");--> statement-breakpoint
CREATE INDEX "tags_name_idx" ON "tags" USING btree ("name");--> statement-breakpoint
CREATE UNIQUE INDEX "tags_name_value_unique" ON "tags" USING btree ("name","value");--> statement-breakpoint
CREATE INDEX "monitoring_alerts_application_id_idx" ON "monitoring_alerts" USING btree ("application_id");--> statement-breakpoint
CREATE INDEX "test_runs_created_at_idx" ON "test_runs" USING btree ("created_at");--> statement-breakpoint
CREATE INDEX "test_runs_status_idx" ON "test_runs" USING btree ("status");--> statement-breakpoint
CREATE INDEX "monitoring_application_id_idx" ON "monitoring" USING btree ("application_id");--> statement-breakpoint
CREATE INDEX "evals_to_datasets_dataset_id_idx" ON "evals_to_datasets" USING btree ("dataset_id");--> statement-breakpoint
CREATE INDEX "evals_to_datasets_eval_id_idx" ON "evals_to_datasets" USING btree ("eval_id");--> statement-breakpoint
CREATE INDEX "evals_to_prompts_eval_id_idx" ON "evals_to_prompts" USING btree ("eval_id");--> statement-breakpoint
CREATE INDEX "evals_to_prompts_prompt_id_idx" ON "evals_to_prompts" USING btree ("prompt_id");--> statement-breakpoint
CREATE INDEX "evals_to_tags_eval_id_idx" ON "evals_to_tags" USING btree ("eval_id");--> statement-breakpoint
CREATE INDEX "evals_to_tags_tag_id_idx" ON "evals_to_tags" USING btree ("tag_id");--> statement-breakpoint
CREATE INDEX "test_runs_to_datasets_dataset_id_idx" ON "test_runs_to_datasets" USING btree ("dataset_id");--> statement-breakpoint
CREATE INDEX "test_runs_to_datasets_test_run_id_idx" ON "test_runs_to_datasets" USING btree ("test_run_id");--> statement-breakpoint
CREATE INDEX "test_runs_to_security_configs_security_config_id_idx" ON "test_runs_to_security_configs" USING btree ("security_config_id");--> statement-breakpoint
CREATE INDEX "test_runs_to_security_configs_test_run_id_idx" ON "test_runs_to_security_configs" USING btree ("test_run_id");--> statement-breakpoint
CREATE INDEX "test_runs_to_evals_eval_id_idx" ON "test_runs_to_evals" USING btree ("eval_id");--> statement-breakpoint
CREATE INDEX "test_runs_to_evals_test_run_id_idx" ON "test_runs_to_evals" USING btree ("test_run_id");--> statement-breakpoint
CREATE INDEX "evals_to_traces_eval_id_idx" ON "evals_to_traces" USING btree ("eval_id");--> statement-breakpoint
CREATE INDEX "evals_to_traces_project_id_idx" ON "evals_to_traces" USING btree ("project_id");--> statement-breakpoint
CREATE INDEX "evals_to_traces_trace_id_idx" ON "evals_to_traces" USING btree ("trace_id");