Built motion from commit b33b832.|1.0.17
[motion.git] / server / models / report_call.js
index 18cbc9f..4ae0ed0 100644 (file)
@@ -7,11 +7,11 @@ module.exports = function(sequelize, DataTypes) {
   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,