Answers for "make model sequelize"

4

sequelize cli model generate

npx sequelize-cli model:generate --name User --attributes firstName:string,lastName:string,email:string
Posted by: Guest on May-20-2021
-2

modele sequelize

module.exports = function (sequelize, DataTypes) { return sequelize.define('Locale', { id: { type: DataTypes.INTEGER, autoIncrement: true, primaryKey: true }, locale: { type: DataTypes.STRING, allowNull: false, unique: true, validate: { len: 2 } }, visible: { type: DataTypes.BOOLEAN, defaultValue: 1 } }) }
Posted by: Guest on May-06-2021

Browse Popular Code Answers by Language