Skip to content
Snippets Groups Projects
Commit aba22385 authored by Thyagarajan Sumathi, Varsha (PG/T - Comp Sci & Elec Eng)'s avatar Thyagarajan Sumathi, Varsha (PG/T - Comp Sci & Elec Eng)
Browse files

Merge branch 'feature_wishtocollab' into 'main'

To get the list of collaborators

See merge request !10
parents 6ecaa935 0b32cceb
No related branches found
No related tags found
1 merge request!10To get the list of collaborators
......@@ -25,6 +25,13 @@ const IdeaSchema = new mongoose.Schema({
ref: 'User',
default: [],
}],
// List of collaborators
collaborators: [{
type: mongoose.Schema.Types.ObjectId,
ref: 'User',
default: [],
}],
}, { timestamps: true });
const Idea = mongoose.models.Idea || mongoose.model('Idea', IdeaSchema);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment