a question based on a new functionality that I need to implement. Starting from the following image to make it clearer:
I have the properties table that segments the types of properties until now had general services in common.
Now I would like that when selecting, for example, house, it shows me services specific to a house and so on.
The services of a house are different from those of the departments, ph, fifth.
I was thinking of adding a relation to each one, from one to many, for example house_service, department_service, ph_service etc.
Would it be the proper way? Or should I think about it differently?
I really appreciate your time in my consultation.
For a query to your database to be successful, the relationships should be
So when you run your query, you can get the services of a property, depending on its type. In an imaginary example, very basically and broadly speaking, what an ORM would do would be:
The result will be that you will obtain information about your property and its specific services.