-/**
- * Context Model
- */
+'use strict';
+
+
module.exports = function(sequelize, DataTypes) {
defaultValue: 0
}
}, {
- tableName: 'voice_contexts'
+ tableName: 'voice_contexts',
+ associate: function(models) {
+ VoiceContext.hasMany(models.VoiceExtension, {
+ onDelete: 'cascade',
+ hooks: true
+ });
+ }
});
return VoiceContext;