Active Record + Inheritance

Hi guys, good night. I’m developing a project for library, and I wanna discuss about my classes Item and Book. The Book class is a extension of Item, and I created two tables with same name that are joinned by common primary key. How I can configure my active record models for use these entities?

It’s a bit hard to imagine your DB schema. Can you post SQL to create it?

It’s here my dh schema: 7050

Sem título.png

Ps.: I sent only tables that belongs to the context of this post (the inheritance of classes Item, ItemDeAcervo and LivroDidatico: 7050

Sem título.png

Sorry, I can’t read the language used :(