-- AlterEnum
ALTER TYPE "NotificationType" ADD VALUE 'group_call';

-- AlterTable
ALTER TABLE "shifts" ADD COLUMN     "meetingId" TEXT;

-- AlterTable
ALTER TABLE "social_groups" ADD COLUMN     "meeting_id" TEXT;

-- CreateIndex
CREATE UNIQUE INDEX "shifts_meetingId_key" ON "shifts"("meetingId");

-- CreateIndex
CREATE UNIQUE INDEX "social_groups_meeting_id_key" ON "social_groups"("meeting_id");

-- AddForeignKey
ALTER TABLE "shifts" ADD CONSTRAINT "shifts_meetingId_fkey" FOREIGN KEY ("meetingId") REFERENCES "meetings"("id") ON DELETE SET NULL ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "social_groups" ADD CONSTRAINT "social_groups_meeting_id_fkey" FOREIGN KEY ("meeting_id") REFERENCES "meetings"("id") ON DELETE SET NULL ON UPDATE CASCADE;
