Hello. Tell me, please, how best to store the user's budget in mysql.
Is it better to store the budget in the same table, where is all the information about the user, or create a separate table budget_users
and store there?
Are there any other ways to further protect the budget?
And I had an idea: if I keep a budget in the database and another budget in encrypted form (for example, I’ll substitute md5('Gg6&*:'.$budjet.'R%;i')
values on the right and left md5('Gg6&*:'.$budjet.'R%;i')
). And when the user tries to withdraw money, I check the budget with the encrypted budget. Do you think this method will be smooth?