Open Guergeiro opened 4 years ago
Oh, and I also changed some things in the code to remove other errors.
sequelize.literal(...)
=> Sequelize.literal(...)
DataTypes.INTEGER(size).UNSIGNED
=> DataTypes.INTEGER.UNSIGNED
Honestly, don't know why I had to do this. According to the docs, everything seems correct.
Thanks for you feedback. Ot is a bug about generating codes, I'll fix it.
Do you an ETA on the fix?
Hi @Guergeiro , so sorry I haven't reply your issue. Do you have the problems now? I think there are something wrong with sequelize types, maybe you could add @ts-nocheck
for model files with tsNoCheck: true
options.
That is a solution. I haven't tried anymore since I moved away from using sequelize at all. Using vanilla knexjs for it.
First, thanks for your script. I have some problems when trying to incorporate the TS generated by sequelize-automate.
Project structure:
The error I get is on the
This happens to all models generated and in both attributes and options. I'm just showing one for the sake of simplicity.
sequelize.define()
Code