* Chat Website Model
*/
+var _ = require('lodash');
+
module.exports = function(sequelize, DataTypes) {
var MailAccount = sequelize.define('MailAccount', {
if (address) {
this.setDataValue('address', address.toLowerCase());
}
- },
+ }
},
fidelity: {
type: DataTypes.BOOLEAN,
set: function(val) {
return this.setDataValue('actions', JSON.stringify(val));
}
+ },
+ signature: {
+ type: DataTypes.BLOB,
+ get: function() {
+ if (this.getDataValue('signature')) {
+ return _.toString(this.getDataValue('signature'));
+ }
+ }
}
}, {
tableName: 'mail_accounts',