mirror of
https://github.com/myfatemi04/wheelshare-old-backend.git
synced 2025-04-18 10:50:18 -04:00
Add name
to Group model
This commit is contained in:
parent
c4d9830ea6
commit
70a32955e6
|
@ -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<User> = model('User', UserSchema);
|
||||
|
||||
const GroupSchema: Schema = new Schema({
|
||||
name: { type: String, required: true },
|
||||
member_ids: { type: [String], required: true },
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user