Built motion from commit 1038d87.|0.0.141
[motion.git] / server / models / voice_recording.js
index 14d1463..54bfb0a 100644 (file)
@@ -4,8 +4,7 @@ var moment = require('moment');
 module.exports = function(sequelize, DataTypes) {
   var VoiceRecording = sequelize.define('VoiceRecording', {
     uniqueid: {
-      type: DataTypes.STRING,
-      primaryKey: true
+      type: DataTypes.STRING
     },
     channel: {
       type: DataTypes.STRING,
@@ -51,7 +50,6 @@ module.exports = function(sequelize, DataTypes) {
     },
     rating: {
       type: DataTypes.INTEGER,
-      defaultValue: 0,
       validate: {
         max: 5,
         min: 0
@@ -60,6 +58,9 @@ module.exports = function(sequelize, DataTypes) {
     queue: {
       type: DataTypes.STRING
     },
+    customerPhone: {
+      type: DataTypes.STRING
+    },
     createdAt: {
       type: DataTypes.DATE,
       get: function() {