I have the following situation, and I would like to know your opinion and feedback. My applications have a company. Each company has many departments, which, in turn, have many users. I have a calendar at all levels. Thus, there is a central calendar for the company, a separate calendar for each department and a separate calendar for each user. The idea is that when a user is interested in an event in the company, he / she can add it to his calendar. Now I need to have one or more tables for events. I thought it was worth
- I should have one table, in which there will be a field for the unique identification of each entity (company, department, user), and depending on who requests, I can accordingly receive the results
- I should have some tables. One table for the company, One table for the departments, One table for the users.
So this is more like a single table versus three tables.
source
share