module.exports = function(sequelize, DataTypes) {
var ReportSmsSessionHistory = sequelize.define('ReportSmsSessionHistory', {
+ sourceid: DataTypes.INTEGER,
uniqueid: DataTypes.STRING,
accountid: DataTypes.STRING,
accountname: DataTypes.STRING,
defaulValue: false
},
completeReason: DataTypes.ENUM('agent'),
- unmanaged: {
+ timeout: {
type: DataTypes.BOOLEAN,
defaultValue: false
- }
+ },
+ timeslot: DataTypes.INTEGER
}, {
- tableName: 'report_sms_session_history'
+ tableName: 'report_sms_session_history',
+ indexes: [{
+ name: 'sourceid',
+ fields: ['sourceid']
+ }]
});
-
+ ReportSmsSessionHistory.removeAttribute('id');
return ReportSmsSessionHistory;
};