sequelize puts an s end of name

The solution for “sequelize puts an s end of name” can be found here. The following code will assist you in solving the problem.

var Bar = sequelize.define(‘Bar’, { /* bla */ }, {
// disable the modification of tablenames; By default, sequelize will automatically
// transform all passed model names (first parameter of define) into plural.
// if you don’t want that, set the following
freezeTableName: true,
})

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in