module.exports = function(sequelize, DataTypes) {
var ReportSquareDetailHistory = sequelize.define('ReportSquareDetailHistory', {
+ sourceid: DataTypes.INTEGER,
uniqueid: {
type: DataTypes.STRING,
},
type: DataTypes.STRING,
}
}, {
- tableName: 'report_square_details_history'
+ tableName: 'report_square_details_history',
+ indexes: [{
+ name: 'sourceid',
+ fields: ['sourceid']
+ }]
});
ReportSquareDetailHistory.removeAttribute('id');
return ReportSquareDetailHistory;