feat: added file upload + dir creation

This commit is contained in:
Smigz 2025-05-01 20:59:01 -04:00
parent b1c295d2ac
commit eedab606f8
25 changed files with 965 additions and 103 deletions

View file

@ -0,0 +1,14 @@
/*
Warnings:
- You are about to drop the column `full_path` on the `Folder` table. All the data in the column will be lost.
- You are about to drop the column `parent_folder_id` on the `Folder` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "Folder" DROP COLUMN "full_path",
DROP COLUMN "parent_folder_id",
ADD COLUMN "parentId" INTEGER;
-- AddForeignKey
ALTER TABLE "Folder" ADD CONSTRAINT "Folder_parentId_fkey" FOREIGN KEY ("parentId") REFERENCES "Folder"("id") ON DELETE SET NULL ON UPDATE CASCADE;