Hi Friends!
am doing a sales tracking website for a company.The problem is user management. for example the user structure must be in the following format.
Power user
|
|
--------------------
| |
Admin 1 Admin 2
| |
----------- -----------------
| | | |
user 1 user 2 user 1 user 2
| | | |
-------- ------ ------ --------
| | | | | | | |
u1 u2 u1 u2 u1 u2 u1 u2
Each user store their sales information using their user login account. Power user has all rights to see the information stored by all users including u1,u2.
But the admin user has no rights to see power user info but he can view info stored by user1 ,user 2 ,u1 ,u2 which he created. he cannot see the users info created by admin 2.
I understood how to make its work,but the problems whether i need to create each table for each user to store and display.if i do that whether will any problems occur when more number of users accessing the server at the same time?
for example take flickr website. it has similar concepts like storing and retriving each user pics etc,
can any one give idea how to this other than creating each table for each user...
because of the alignments the structure given above may vary...
Thank you,
am doing a sales tracking website for a company.The problem is user management. for example the user structure must be in the following format.
Power user
|
|
--------------------
| |
Admin 1 Admin 2
| |
----------- -----------------
| | | |
user 1 user 2 user 1 user 2
| | | |
-------- ------ ------ --------
| | | | | | | |
u1 u2 u1 u2 u1 u2 u1 u2
Each user store their sales information using their user login account. Power user has all rights to see the information stored by all users including u1,u2.
But the admin user has no rights to see power user info but he can view info stored by user1 ,user 2 ,u1 ,u2 which he created. he cannot see the users info created by admin 2.
I understood how to make its work,but the problems whether i need to create each table for each user to store and display.if i do that whether will any problems occur when more number of users accessing the server at the same time?
for example take flickr website. it has similar concepts like storing and retriving each user pics etc,
can any one give idea how to this other than creating each table for each user...
because of the alignments the structure given above may vary...
Thank you,