3 module.exports = function(sequelize, DataTypes) {
5 var ChatApplication = sequelize.define('ChatApplication', {
7 type: DataTypes.ENUM('queue', 'agent')
10 type: DataTypes.INTEGER
13 type: DataTypes.INTEGER
16 type: DataTypes.STRING
19 tableName: 'chat_applications',
20 associate: function(models) {
22 ChatApplication.belongsTo(models.ChatWebsite);
23 ChatApplication.belongsTo(models.Interval);
24 ChatApplication.belongsTo(models.ChatQueue);
25 ChatApplication.belongsTo(models.User);
29 return ChatApplication;