If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > how is friendship stored in database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #16 (permalink)  
Old 01-16-09, 02:36
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,241
Quote:
Originally Posted by r937
that's pretty cool

do you remember or did you save the url?
try here

...was tempted to go for this reference instead
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #17 (permalink)  
Old 01-20-09, 04:38
freeBatjko freeBatjko is offline
Registered User
 
Join Date: Mar 2008
Posts: 89
Quote:
Originally Posted by chiefman
if B refuses the request from A, should the record be removed then?
I found Facebook's database schema from the Internet, and there is a table named FriendRelation. property "AreFriends" should identify the relationship between two people and I guess its type is boolean
That is quite nice... reverse engineered the flickr post says... not bad, although I wonder how accurate this is then.

I don't think the property "AreFriends" would be boolean, or there is another property somewhere, because it would not cover the bi-directional relationship of friendship requests...
In my example before, the record would not be deleted if the request is denied, but the status column would simply be populated with "denied", so that this rejection is saved. I'm sure Facebook can't just use a boolean "are they friends or not" variable.
__________________
"My brain is just no good at being a relational Database - my relations suck real bad!"
Reply With Quote
  #18 (permalink)  
Old 01-20-09, 05:21
chiefman chiefman is offline
Registered User
 
Join Date: Jan 2009
Posts: 23
Quote:
Originally Posted by freeBatjko
That is quite nice... reverse engineered the flickr post says... not bad, although I wonder how accurate this is then.

I don't think the property "AreFriends" would be boolean, or there is another property somewhere, because it would not cover the bi-directional relationship of friendship requests...
In my example before, the record would not be deleted if the request is denied, but the status column would simply be populated with "denied", so that this rejection is saved. I'm sure Facebook can't just use a boolean "are they friends or not" variable.
it makes sense. thanks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On