Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transferring data from a user account to a separate table #683

Open
grandmotivator opened this issue Apr 3, 2023 · 0 comments
Open

Transferring data from a user account to a separate table #683

grandmotivator opened this issue Apr 3, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@grandmotivator
Copy link
Member

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.


Сейчас мы имеет в таблице пользователя поля с его данными, такими как дата рождения и тому подобное. Такие поля надо вынести в отдельную таблицу как анкету, в этой таблице будет записи для разных типов вопросов и для каждого пользователя. Тогда эту таблицу можно было бы использовать и для контактов, в таком случае пользователь мог бы заполнять эти же данные для своих контактов, как он делает для своего профиля. Отдельная таблица позволит динамически менять и добавлять новые поля в профиль пользователя и в контакты, без необходимости добавлять миграции для базы данных.

@grandmotivator grandmotivator added the enhancement New feature or request label Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant