SamlLog.mjs 576 B

123456789101112131415161718192021
  1. import mongoose from '../infrastructure/Mongoose.mjs'
  2. const { Schema } = mongoose
  3. export const SamlLogSchema = new Schema(
  4. {
  5. createdAt: { type: Date, default: () => new Date() },
  6. data: { type: Object },
  7. jsonData: { type: String },
  8. path: { type: String },
  9. providerId: { type: String, default: '' },
  10. samlAssertion: { type: String },
  11. sessionId: { type: String, default: '' },
  12. userId: { type: String, default: '' },
  13. },
  14. {
  15. collection: 'samlLogs',
  16. minimize: false,
  17. }
  18. )
  19. export const SamlLog = mongoose.model('SamlLog', SamlLogSchema)