Hi, Can someone give his/her input on my schema design. (Still trying to think in graphs). Here is my rough application diagram with entities and users. To summarise:
1) There are 3 type of users - Application user (me), pharmacy users and client users and they have their specific roles.
2) Application can have multiple pharmacies (entity)
3) Each pharmacies can have multiple clients (entity) and vice versa
4) Each client can have multiple departments — client users can belong to either client directly or to a department
5) Pharmacy users can see all the orders made by client users
6) Only client users are allowed to make orders