.
This commit is contained in:
parent
9fbd11b169
commit
bac0065413
@ -37,7 +37,7 @@ module.exports = function (sequelize, DataTypes) {
|
||||
});
|
||||
|
||||
Notification.associate = function (models) {
|
||||
Notification.User = Notification.belongsTo(models.User, { foreignKey: 'userId', as: "user" });
|
||||
//Notification.User = Notification.belongsTo(models.User, { foreignKey: 'userId', as: "user" });
|
||||
Notification.Details = Notification.hasMany(models.NotificationDetail, { foreignKey: 'notificationId', as: 'details' });
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user