Relationship with LoopBack does not generate Foreign Key

0

I'm having a problem that is after creating the Models, and doing the autigrap / autoupdate, everything works fine for the creation of Schema in the data bank. The problem is with Foreign Key.

Within it, after defining the relationship, everything is beautiful, it takes by route and this ensures that an Account depends on a Type Account, but in the database it does not do this Foreign Key, that is, in the process of reverse engineering it will not work, because in the bank this relationship is not created, ie the joins of life will not work in LoopBack

In this issue, people report the same problem:

link

As I'm using version 3.x of LoopBack, I would like to know if there is any way to do this, since it is not performative to do query without join with a relational database, alias this is a of his functions. : D

Thanks to anyone who can give me more information, or suggest a more complete API on these issues.

    
asked by anonymous 26.04.2018 / 22:56

0 answers