Two tables of "type / name" Category

0

My question is about how the convention of creating the database would be, in my case I have a "Service" table that connects to a "Category" table.

Now I need to create a "Product" table that will also connect to a "Category" table.

The two "Category" tables are distinct from each other, containing different content.

How do you use table names in this type of case?

PS. Although the question is about DB, I'm using Ruby on Rails.

    
asked by anonymous 01.08.2018 / 16:10

0 answers