mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 19:11:56 +02:00
Upgrade Mongoose and the Mongo driver in web GitOrigin-RevId: 2cad1aabe57eae424a9e4c68b2e0062f0e78ffaf
23 lines
603 B
JavaScript
23 lines
603 B
JavaScript
const mongoose = require('../infrastructure/Mongoose')
|
|
const { Schema } = mongoose
|
|
|
|
const SamlLogSchema = new Schema(
|
|
{
|
|
createdAt: { type: Date, default: () => new Date() },
|
|
data: { type: Object },
|
|
jsonData: { type: String },
|
|
path: { type: String },
|
|
providerId: { type: String, default: '' },
|
|
samlAssertion: { type: String },
|
|
sessionId: { type: String, default: '' },
|
|
userId: { type: String, default: '' },
|
|
},
|
|
{
|
|
collection: 'samlLogs',
|
|
minimize: false,
|
|
}
|
|
)
|
|
|
|
exports.SamlLog = mongoose.model('SamlLog', SamlLogSchema)
|
|
exports.SamlLogSchema = SamlLogSchema
|