Built motion from commit b33b832.|1.0.17
[motion.git] / server / models / mail_server_out.js
index 40a0c4c..4f24581 100644 (file)
@@ -1,6 +1,7 @@
 /**
  *
  */
+
 module.exports = function(sequelize, DataTypes) {
 
        var MailServerOut = sequelize.define('MailServerOut', {
@@ -8,7 +9,7 @@ module.exports = function(sequelize, DataTypes) {
                host: DataTypes.STRING,
                username: {
                        type: DataTypes.STRING,
-                       unique: true
+                       unique: 'username'
                },
                password: DataTypes.STRING,
                port: DataTypes.INTEGER,
@@ -16,10 +17,6 @@ module.exports = function(sequelize, DataTypes) {
                        type: DataTypes.BOOLEAN,
                        defaultValue: false
                },
-               service: {
-                       type: DataTypes.BOOLEAN,
-                       defaultValue: false
-               },
                state: {
                        type: DataTypes.ENUM('CONNECTING', 'CONNECTED', 'DISCONNECTED', 'ERROR', 'UNKNOWN'),
                        defaultValue: 'UNKNOWN'