Download api/models/schema/pluginAuthSchema.js from Zhitomir/chat: direct link, hf CLI and curl.
- Browser
- Download file 476 Bytes
-
https://huggingface.co/spaces/Zhitomir/chat/resolve/main/api/models/schema/pluginAuthSchema.js
- Command line
-
hf download hf://spaces/Zhitomir/chat/api/models/schema/pluginAuthSchema.js
-
curl -L -o pluginAuthSchema.js https://huggingface.co/spaces/Zhitomir/chat/resolve/main/api/models/schema/pluginAuthSchema.js
476 Bytes
| 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; | |