mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 18:30:15 +01:00
29 lines
435 B
JavaScript
29 lines
435 B
JavaScript
|
|
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;
|