Can anybody suggest me better relationship among the above model. so that i can connect message model with other ones.
I have four model like
1.User model - To store the user email and password
2.Actor model
3.Director model
4. Fans model
5. Message Model
I think you need to add a Production or Play model:
User has many Plays
Play has one Director
Play has many Actors
Play has many Fans
User has many Messages
Play has many Messages (depending how you want to do messages and what they mean it could be User has many messages through Plays… or something else)
Can anybody suggest me better relationship among the above model. so that i can connect message model with other ones.
I have four model like
1.User model - To store the user email and password
2.Actor model
3.Director model
4. Fans model
5. Message Model
I think you need to add a Production or Play model:
User has many Plays
Play has one Director
Play has many Actors
Play has many Fans
User has many Messages
Play has many Messages (depending how you want to do messages and what they mean it could be User has many messages through Plays… or something else)
This is of course if I have not totally misunderstood what you are trying to do with your app If so, please clarify.