I'm starting in the area, I have the following scenario in my back end done in rails: I want to implement a parent class:
Equipment: ID PK Brand ...
And some child classes
Printer: ID_EQUIPMENT PK and FK ...
Computers: ID_EQUIPMENT PK and FK ...
Phones: ID_EQUIPMENT PK and FK ...
Among others
But I have 2 problems, the first is how to set the primary key of the parent class to be the primary key of the child classes. The other is how to implement this in controler and routes.
I've been bogged down in this for a while