participation.js 381 Bytes
const mongoose = require("mongoose");

const { Schema } = mongoose;

const ParticipationSchema = new Schema({
    sessionId: { type: Schema.Types.ObjectId, ref: 'Session' },
    groupId: { type: Schema.Types.ObjectId, ref: 'Group' }
},{
    collection: 'particiaption'
});

const Participation = mongoose.model('Participation', ParticipationSchema);
module.exports = Participation;