I’m building an employee management system. I have three databases: company, user, and employees (which displays employees’ data). I should mention that my software supports multiple companies and all data will be shown if they belong to that company. Otherwise, it will be hidden.
Info about databases:
company database has two fields in the database: employees (list of users), and company name (text); employee database has a lot of fields but it is connected to company database through ‘field: company. Type: company’; and for user database, it is connected company the same way the aforementioned is.
My Challenge:
I have a table that is connected to the employees database and works perfectly, but it shows employees of all companies. I want it to show employees that match the current user’s company.
Here are screenshots: