Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 686 Bytes

mysql.md

File metadata and controls

18 lines (10 loc) · 686 Bytes
  1. [MySQL naming convention] (#1-naming-convention)
  2. [Mandatory columns] (#2-mandatory-columns)

##1. Naming Convention

  1. Tables name must always be plural (ie users, presentations, ...)

  2. Dates must always be starting with date_ and ends with the past tense (ie date_created, date_updated, ...)

  3. Columns must always be named using the underscore convention (date_created, presentation_owner, user_id, ...)

  4. Foreign keys must be named table_id, singular (ie user_id when referencing the users table)

##2. Mandatory Columns

  1. All tables must have a id column

  2. All tables that can change in time must have a date_created and date_updated columns