mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 18:30:15 +01:00
✨ refactor: Remove groups property from user schema to streamline user model
This commit is contained in:
parent
d2559ba977
commit
a8955e51a3
1 changed files with 0 additions and 6 deletions
|
|
@ -27,7 +27,6 @@ const { SystemRoles } = require('librechat-data-provider');
|
|||
* @property {Array} [plugins=[]] - List of plugins used by the user
|
||||
* @property {Array.<MongoSession>} [refreshToken] - List of sessions with refresh tokens
|
||||
* @property {Date} [expiresAt] - Optional expiration date of the file
|
||||
* @property {Array.<ObjectId>} [groups] - List of group IDs the user belongs to (references to the Group model)
|
||||
* @property {Date} [createdAt] - Date when the user was created (added by timestamps)
|
||||
* @property {Date} [updatedAt] - Date when the user was last updated (added by timestamps)
|
||||
*/
|
||||
|
|
@ -144,11 +143,6 @@ const userSchema = mongoose.Schema(
|
|||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
groups: {
|
||||
type: [mongoose.Schema.Types.ObjectId],
|
||||
ref: 'Group',
|
||||
default: [],
|
||||
},
|
||||
},
|
||||
|
||||
{ timestamps: true },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue