Currently, I wasn’t able to find anything in the docs on how to set it up
this feature would become handy in situation where you want to completely separate the different user types into different user models like (admins, managers, customers):
- for the paranoid who would not feel comfortable using same user model for both the admins and customers.
- when the different models require different table structure.
this is something that has been done by other nodejs frameworks like loopback but the implementation in loopback was a bit buggy and caused the data for users from different models to leak to each others when they’re using the same user id (even though they’re in two different models) in databases like mysql.
overall i’m really excited for adonisjs 4. it looks really promising and it is right now one of the few nodejs frameworks that are under active development.
i sincerely wish you the best of luck and hopefully and soon enough it will attract the attention that it deserves.