from: {
type: DataTypes.STRING,
validate: {
- is: /^[0-9]+$/
+ is: /^[\+]?[0-9]+$/
}
},
status: {
this.setDataValue('tags', val && val.length ? val.join(';') + ';' : null);
}
},
+ waiting: {
+ type: DataTypes.BOOLEAN,
+ defaultValue: false
+ },
disposition: {
type: DataTypes.STRING
},
+ ParentId: {
+ type: DataTypes.INTEGER
+ },
+ voiceSource: {
+ type: DataTypes.BOOLEAN,
+ defaultValue: false
+ }
}, {
tableName: 'sms_rooms',
associate: function(models) {