Implemented personal settings
This commit is contained in:
@@ -26,7 +26,4 @@ const UserRight = sequelize.define('user_right', {
|
||||
underscored: true,
|
||||
});
|
||||
|
||||
UserRight.belongsTo(User, { foreignKey: 'userId' });
|
||||
UserRight.belongsTo(UserRightType, { foreignKey: 'rightTypeId', as: 'rightType' });
|
||||
|
||||
export default UserRight;
|
||||
|
||||
Reference in New Issue
Block a user