-/**
- * Chat Website Model
- */
-
-var crypto = require('crypto');
+'use strict';
module.exports = function(sequelize, DataTypes) {
defaultValue: 'IMAP'
},
state: {
- type: DataTypes.ENUM('CONNECTED', 'DISCONNECTED', 'ERROR', 'UNKNOWN'),
+ type: DataTypes.ENUM('CONNECTING', 'CONNECTED', 'DISCONNECTED', 'ERROR', 'UNKNOWN'),
defaultValue: 'UNKNOWN'
},
+ source: {
+ type: DataTypes.STRING
+ },
connTimeout: {
type: DataTypes.INTEGER,
defaultValue: 10000,