I’m building a sort of message board system for gaming and I’m having issues modeling the relationships. Here’s what I have so far:
Models
------
User (Has Many Posts)
Post (Belongs to User, Belongs to Game)
Game (Has Many Posts)
Here’s what I need to add.
Models
------
Server (Belongs to Game but also part of Post)
Replies (Belongs to Post and Post's User but needs to function like private messaging)
What’s the easiest way to model these two things? My best guess for Server is:
Server - Has Many Posts, Belongs To Game
Posts - Belongs To Server
Game - Has Many Servers
I have no idea where to even start with Replies. Posts and Users will have many Replies but Replies will have two users and a Post. Thanks.
I solved this with these relationships:
Model Server
Model Game
Model Reply
Model Post
Model User