to: {
type: DataTypes.STRING
},
- body: DataTypes.TEXT,
+ body: {
+ type: DataTypes.BLOB,
+ get: function() {
+ return this.getDataValue('body').toString();
+ }
+ },
status: {
type: DataTypes.STRING,
defaultValue: 'SENDING'
},
- res_data: DataTypes.TEXT
+ res_data: DataTypes.TEXT,
+ name: DataTypes.STRING,
+ phone: DataTypes.STRING,
+ email: DataTypes.STRING,
}, {
tableName: 'openchannel_messages',
associate: function(models) {