I\'m getting this error:
Unhandled rejection SequelizeUniqueConstraintError: Validation error
How can I fix this?
This is my models/use
When using SQLite as a database, Sequelize (currently 5.21.5) throws SequelizeUniqueConstraintError
on every constraint error, even if it has nothing to do with unique indexes. One examle would be inserting NULL
into a non-nullable column. So be sure to also check for other types of errors when debugging this exception.