79370608

Date: 2025-01-20 08:00:34
Score: 1
Natty:
Report link

i think separate tables is better .because you can right easy query and you dont need to fetch unwanted details for login etc

Separation of Concerns: By storing sensitive information like passwords in a separate table, you can apply stronger security measures, like encryption or hashing, without risking exposing non-sensitive user details.

Minimizing Risk: If a malicious actor gains access to the user information table, they will only have access to non-sensitive data (name, email, etc.). The passwords remain secure in the authentication table.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Lucky 1729