sequelize-auto
sequelize-auto copied to clipboard
Have Associations in initModel
Currently init-models.ts has all the associations of all the models, that makes it ugly and difficult to read. Shifting assocations to models file simplies things and makes it more readable
static initModel(sequelize: Sequelize.Sequelize): typeof user { let model = user.init({ }) model.hasOne(otherModel) return model }
I hope so, too Let's implement it quickly.