Built motion from commit 1038d87.|0.0.141
[motion.git] / server / models / mail_server_in.js
index 133bd79..301037d 100644 (file)
@@ -1,8 +1,4 @@
-/**
- * Chat Website Model
- */
-
-var crypto = require('crypto');
+'use strict';
 
 module.exports = function(sequelize, DataTypes) {
 
@@ -33,9 +29,12 @@ 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,