hi,
eerrm
both user_id and buddy_id are primay keys because both can represent each other coz both are users
about the buddy list thing,
i plan to stor my buddies like this:
lets say my user id is 100 and i store it
user_id buddy_id
100 234
100 211
100 932
234 100
211 100
932 100
234 512
512 234
but one thing is that if "x" has "y" in his buddy list, it doent mean that "y" will always have "x" in his buddy list because "x" might have been annoying to "y" and "y" deleted him
i plan to get the buddy list of a user ip by
select buddy_id from buddy_list where user_id=100
to find buddy of
select user_id from buddy_list where buddy_id=100
i think i have told u the whole senario.
please tell me if this is a proper way to do it or not.
if it is, is the structure for the buddy_list table seem to be okay ? :s
Thanks
Invictus