- DO name your database tables in the singular, not plural
- DON’T prepend db table names to field names
- DON’T include a table prefix in the model class name
- DO name each table’s primary key “id”
- AVOID semantically-meaningful primary key names
- DO define foreign-key relationships in the database schema
- DO name your foreign key fields ending in “id”
- DO name relations to reflect their singular/plural nature
Leave a Reply