3 module.exports = function(sequelize, DataTypes) {
4 var Service = sequelize.define('Service', {
6 type: DataTypes.STRING,
10 type: DataTypes.STRING,
14 type: DataTypes.BOOLEAN,
18 tableName: 'services',
19 associate: function(models) {
20 Service.belongsToMany(models.User, {
21 through: models.UserHasService,
24 Service.hasMany(models.CustomField, {
28 Service.hasMany(models.Contact, {
32 Service.addScope('customFields', {
34 model: models.CustomField,