X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fmodels%2Fhistory%2Freport_agent_history.js;h=4d4dab0f47442848f69a681d37fa6d47fc288e25;hb=41adb1abe081e9ae3e9f254679bb35da4edb8f58;hp=5c4254063abceb120b229138cd1ed026a4c052b8;hpb=03ef13f909598f69ff7dd3eb1a7ef74807273b98;p=motion.git diff --git a/server/models/history/report_agent_history.js b/server/models/history/report_agent_history.js index 5c42540..4d4dab0 100644 --- a/server/models/history/report_agent_history.js +++ b/server/models/history/report_agent_history.js @@ -5,6 +5,7 @@ var moment = require('moment'); module.exports = function(sequelize, DataTypes) { var ReportAgentHistory = sequelize.define('ReportAgentHistory', { + sourceid: DataTypes.INTEGER, uniqueid: DataTypes.STRING, calleridnum: DataTypes.STRING, calleridname: DataTypes.STRING, @@ -64,9 +65,15 @@ module.exports = function(sequelize, DataTypes) { destcontext: DataTypes.STRING, destexten: DataTypes.STRING, destpriority: DataTypes.STRING, - destuniqueid: DataTypes.STRING + destuniqueid: DataTypes.STRING, + answeredelsewheredestinationuniqueid: DataTypes.STRING, + answeredelsewheremembername: DataTypes.STRING }, { - tableName: 'report_agent_history' + tableName: 'report_agent_history', + indexes: [{ + name: 'sourceid', + fields: ['sourceid'] + }] }); ReportAgentHistory.removeAttribute('id');