| 12345678910111213141516171819202122232425 |
- const mongoose = require('../infrastructure/Mongoose')
- const { Schema } = mongoose
- const OauthApplicationSchema = new Schema(
- {
- id: String,
- clientSecret: String,
- grants: [String],
- name: String,
- redirectUris: [String],
- scopes: [String],
- },
- {
- collection: 'oauthApplications',
- minimize: false,
- }
- )
- exports.OauthApplication = mongoose.model(
- 'OauthApplication',
- OauthApplicationSchema
- )
- exports.OauthApplicationSchema = OauthApplicationSchema
|