fix: delete team bug when instant meeting token exist (#23553)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- DropForeignKey
|
||||
ALTER TABLE "InstantMeetingToken" DROP CONSTRAINT "InstantMeetingToken_teamId_fkey";
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "InstantMeetingToken" ADD CONSTRAINT "InstantMeetingToken_teamId_fkey" FOREIGN KEY ("teamId") REFERENCES "Team"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
@@ -702,7 +702,7 @@ model InstantMeetingToken {
|
||||
token String @unique
|
||||
expires DateTime
|
||||
teamId Int
|
||||
team Team @relation(fields: [teamId], references: [id])
|
||||
team Team @relation(fields: [teamId], references: [id], onDelete: Cascade)
|
||||
bookingId Int? @unique
|
||||
booking Booking? @relation(fields: [bookingId], references: [id], onDelete: Cascade)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user