I'm trying to do a logistics web application in Django and I need to assign different roles to the users.
I have normal users (clients), employees (office employees, delivery man, truck drivers...) and supervisors.
I need to do the following:
- Office employees and delivery man users: need to have an office assigned
- Truck drivers users: need to have an assigned route
I've made 2 models (Offices and Routes) but I don't know how to relate the users with these models.
I've read websites that create custom classes inherited from AbstractBaseUser or AbstractUser, but I don't know how to do it with this special case.
I hope to hear the right answer here. Thanks in advance!
Edit: my question is different as this other, as I need to handle with different types of User, not just one.