I have a table fluxo
, and fluxo have many fluxo_acao
, but a entry in fluxo_acao
can have three types, and each type have they particularities. to acomplish this, i created more three tables(fluxo_acao_mensagem
, fluxo_acao_pergunta
and fluxo_acao_escolher_fila
), connected to fluxo_acao
.
The problem is i can't select any of the three tables, from fluxo
, because first i need to check wich type is and them i do the query.
I need a better approat in how to acomplish this relation. Even why i need create another two more. and this is the perfect time to change.