modelName should be one member of InitOptions, which type is string.
Although this parameters is optional and if it's left blank, sequelize will use Class name as modelName.
But I port my old project from js to ts and my table name is camelCase, but class name is usually in PascalCase, so I need to defined the model name myself when I invoke Model.init;
modelName
should be one member ofInitOptions
, which type isstring
.Although this parameters is optional and if it's left blank, sequelize will use Class name as modelName. But I port my old project from js to ts and my table name is camelCase, but class name is usually in PascalCase, so I need to defined the model name myself when I invoke
Model.init
;Plz fix it.