This repository has been archived by the owner on Aug 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
apps/api/prisma/migrations/20240218011237_cascade/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
-- DropForeignKey | ||
ALTER TABLE "Feedback" DROP CONSTRAINT "Feedback_reportId_fkey"; | ||
|
||
-- DropForeignKey | ||
ALTER TABLE "History" DROP CONSTRAINT "History_subTrashBinId_fkey"; | ||
|
||
-- DropForeignKey | ||
ALTER TABLE "Report" DROP CONSTRAINT "Report_trashBinId_fkey"; | ||
|
||
-- DropForeignKey | ||
ALTER TABLE "Report" DROP CONSTRAINT "Report_userId_fkey"; | ||
|
||
-- DropForeignKey | ||
ALTER TABLE "SubTrashBin" DROP CONSTRAINT "SubTrashBin_trashBinId_fkey"; | ||
|
||
-- DropForeignKey | ||
ALTER TABLE "Trash" DROP CONSTRAINT "Trash_subTrashBinId_fkey"; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "SubTrashBin" ADD CONSTRAINT "SubTrashBin_trashBinId_fkey" FOREIGN KEY ("trashBinId") REFERENCES "TrashBin"("id") ON DELETE CASCADE ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Trash" ADD CONSTRAINT "Trash_subTrashBinId_fkey" FOREIGN KEY ("subTrashBinId") REFERENCES "SubTrashBin"("id") ON DELETE CASCADE ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "History" ADD CONSTRAINT "History_subTrashBinId_fkey" FOREIGN KEY ("subTrashBinId") REFERENCES "SubTrashBin"("id") ON DELETE CASCADE ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Report" ADD CONSTRAINT "Report_trashBinId_fkey" FOREIGN KEY ("trashBinId") REFERENCES "TrashBin"("id") ON DELETE CASCADE ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Report" ADD CONSTRAINT "Report_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Feedback" ADD CONSTRAINT "Feedback_reportId_fkey" FOREIGN KEY ("reportId") REFERENCES "Report"("id") ON DELETE CASCADE ON UPDATE CASCADE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@base_url = {{$dotenv URL}}/api | ||
@url={{base_url}}/trash | ||
@url={{base_url}}/trash-bin | ||
|
||
GET {{url}} | ||
|
||
|