feat: Implement Group Management with Create and Assign Functionality

This commit is contained in:
Ruben Talstra 2025-02-18 23:02:35 +01:00
parent 06282b584f
commit 39649ce523
No known key found for this signature in database
GPG key ID: 2A5A7174A60F3BEA
7 changed files with 167 additions and 0 deletions

View file

@ -143,6 +143,12 @@ const userSchema = mongoose.Schema(
type: Boolean,
default: false,
},
groups: [
{
type: mongoose.Schema.Types.ObjectId,
ref: 'Group',
},
],
},
{ timestamps: true },