Download packages/data-schemas/src/models/pluginAuth.ts from helloya20/chat: direct link, hf CLI and curl.
- Browser
- Download file 386 Bytes
-
https://huggingface.co/spaces/helloya20/chat/resolve/main/packages/data-schemas/src/models/pluginAuth.ts
- Command line
-
hf download hf://spaces/helloya20/chat/packages/data-schemas/src/models/pluginAuth.ts
-
curl -L -o pluginAuth.ts https://huggingface.co/spaces/helloya20/chat/resolve/main/packages/data-schemas/src/models/pluginAuth.ts
386 Bytes
| import pluginAuthSchema from '~/schema/pluginAuth'; | |
| import type { IPluginAuth } from '~/types/pluginAuth'; | |
| /** | |
| * Creates or returns the PluginAuth model using the provided mongoose instance and schema | |
| */ | |
| export function createPluginAuthModel(mongoose: typeof import('mongoose')) { | |
| return mongoose.models.PluginAuth || mongoose.model<IPluginAuth>('PluginAuth', pluginAuthSchema); | |
| } | |