1 year ago

what it's the cleaner database design for this needs

Posted 1 year ago by afghany

i have an articles table and replies table and replies belongs to articles and i have 3 models user,teacher,student each of them will login to application and i need add favorites for articles and replies which relation should i use to solve this problem note : the problem with i have 2 models to favorite and 3 models can favorite those two models "article,reply"

Please sign in or create an account to participate in this conversation.