Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Working with Legacy Tables sequelize

const { Model } = require('sequelize');

class User extends Model {}

User.init({
  // ...
}, {
  modelName: 'user',
  tableName: 'users',
  sequelize,
});
Source by sequelize.org #
 
PREVIOUS NEXT
Tagged: #Working #Legacy #Tables #sequelize
ADD COMMENT
Topic
Name
2+5 =