U
U
urajo2019-11-14 15:34:09
Node.js
urajo, 2019-11-14 15:34:09

How to stop taking a table in Sequelize without a signature 's' at the end?

When accessing a table via sequelize.define("names",, it only accesses files with the s ending.
That is, if there is a name table in the database and I write name in the code, the script gives an error. And when creating the same - the script creates a table and adds the letter s.
Can this be turned off somehow?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2019-11-14
@Nc_Soft

ok google: sequelize freezetablename

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question