sequelize-auto
sequelize-auto copied to clipboard
Parse plural name wrongly
In my case, passing the argument "--singularity" translated "analyses" to "analyasis". Here is my command line
sequelize-auto --output "./src/models" \⏎
--database <modelName> \⏎
--host <hostName> --port 3306 \⏎
--user <userName> --pass <pass> \⏎
--caseModel u --caseFile c --caseProp c \⏎
--singularize \⏎
--dialect mysql⏎
Weird. sequelize-auto
uses the pluralizer in sequelize
, so it should be consistent.
Yeah, it is a little bit annoying, my temporary fix is just to reassign it. db.Analysis = db.Analyasis