Files
overleaf-cep/services/web/app/src/models/SamlLog.mjs
T
Andrew Rumble 07c827e9fd Merge pull request #29928 from overleaf/ar-last-infrastructure-conversions
[web] last infrastructure conversions

GitOrigin-RevId: ad1aff9b7df0610ed0303157d9e2c8032f32c02b
2025-11-28 09:05:56 +00:00

22 lines
576 B
JavaScript

import mongoose from '../infrastructure/Mongoose.mjs'
const { Schema } = mongoose
export 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,
}
)
export const SamlLog = mongoose.model('SamlLog', SamlLogSchema)