M
M
Mors Clamor2019-10-04 17:42:53
Database design
Mors Clamor, 2019-10-04 17:42:53

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

1 answer(s)
E
Enj0y, 2019-10-04
@Enj0y

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 question

Ask a Question

731 491 924 answers to any question