X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fmodels%2Fuser.js;h=409fdd9aa349ce90ec3e6c87cfd41538c0fe39a1;hb=5a1e44ae9524fee72c7a05367a706d12dad9ac33;hp=1d5ee5becbe3eb213cd4e925918720bc9852c003;hpb=1371e9b959804ff80d0f8f55a380d796dde33352;p=motion.git diff --git a/server/models/user.js b/server/models/user.js index 1d5ee5b..409fdd9 100644 --- a/server/models/user.js +++ b/server/models/user.js @@ -275,6 +275,11 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.STRING, allowNull: true, }, + host: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: 'dynamic' + }, ipaddr: { //REALTIME ASTERISK type: DataTypes.STRING, allowNull: true, @@ -399,15 +404,15 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.STRING, allowNull: true }, - allow: { + disallow: { type: DataTypes.STRING, allowNull: true, - defaultValue: 'alaw;ulaw;gsm' + defaultValue: 'all' }, - disallow: { + allow: { type: DataTypes.STRING, allowNull: true, - defaultValue: null + defaultValue: 'alaw;ulaw;gsm' }, autoframing: { type: DataTypes.ENUM('yes', 'no'), @@ -540,11 +545,6 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.STRING, allowNull: true, }, - host: { - type: DataTypes.STRING, - allowNull: true, - defaultValue: 'dynamic' - }, qualify: { type: DataTypes.ENUM('yes', 'no'), allowNull: true,