An Interest In:
Web News this Week
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
- April 18, 2024
August 16, 2021 03:16 pm GMT
Original Link: https://dev.to/ancs21/tldr-database-naming-36fa
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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To