From 20932daf5ab54721118726d78340e78d0793cbe3 Mon Sep 17 00:00:00 2001 From: Udo Walter Date: Mon, 17 Sep 2018 21:34:40 +0000 Subject: add ipxe config relation to groups and clients --- server/models/client.js | 1 + 1 file changed, 1 insertion(+) (limited to 'server/models/client.js') diff --git a/server/models/client.js b/server/models/client.js index 5789788..c279cfc 100644 --- a/server/models/client.js +++ b/server/models/client.js @@ -18,6 +18,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.belongsTo(models.config) } return client } -- cgit v1.2.3-55-g7522