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