📜  DatabaseError [SequelizeDatabaseError]:关系不存在 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:09.330000             🧑  作者: Mango

代码示例1
const User = sequelize.define('user', {
  firstName: {
    type: Sequelize.STRING
  },
  lastName: {
    type: Sequelize.STRING
  }
}, {
    // disable the modification of table names; 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,
  });