Sequelize models associations in separeted file

51 views
Skip to first unread message

Welder Marcos

unread,
Jul 10, 2017, 2:24:41 PM7/10/17
to Sequelize

I'm using sequelize and sequelize-auto packages to manage my models, but everytime that I need to re-generete the models as result from a modification in the database I need to redefine te associations all over again since the associations are defined in classMethods in model file.

There is some way do define the associations in diferent file?

Welder Marcos

unread,
Jul 11, 2017, 12:51:06 PM7/11/17
to Sequelize
Reply all
Reply to author
Forward
0 new messages