I have a Livros
table and I know that book specialization / generalization is Livros de Ficção
, Livros de Drama
and Livros de Suspense
, for example.
However, in the logical model, I do not know if I create a table Livros
with relationship 1: N Tipos de livros
with each type registered or a table is created for each specialization ( livro_drama
, livro_ficção
)!
I know it would be impractical to create a table for every Tipo
, because if I needed new types of books I would have to always create a new table. But if I use the other form, each type of book entered would have its specific business rules, even registering each type, I would have to program the associated rules.
Something is bothering me in both solutions! How do I resolve this deadlock?