4
Here in the company, everyone follows a pattern in the projects:
All tables should be named in the singular. Examples: "user", "event", "category".
And also:
The main Primary key is named like this: "name_da_tabela_id". Examples: "usuario_id", "evento_id". The remaining columns should be named with the first three letters of the table name, and the field name. Example: "usu_name", "usu_addressee".
It turns out we’re going to adopt the use of frameworks like Laravel and Cakephp on the systems, and they have a default nomenclature for table and column names that I wanted to take advantage of.
Question
Is it worth following this way, and entering the table name manually into the frameworks classes, or are these not good practices? What are the best practices, based on examples of literature and case studies?
This database will be modeled for a new system, thus not depending on compatibility with other systems.
I’m taking this discussion to the goal: http://meta.answall.com/questions/482 @Betasystems-Rodrigoduarte
– bfavaretto