In my inventory control system I have put members table and separate table for each and every shop & warehouse. my problem is how to assign employee for a shop. Assigned employee to a particular shop or warehouse should only be able to manipulate stock of the that shop only. And also admin is responsible for assigning and changing members working place(shop)How do i do this?
member to warehouse is M:1 relationship. so i have put member id in warehouse table. But i dont have an idea how to give access to users only to the relavent table.
This isnt PHP but hope u guys will help me.