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,


www.example.com/buyer

www.example.com/seller

www.example.com/admin

"

"

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.