In the models of my app I want to have the option that the owner of each record is a user or a company...
Normally I have a user_id field (user model) in each model for keeping the owner...
What are the implementation options for this?
How can I design this?
Should I add another field in the models? owner? how can I use the user_id (user_model) or the company_id (company model)?
The data in the app could be:
- Personal data of the specific user
- Company data, which are separated from Personal data. Ofcourse company data also created by a certain user which is a member (with certain role) of the company...
Any ideas?
Thank you