module.exports = function(sequelize, DataTypes) {
var ReportMailHistory = sequelize.define('ReportMailHistory', {
+ sourceid: DataTypes.INTEGER,
uniqueid: DataTypes.STRING,
timeslot: DataTypes.INTEGER,
subject: DataTypes.STRING,
},
calledAt: DataTypes.DATE,
connectedAt: DataTypes.DATE,
+ rejectedAt: DataTypes.DATE,
from: DataTypes.STRING
}, {
- tableName: 'report_mail_history'
+ tableName: 'report_mail_history',
+ indexes: [{
+ name: 'sourceid',
+ fields: ['sourceid']
+ }]
});
ReportMailHistory.removeAttribute('id');
return ReportMailHistory;