What is the best practice in naming your “user” table?

前端 未结 5 1908
萌比男神i
萌比男神i 2020-12-23 16:04

Here\'s three best practices I try to follow when naming tables:

  • Never name a table with plural (such as \"users\")
  • Never name a table using a reserve
5条回答
  •  我在风中等你
    2020-12-23 16:53

    Use a synonym. What word to use depends on what exactly you store in the table, but account strikes me as a good alternative. If you want to use a variation user I'd break the first guideline you mention, not the second or third: users is common enough that the inconsistency is essentially mnemonic.

提交回复
热议问题