From 70a32955e6b924582380ac0ab977ff38dda23d1c Mon Sep 17 00:00:00 2001 From: Michael Fatemi Date: Sat, 10 Apr 2021 20:56:06 -0400 Subject: [PATCH] Add `name` to Group model --- src/models.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/models.ts b/src/models.ts index f44aba3..a63f30c 100644 --- a/src/models.ts +++ b/src/models.ts @@ -8,6 +8,7 @@ export interface User extends Document { } export interface Group extends Document { + name: string; member_ids: string[]; } @@ -30,6 +31,7 @@ UserSchema.virtual('fullName').get(function (this) { const UserModel: Model = model('User', UserSchema); const GroupSchema: Schema = new Schema({ + name: { type: String, required: true }, member_ids: { type: [String], required: true }, });