Skip to content
Snippets Groups Projects

[#20] 번개모임 푸시알림(fcm) 추가, 메시지큐 추가

Merged [#20] 번개모임 푸시알림(fcm) 추가, 메시지큐 추가
Merged 심재엽 requested to merge feature/#20 into develop
6 files
+ 194
97
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 0
23
// schemas/ChatRoomParticipant.js
const mongoose = require('mongoose');
const ChatRoomParticipantSchema = new mongoose.Schema({
chat_room_id: {
type: mongoose.Schema.Types.ObjectId,
ref: 'ChatRoom',
required: true,
},
user_id: {
type: Number, // SQL의 Users 테이블 ID 참조
required: true,
},
left_at: {
type: Date,
default: null,
},
}, {
timestamps: { createdAt: 'joined_at', updatedAt: false },
});
module.exports = mongoose.model('ChatRoomParticipant', ChatRoomParticipantSchema);
Loading