I used sequelize-auto to generate schema, and I tried to use findOne() and I got this error:
Unhandled rejection SequelizeDatabaseError: Invalid column name 'updatedAt'.
in my database table, there is no field updatedAt.
for example, my table name is Users my code is Users.findOne(), and there is no updatedAt field in the Users table.
db.users= sequelize.import(__dirname + "/models/users");
app.get('/users', function (req, res) {
db.user.findOne().then(function (project) {
res.json(project);
})
});
how to solve it?