SQL Join Table Naming Convention

前端 未结 18 1761
面向向阳花
面向向阳花 2020-12-08 04:01

I have 2 tables: Users and Roles, and I have a table that joins these together. The only thing in the join table is Ids that link the 2 tables.

What should I call th

18条回答
  •  轮回少年
    2020-12-08 04:12

    It seems like the mapping table is storing all the roles that each user is a member of. If this is correct I would call the table UserRoles.

    This correctly (IMO) pluralizes the intent of the table rather than UsersRoles which just sounds odd.

提交回复
热议问题