I need some help with linking my database tables and models.
I have:
User
Profile
Post
A User has many posts, one profile and many friends(other users). I
want to display the users posts and the users friends posts on the
profile.
How should i build the database(like friendship between users) a
I need help how i should link these tables together.
I have
Users
Profile
Posts
Users is suposed to have one profile and many Posts. The Users are
also suposed to have many friends(other users).
I want to display the users posts and the users friends posts on the
profile.
How should I link the