3 module.exports = function(sequelize, DataTypes) {
4 return sequelize.define('FreshdeskConfiguration', {
5 name: DataTypes.STRING,
6 description: DataTypes.STRING
8 tableName: 'int_freshdesk_configurations',
9 associate: function(models) {
10 models.FreshdeskConfiguration.belongsTo(models.FreshdeskAccount, {
11 foreignKey: 'AccountId'
13 models.FreshdeskConfiguration.hasMany(models.FreshdeskField, {
15 foreignKey: 'SubjectId'
17 models.FreshdeskConfiguration.hasMany(models.FreshdeskField, {
19 foreignKey: 'DescriptionId'
21 models.FreshdeskConfiguration.hasMany(models.FreshdeskField, {