主要实体Subject有多个Comment,并且 也Comment有多个Rate。
Subject
Comment
Rate
我应该如何命名迁移表?
我用谷歌搜索过 hasMany 关系的命名是subjectsand subject_comment。
subjects
subject_comment
该Rate表应该命名为subject_comment_rateorsubject_comments_rate或 吗comment_rate?
subject_comment_rate
subject_comments_rate
comment_rate
php naming-conventions laravel eloquent
eloquent ×1
laravel ×1
naming-conventions ×1
php ×1