문제

I'm building a blog project, which each user can follow other users. I'm still figuring out the design and creating the diagrams first. I know that the relationship between users and followers is many to many. Is this the correct approach for the ER design of the relationship?

enter image description here

도움이 되었습니까?

해결책

The relationship between Instagram user and follower is many to many because:

One user can have multiple followers. One follower can have multiple "followed users".

Useful: Always name the entities (classes) as singular e.g. User & Follower

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 dba.stackexchange
scroll top