spinlud / sequelize-typescript-generator

71 stars 27 forks source link

add foreignKey in associations #36

Open Mouri-P opened 2 years ago

Mouri-P commented 2 years ago

helps in non-primary key bassed associations.

spinlud commented 1 year ago

Hi there! I think there is already a foreign key association defined as a decorator in the generated models. You can see an example in the Readme https://github.com/spinlud/sequelize-typescript-generator/blob/master/README.md?plain=1#L532

Can you explain what you are trying to achieve here?