mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 07:39:02 +02:00
bdc5360bc0
Use the default Mongoose connection pool for all models GitOrigin-RevId: d227b7eb36f130085c9eb1480dc07bd50ba57768
25 lines
464 B
JavaScript
25 lines
464 B
JavaScript
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'
|
|
}
|
|
)
|
|
|
|
exports.OauthApplication = mongoose.model(
|
|
'OauthApplication',
|
|
OauthApplicationSchema
|
|
)
|
|
|
|
exports.OauthApplicationSchema = OauthApplicationSchema
|