folder structure for multiple Module

Hi Community,

suppose we have multiple module like buyer, saler, admin and may be in future it will increase.

and i want url like,



login table is different for buyer, seller and admin.

I dont want to differentiate by role based.

how to design mvc for this type of requirement?

how to design in config file for identity user?

'user' => [

               'identityClass' => 'frontend\models\Buyer',//for eg. buyer loggin.


please guide me for these type of requirement.