var ReportCall = sequelize.define('ReportCall', {
uniqueid: {
type: DataTypes.STRING,
- unique: true
+ unique: 'uniqueid'
},
type: {
type: DataTypes.ENUM,
- values: ['inbound', 'internal', 'outbound', 'inbound-fax', 'outbound-fax', 'tigerdial']
+ values: ['inbound', 'internal', 'outbound', 'inbound-fax', 'outbound-fax', 'tigerdial', 'chanspy']
},
tag: DataTypes.STRING,
accountcode: DataTypes.STRING,