Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
现在几乎每个 Web 应用程序都允许您设置基本配置文件(甚至 Stack Exchange 也可以)。问题是您应该如何将数据存储在数据库中?
您应该只向您的用户数据库表添加更多列,还是应该设置另一个名为user_profiles的表,其外键为 user_id?
这是相当主观的: