Skip to content
Snippets Groups Projects

refactor: 중복 코드 통합, rabbitmq 연결 유지, FcmToken 연관관계 추가 feat: 채팅방 공지사항 기능 추가

Merged 심재엽 requested to merge temp/feature/#24 into develop
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 3
0
@@ -29,6 +29,9 @@ User.hasMany(MeetingParticipant, { foreignKey: 'user_id', as: 'meetingParticipat
@@ -29,6 +29,9 @@ User.hasMany(MeetingParticipant, { foreignKey: 'user_id', as: 'meetingParticipat
Schedule.belongsTo(User, { foreignKey: 'user_id', as: 'user' });
Schedule.belongsTo(User, { foreignKey: 'user_id', as: 'user' });
User.hasMany(Schedule, { foreignKey: 'user_id', as: 'schedules' });
User.hasMany(Schedule, { foreignKey: 'user_id', as: 'schedules' });
 
FcmToken.belongsTo(User, { foreignKey: 'userId', as: 'user' });
 
User.hasMany(FcmToken, { foreignKey: 'userId', as: 'fcmTokenList' });
 
Invite.belongsTo(Meeting, { foreignKey: 'meeting_id', as: 'meeting' });
Invite.belongsTo(Meeting, { foreignKey: 'meeting_id', as: 'meeting' });
Invite.belongsTo(User, { foreignKey: 'inviter_id', as: 'inviter' }); // 초대한 사용자
Invite.belongsTo(User, { foreignKey: 'inviter_id', as: 'inviter' }); // 초대한 사용자
Invite.belongsTo(User, { foreignKey: 'invitee_id', as: 'invitee' }); // 초대받은 사용자
Invite.belongsTo(User, { foreignKey: 'invitee_id', as: 'invitee' }); // 초대받은 사용자
Loading