How to name Mysql Intermediate Relational tables gracefully

post //
post_type //
picture_type //

there are many strange table names in existing databases, as follows:

post_post_type //
picture_picture_type //
user_user_group //

how are these intermediate relational tables elegantly named?

or there is something wrong with the design of my type classification table,

Mar.21,2021

tables of the same type had better have a unified table prefix, different names, and the associated table name is the prefix _ main table _ linked table so that it is easier to read
such as chapter table
post_list
article classification table
post_category
then their join table name is
post_list_category
so it is more readable. When naming English words, you'd better be more accurate, and then you can avoid unnecessary trouble


I usually identify the associated table with an ending word merge ;
such as
goods

item type table name:
goods_type

then the product and type associated table name can be expressed as
goods_type_merge

when designing, standardize, as long as the developer sees what the table is, the goal is achieved.

Menu