bborn / communityengine

Adds basic social networking capabilities to your existing application, including users, blogs, photos, clippings, favorites, and more.
http://www.communityengine.org
Other
1.14k stars 316 forks source link

redunadant data when creating records #332

Closed tonyvince closed 7 years ago

tonyvince commented 7 years ago

When a new friendship is created two records are inserted into friendships table. Can't we avoid that? Any particular reason for adopting this approach?

bborn commented 7 years ago

We need two records because we need to know who initiated the friendship request, and who received it (otherwise someone could initial and accept their own friendship request).