I'm creating an application where in I'm registering myself and saving details to users
table as follows.
users(id, first, last, email, phone);
After that I wanna create many accounts
under users like account1
and account2
as follows.
accounts(id, name, user_id);
Each account has its own purposes and does the functionality on behalf of signed user like CRUD.
Once user logged in, the user redirected to dashboard - that contains the no of accounts. So he can switch between these accounts.
Please help some suggestions regarding this. The work would be more appreciated.