1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-04 21:30:05 +00:00
Files
server/src/model/Client.ts
2021-11-05 04:37:43 +05:00

28 lines
484 B
TypeScript

import mongoose, { Schema } from 'mongoose'
export interface ClientPayload {
/**
* Client ID
* @example "someFormattedClientID1234"
*/
clientId: string
/**
* Client Secret
* @example "someRandomCryptoString"
*/
clientSecret: string
}
const ClientSchema = new Schema<ClientPayload>({
clientId: {
type: String,
required: true
},
clientSecret: {
type: String,
required: true
}
})
export default mongoose.model('Client', ClientSchema)