- [MySQL naming convention] (#1-naming-convention)
- [Mandatory columns] (#2-mandatory-columns)
##1. Naming Convention
-
Tables name must always be plural (ie users, presentations, ...)
-
Dates must always be starting with date_ and ends with the past tense (ie date_created, date_updated, ...)
-
Columns must always be named using the underscore convention (date_created, presentation_owner, user_id, ...)
-
Foreign keys must be named
table
_id, singular (ie user_id when referencing the users table)
##2. Mandatory Columns
-
All tables must have a
id
column -
All tables that can change in time must have a date_created and date_updated columns