mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 08:12:00 +02:00
26 lines
471 B
JavaScript
26 lines
471 B
JavaScript
const mongoose = require('mongoose');
|
|||
|
|||
const pluginAuthSchema = mongoose.Schema(
|
|||
{
|
|||
authField: {
|
|||
type: String,
|
|||
required: true,
|
|||
},
|
|||
value: {
|
|||
type: String,
|
|||
required: true
|
|||
},
|
|||
userId: {
|
|||
type: String,
|
|||
required: true
|
|||
},
|
|||
pluginKey: {
|
|||
type: String,
|
|||
}
|
|||
},
|
|||
{ timestamps: true }
|
|||
);
|
|||
|
|||
const PluginAuth = mongoose.models.Plugin || mongoose.model('PluginAuth', pluginAuthSchema);
|
|||
|
|||
module.exports = PluginAuth;
|