3 module.exports = function(sequelize, DataTypes) {
4 return sequelize.define('SugarcrmAccount', {
5 name: DataTypes.STRING,
6 description: DataTypes.STRING,
10 remoteUri: DataTypes.STRING,
11 password: DataTypes.STRING
13 tableName: 'sugarcrm_accounts',
14 associate: function(models) {
15 models.SugarcrmAccount.hasMany(models.SugarcrmConfiguration, {
16 foreignKey: 'AccountId'