diff --git a/backend/src/models/Notification.js b/backend/src/models/Notification.js index 4a05032..f3dab5a 100644 --- a/backend/src/models/Notification.js +++ b/backend/src/models/Notification.js @@ -30,7 +30,7 @@ const Notification = sequelize.define('Notification', { type: DataTypes.UUID, allowNull: false, references: { - model: 'Users', + model: 'users', key: 'id' } }, @@ -39,7 +39,7 @@ const Notification = sequelize.define('Notification', { type: DataTypes.UUID, allowNull: true, references: { - model: 'ChitGroups', + model: 'chit_groups', key: 'id' } }, @@ -48,7 +48,7 @@ const Notification = sequelize.define('Notification', { type: DataTypes.UUID, allowNull: true, references: { - model: 'Payments', + model: 'payments', key: 'id' } }, @@ -57,7 +57,7 @@ const Notification = sequelize.define('Notification', { type: DataTypes.UUID, allowNull: true, references: { - model: 'MonthlyDraws', + model: 'monthly_draws', key: 'id' } },