Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

DatabaseError [SequelizeDatabaseError]: relation does not exist

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,
  });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #DatabaseError #relation #exist
ADD COMMENT
Topic
Name
9+4 =