chore: Remove cascade on profile deletion for EventType (#21792)

This commit is contained in:
Alex van Andel authored and GitHub committed 2025-06-13 10:24:01 +00:00
1 parent 860eae8dcb
commit b39404860f
2 files changed
+6 -1

No files matched your search

@@ -0,0 +1,5 @@
-- DropForeignKey
ALTER TABLE "EventType" DROP CONSTRAINT "EventType_profileId_fkey";
-- AddForeignKey
ALTER TABLE "EventType" ADD CONSTRAINT "EventType_profileId_fkey" FOREIGN KEY ("profileId") REFERENCES "Profile"("id") ON DELETE SET NULL ON UPDATE CASCADE;
+1 -1
View File
@@ -102,7 +102,7 @@ model EventType {
userId Int?
profileId Int?
profile Profile? @relation(fields: [profileId], references: [id], onDelete: Cascade)
profile Profile? @relation(fields: [profileId], references: [id])
team Team? @relation(fields: [teamId], references: [id], onDelete: Cascade)
teamId Int?