mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 18:30:15 +01:00
✨ feat: Implement Group Management with Create and Assign Functionality
This commit is contained in:
parent
06282b584f
commit
39649ce523
7 changed files with 167 additions and 0 deletions
29
api/models/schema/groupSchema.js
Normal file
29
api/models/schema/groupSchema.js
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
const mongoose = require('mongoose');
|
||||
|
||||
const groupSchema = new mongoose.Schema(
|
||||
{
|
||||
name: {
|
||||
type: String,
|
||||
required: true,
|
||||
unique: true,
|
||||
},
|
||||
description: {
|
||||
type: String,
|
||||
},
|
||||
allowedEndpoints: [
|
||||
{
|
||||
type: String,
|
||||
required: true,
|
||||
|
||||
},
|
||||
],
|
||||
allowedModels: [
|
||||
{
|
||||
type: String,
|
||||
},
|
||||
],
|
||||
},
|
||||
{ timestamps: true },
|
||||
);
|
||||
|
||||
module.exports = groupSchema;
|
||||
Loading…
Add table
Add a link
Reference in a new issue