Best way to do this database design
Hello. In my business logic, I have a user, a company (users can be part of the company) and products.
A product can be owned by a user or by a company, the company can assign it to a user later, but it would still be owned by the company (in case the company fires the user).
My thought is to have the user table, the company table and the product table.
I'm thinking about having a product_owner table, where I would have product_id, user_id, company_id, agent_assigned.
If the product is…
Best way to do this database design
See original post by xionhack
Leave a Reply
You must be logged in to post a comment.