From 3938f48efdb617efe53984627afa030931894f07 Mon Sep 17 00:00:00 2001 From: CookieDasora Date: Wed, 24 Jan 2024 14:37:46 +0000 Subject: [PATCH] fix: fixed user follow/following relation --- prisma/schema.prisma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 79480e5..3d63358 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -17,8 +17,8 @@ model User { profileImage String? likedPosts PostLike[] likedComments CommentLike[] - followers Follows[] @relation("following") - following Follows[] @relation("follower") + followers Follows[] @relation("follower") + following Follows[] @relation("following") postComments Comments[] fromNotifications Notifications[] @relation("fromNotifications") toNotifications Notifications[] @relation("toNotifications")