SQL Join Table Naming Convention

前端 未结 18 1785
面向向阳花
面向向阳花 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:19

    The database represents am enterprise, right? So what do the people in that enterprise call the relationship?

    Here are some I do know:

    • employee reports to line manager == org chart

    • student takes course == enrolment

    • woman marries man == marriages

    When in doubt, ask a domain expert within the enterprise.

提交回复
热议问题