Hello I am new to programming and learning.
I am having some problem in decision making for the user model in Django.
Below is the description of my project which i want to do. Please suggest me the best way to go about it.
I will have an ecommerce application where customer, shop owner, shop staff and shop delivery man will interact each other and will have the following profiles
- Individual User profile (register with email as username)
- Grocery Shop profile ( there will be many grocery shops who will register as shop on the application and will have a bit of admin site for the shop)
- Shop staffs profile ( working under the shop admin)
- Delivery man profile ( working under the shop admin)
- Super admin for the project
- Admin profile for the entire application with some privileges.
The way i want to operate is that each user will register using email as user name and by default will have a user profile.
Later suppose a user have a shop and want to register on our app (in another word if anybody want to register his shop, he need to register as a user and then apply/register for shop). At this point, if the user register his shop then he will have another Shop profile in his user admin panel.
Same way a user want to work as staff on that shop, so he can join to the shop which will be shown on the shop admin. The shop staff will have a extra staff profile in his user admin panel.
Same way, the delivery man will join and having is delivery man profile as well.
Please suggest me how to go about it for the user model, authentication and permission in Django.