Answers for "what is a sequelize model"

0

creating model sequelize

npx sequelize-cli model:generate --name User --attributes firstName:string,lastName:string,email:string
Posted by: Guest on August-25-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