You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ALTERTABLE"data_drain_runs" ADD CONSTRAINT"data_drain_runs_drain_id_data_drains_id_fk"FOREIGN KEY ("drain_id") REFERENCES"public"."data_drains"("id") ON DELETE cascadeONUPDATE no action;--> statement-breakpoint
40
+
ALTERTABLE"data_drains" ADD CONSTRAINT"data_drains_organization_id_organization_id_fk"FOREIGN KEY ("organization_id") REFERENCES"public"."organization"("id") ON DELETE cascadeONUPDATE no action;--> statement-breakpoint
41
+
ALTERTABLE"data_drains" ADD CONSTRAINT"data_drains_created_by_user_id_fk"FOREIGN KEY ("created_by") REFERENCES"public"."user"("id") ON DELETE no action ONUPDATE no action;--> statement-breakpoint
42
+
CREATEINDEX "data_drain_runs_drain_started_idx" ON"data_drain_runs" USING btree ("drain_id","started_at");--> statement-breakpoint
43
+
CREATEINDEX "data_drains_org_idx" ON"data_drains" USING btree ("organization_id");--> statement-breakpoint
44
+
CREATEINDEX "data_drains_due_idx" ON"data_drains" USING btree ("enabled","last_run_at");--> statement-breakpoint
45
+
CREATEUNIQUE INDEX "data_drains_org_name_unique" ON"data_drains" USING btree ("organization_id","name");--> statement-breakpoint
46
+
CREATEINDEX "audit_log_workspace_created_at_id_idx" ON"audit_log" USING btree ("workspace_id",date_trunc('milliseconds', "created_at"),"id");--> statement-breakpoint
47
+
CREATEINDEX "copilot_chats_workspace_created_at_id_idx" ON"copilot_chats" USING btree ("workspace_id",date_trunc('milliseconds', "created_at"),"id");--> statement-breakpoint
48
+
CREATEINDEX "copilot_runs_workspace_completed_at_id_idx" ON"copilot_runs" USING btree ("workspace_id",date_trunc('milliseconds', "completed_at"),"id");--> statement-breakpoint
49
+
CREATEINDEX "job_execution_logs_workspace_ended_at_id_idx" ON"job_execution_logs" USING btree ("workspace_id",date_trunc('milliseconds', "ended_at"),"id");--> statement-breakpoint
50
+
CREATEINDEX "workflow_execution_logs_workspace_ended_at_id_idx" ON"workflow_execution_logs" USING btree ("workspace_id",date_trunc('milliseconds', "ended_at"),"id");
0 commit comments