chat / packages /data-schemas /src /schema /pluginAuth.ts
helloya20's picture
Upload 2345 files
f0743f4 verified
Raw History Blame Contribute Delete
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;