Download packages/data-schemas/src/schema/pluginAuth.ts from helloya20/chat: direct link, hf CLI and curl.
- Browser
- Download file 443 Bytes
-
https://huggingface.co/spaces/helloya20/chat/resolve/main/packages/data-schemas/src/schema/pluginAuth.ts
- Command line
-
hf download hf://spaces/helloya20/chat/packages/data-schemas/src/schema/pluginAuth.ts
-
curl -L -o pluginAuth.ts https://huggingface.co/spaces/helloya20/chat/resolve/main/packages/data-schemas/src/schema/pluginAuth.ts
443 Bytes
| import { Schema } from 'mongoose'; | |
| import type { IPluginAuth } from '~/types'; | |
| const pluginAuthSchema: Schema<IPluginAuth> = new Schema( | |
| { | |
| authField: { | |
| type: String, | |
| required: true, | |
| }, | |
| value: { | |
| type: String, | |
| required: true, | |
| }, | |
| userId: { | |
| type: String, | |
| required: true, | |
| }, | |
| pluginKey: { | |
| type: String, | |
| }, | |
| }, | |
| { timestamps: true }, | |
| ); | |
| export default pluginAuthSchema; | |