summaryrefslogtreecommitdiffstats
path: root/server/models/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/client.js')
-rw-r--r--server/models/client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/client.js b/server/models/client.js
index 483d1e6..5789788 100644
--- a/server/models/client.js
+++ b/server/models/client.js
@@ -8,7 +8,7 @@ module.exports = (sequelize, DataTypes) => {
type: DataTypes.INTEGER
},
name: DataTypes.STRING,
- description: DataTypes.STRING,
+ description: DataTypes.STRING(2048),
ip: DataTypes.STRING,
mac: DataTypes.STRING,
uuid: DataTypes.STRING
@@ -17,7 +17,7 @@ module.exports = (sequelize, DataTypes) => {
})
client.associate = function (models) {
var GroupXClient = sequelize.define('group_x_client', {}, { timestamps: false, freezeTableName: true })
- client.belongsToMany(models.group, { as: 'groups', through: GroupXClient, foreignKey: 'clientId', otherKey: 'groupId'})
+ client.belongsToMany(models.group, { as: 'groups', through: GroupXClient, foreignKey: 'clientId', otherKey: 'groupId' })
}
return client
}