We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3c990d commit 31940b9Copy full SHA for 31940b9
2 files changed
packages/prisma/migrations/20250903165210_add_on_cascade/migration.sql
@@ -0,0 +1,5 @@
1
+-- DropForeignKey
2
+ALTER TABLE "InstantMeetingToken" DROP CONSTRAINT "InstantMeetingToken_teamId_fkey";
3
+
4
+-- AddForeignKey
5
+ALTER TABLE "InstantMeetingToken" ADD CONSTRAINT "InstantMeetingToken_teamId_fkey" FOREIGN KEY ("teamId") REFERENCES "Team"("id") ON DELETE CASCADE ON UPDATE CASCADE;
packages/prisma/schema.prisma
@@ -702,7 +702,7 @@ model InstantMeetingToken {
702
token String @unique
703
expires DateTime
704
teamId Int
705
- team Team @relation(fields: [teamId], references: [id])
+ team Team @relation(fields: [teamId], references: [id], onDelete: Cascade)
706
bookingId Int? @unique
707
booking Booking? @relation(fields: [bookingId], references: [id], onDelete: Cascade)
708
0 commit comments