You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now we have fields in the user table with his data, such as date of birth and the like. Such fields should be placed in a separate table as a questionnaire, in this table there will be entries for different types of questions and for each user. Then this table could be used for contacts, in which case the user could fill in the same data for his contacts, as he does for his profile. A separate table will allow you to dynamically change and add new fields to the user profile and contacts, without the need to add migrations for the database.
Сейчас мы имеет в таблице пользователя поля с его данными, такими как дата рождения и тому подобное. Такие поля надо вынести в отдельную таблицу как анкету, в этой таблице будет записи для разных типов вопросов и для каждого пользователя. Тогда эту таблицу можно было бы использовать и для контактов, в таком случае пользователь мог бы заполнять эти же данные для своих контактов, как он делает для своего профиля. Отдельная таблица позволит динамически менять и добавлять новые поля в профиль пользователя и в контакты, без необходимости добавлять миграции для базы данных.
The text was updated successfully, but these errors were encountered:
Now we have fields in the user table with his data, such as date of birth and the like. Such fields should be placed in a separate table as a questionnaire, in this table there will be entries for different types of questions and for each user. Then this table could be used for contacts, in which case the user could fill in the same data for his contacts, as he does for his profile. A separate table will allow you to dynamically change and add new fields to the user profile and contacts, without the need to add migrations for the database.
Сейчас мы имеет в таблице пользователя поля с его данными, такими как дата рождения и тому подобное. Такие поля надо вынести в отдельную таблицу как анкету, в этой таблице будет записи для разных типов вопросов и для каждого пользователя. Тогда эту таблицу можно было бы использовать и для контактов, в таком случае пользователь мог бы заполнять эти же данные для своих контактов, как он делает для своего профиля. Отдельная таблица позволит динамически менять и добавлять новые поля в профиль пользователя и в контакты, без необходимости добавлять миграции для базы данных.
The text was updated successfully, but these errors were encountered: