Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
August 16, 2021 03:16 pm GMT

TLDR: Database Naming

Credit: Photo by Tobias Fischer on Unsplash

  • Table names should be plural (ex: users, customers,...)
  • Use underscore_names (ex: user_id, user_role,...)
  • Don't name primary key column id
  • Don't make column names unclear (ex: u_role,...)
  • Name foreign key columns the same as the columns they refer to

Original Link: https://dev.to/ancs21/tldr-database-naming-36fa

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To