const mongoose = require('mongoose');

const ActiveDebateSchema = mongoose.Schema({
  for: { type: Schema.Types.ObjectId, ref: 'For' },
  against: { type: Schema.Types.ObjectId, ref: 'Against' },
  spectator: { type: Schema.Types.ObjectId, ref: 'Spectator' }
});

const ActiveDebate = module.exports = mongoose.model('ActiveDebate', ActiveDebateSchema);
@@ -77,16 +77,73 @@
 chema(%7B%0A
+%09debate: %7B type: Schema.Types.ObjectId, ref: 'Debate' %7D,%0A
   for: %7B

Add debate foreign key in db schemas (chat, activeDebate)