Implementing a BUDDY list

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David

    #1

    Implementing a BUDDY list

    I am creating a web community site where each user can have a list of
    buddies. I have struck a bit of a problem though.
    I am designing my db model and have two entities called users
    containing usual stuff like password, name... and I have Buddy List.
    I also have the following relation.

    Users "have a" Buddy List

    The cardinality is that a user can have one buddy list and one buddy
    list is associated with one user.

    However a buddy list contains MANY users and a single user can be in
    MANY buddy lists. So do I have a many-to-many relationship? To further
    confuse matters as a Buddy List is actually just a list of users is
    this a recursive relationship?

    Im really confused, any help welcomed!!!
Working...