Hi all. I'm having problems deciding on a model I'm working on. I'm sure this is something that crops up a lot and probably has a simple solution but I haven't come across it myself before and its given me major headaches.
I have a users table.
users can be members of groups
users can subscribe for courses
users can enrol on lessons
we want to provide Forums
A Group may have one or more Forums
A lesson may have a Forums
A Course may have one or more Forums
So I came up with the attached diagram (lessons left off for clarity)
However the problems arise when I try to create a list of all the forums a user is entitled to view.
What do you guys think is my model right and I'm just not getting the union right or is there a better way to design the model.