Answer the question
In order to leave comments, you need to log in
How to correctly plan a database for storing users?
Hello! I am making a website in Yii2. It is necessary to store users and information about them. On Codeigniter 3, I made a users, users_info table and I stored authorization data / everything else (avatars, detailed information) in them, respectively. Am I doing it right or is there a better way?
Answer the question
In order to leave comments, you need to log in
There is no single answer, in general you are doing the right thing, here you need to see the golden mean. If you feel that there are too many columns, divide, and also see that you are doing JOIN in users_info everywhere, then you should think about whether you need to store in 2.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question