UserId: { // name of foreign key using naming convention
type: Sequelize.DataTypes.INTEGER,
references: {
model: { tableName: 'Users' }, // provide table name
key: 'id' // PK of the User Model
},
allowNull: false,
onUpdate: 'cascade',
onDelete: 'cascade',
},