module.exports = function(sequelize, DataTypes) {
var ReportIntegrationHistory = sequelize.define('ReportIntegrationHistory', {
+ sourceid: DataTypes.INTEGER,
integration: DataTypes.STRING,
eventChannel: DataTypes.STRING,
subtypeChannel: DataTypes.STRING,
},
url: DataTypes.STRING,
app: DataTypes.STRING,
- appdata: DataTypes.STRING
+ appdata: DataTypes.STRING,
+ projectId: DataTypes.INTEGER
}, {
- tableName: 'report_integration_history'
+ tableName: 'report_integration_history',
+ indexes: [{
+ name: 'sourceid',
+ fields: ['sourceid']
+ }]
});
ReportIntegrationHistory.removeAttribute('id');