-
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.
Feat: add CRUD Api for task occurrences
- Loading branch information
Showing
15 changed files
with
362 additions
and
217 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
.../prisma/migrations/20250306074350_add_unique_task_page_id_on_task_occurence/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,21 @@ | ||
/* | ||
Warnings: | ||
- A unique constraint covering the columns `[taskId,pageId]` on the table `TaskOccurrence` will be added. If there are existing duplicate values, this will fail. | ||
- Made the column `pageId` on table `TaskOccurrence` required. This step will fail if there are existing NULL values in that column. | ||
*/ | ||
-- DropForeignKey | ||
ALTER TABLE "TaskOccurrence" DROP CONSTRAINT "TaskOccurrence_pageId_fkey"; | ||
|
||
-- DropIndex | ||
DROP INDEX "TaskOccurrence_taskId_startTime_endTime_key"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "TaskOccurrence" ALTER COLUMN "pageId" SET NOT NULL; | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "TaskOccurrence_taskId_pageId_key" ON "TaskOccurrence"("taskId", "pageId"); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "TaskOccurrence" ADD CONSTRAINT "TaskOccurrence_pageId_fkey" FOREIGN KEY ("pageId") REFERENCES "Page"("id") ON DELETE RESTRICT ON UPDATE CASCADE; |
2 changes: 2 additions & 0 deletions
2
apps/server/prisma/migrations/20250306083417_add_task_occurrence_in_model_name/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,2 @@ | ||
-- AlterEnum | ||
ALTER TYPE "ModelName" ADD VALUE 'TaskOccurrence'; |
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
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
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
Oops, something went wrong.