【问题标题】:Table does not exist Sequelize表不存在 Sequelize
【发布时间】:2019-11-11 00:58:43
【问题描述】:

我创建了一个客户模型,然后this is the model

然后我尝试向其中插入数据sequelize command

在我发送发布请求以在此处添加数据后,我得到了sequelize error 模型和表的名称是 customer(单数),但 sequelize 正在寻找客户(复数)。

【问题讨论】:

    标签: node.js express sequelize.js


    【解决方案1】:

    好的,问题是如果你想要单数表名而不是自动生成的复数名,你应该更新 Sequelize 配置。

    您可以查看this question 及其答案。

    【讨论】:

      猜你喜欢
      • 2021-05-29
      • 2022-11-29
      • 1970-01-01
      • 2018-11-29
      • 2019-01-10
      • 1970-01-01
      • 2019-03-19
      • 1970-01-01
      • 2017-07-31
      相关资源
      最近更新 更多