Built motion from commit 82438f7.|0.0.115
[motion.git] / server / models / mail_message.js
index 1f1dd2d..7601332 100644 (file)
@@ -46,6 +46,9 @@ module.exports = function(sequelize, DataTypes) {
                                this.setDataValue('bcc', val.join(';'));
                        }
                },
+               fromId: {
+                       type: DataTypes.INTEGER
+               },
                attachment: DataTypes.TEXT,
                text: {
                        type: DataTypes.BLOB,
@@ -67,9 +70,14 @@ module.exports = function(sequelize, DataTypes) {
                },
                reason: DataTypes.TEXT,
                status: {
-                       type: DataTypes.ENUM('SENT', 'SENDING', 'RECEIVED', 'FAILED', 'NOTE'),
-                       defaultValue: 'SENDING'
-               }
+                       type: DataTypes.ENUM('sending', 'sent', 'received', 'failed', 'note'),
+                       defaultValue: 'sending'
+               },
+               retry: {
+                       type: DataTypes.INTEGER,
+                       defaultValue: 0
+               },
+               voiceSource: DataTypes.STRING
        }, {
                tableName: 'mail_messages',
                paranoid: true,