Hello. Currently rewriting one app since last DB scheme was terrible.
There are two modules:
Blogs can have both companies and users. Also each company to relate to a specific user.
- A sampling of blogs and user companies which he owns.
- Check who owns the blog article, if it is the company who owns it.
At the moment, got rid of the binding tables, adding a polymorphic relationship in the table Blog. But it seems that the scheme is not correct, help to achieve the "ideal"