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"workspace_file_folders" ADD CONSTRAINT"workspace_file_folders_user_id_user_id_fk"FOREIGN KEY ("user_id") REFERENCES"public"."user"("id") ON DELETE cascadeONUPDATE no action;--> statement-breakpoint
17
+
ALTERTABLE"workspace_file_folders" ADD CONSTRAINT"workspace_file_folders_workspace_id_workspace_id_fk"FOREIGN KEY ("workspace_id") REFERENCES"public"."workspace"("id") ON DELETE cascadeONUPDATE no action;--> statement-breakpoint
18
+
ALTERTABLE"workspace_file_folders" ADD CONSTRAINT"workspace_file_folders_parent_id_workspace_file_folders_id_fk"FOREIGN KEY ("parent_id") REFERENCES"public"."workspace_file_folders"("id") ON DELETEsetnullONUPDATE no action;--> statement-breakpoint
19
+
CREATEINDEX "workspace_file_folders_workspace_parent_idx" ON"workspace_file_folders" USING btree ("workspace_id","parent_id");--> statement-breakpoint
20
+
CREATEINDEX "workspace_file_folders_parent_sort_idx" ON"workspace_file_folders" USING btree ("parent_id","sort_order");--> statement-breakpoint
21
+
CREATEINDEX "workspace_file_folders_deleted_at_idx" ON"workspace_file_folders" USING btree ("deleted_at");--> statement-breakpoint
22
+
CREATEINDEX "workspace_file_folders_workspace_deleted_partial_idx" ON"workspace_file_folders" USING btree ("workspace_id","deleted_at") WHERE"workspace_file_folders"."deleted_at"IS NOT NULL;--> statement-breakpoint
23
+
CREATEUNIQUE INDEX "workspace_file_folders_workspace_parent_name_active_unique" ON"workspace_file_folders" USING btree ("workspace_id",coalesce("parent_id", ''),"name") WHERE"workspace_file_folders"."deleted_at" IS NULL;--> statement-breakpoint
24
+
ALTERTABLE"workspace_files" ADD CONSTRAINT"workspace_files_folder_id_workspace_file_folders_id_fk"FOREIGN KEY ("folder_id") REFERENCES"public"."workspace_file_folders"("id") ON DELETEsetnullONUPDATE no action;--> statement-breakpoint
25
+
CREATEUNIQUE INDEX "workspace_files_workspace_folder_name_active_unique" ON"workspace_files" USING btree ("workspace_id",coalesce("folder_id", ''),"original_name") WHERE"workspace_files"."deleted_at" IS NULLAND"workspace_files"."context"='workspace'AND"workspace_files"."workspace_id"IS NOT NULL;--> statement-breakpoint
26
+
CREATEINDEX "workspace_files_folder_id_idx" ON"workspace_files" USING btree ("folder_id");
0 commit comments