module.exports = function(sequelize, DataTypes) {
var VoiceRecording = sequelize.define('VoiceRecording', {
uniqueid: {
- type: DataTypes.STRING,
- primaryKey: true
+ type: DataTypes.STRING
},
channel: {
type: DataTypes.STRING,
},
rating: {
type: DataTypes.INTEGER,
- defaultValue: 0,
validate: {
max: 5,
min: 0
queue: {
type: DataTypes.STRING
},
+ customerPhone: {
+ type: DataTypes.STRING
+ },
createdAt: {
type: DataTypes.DATE,
get: function() {