SamlLog.js 472 B

123456789101112131415161718
  1. const mongoose = require('../infrastructure/Mongoose')
  2. const { Schema } = mongoose
  3. const SamlLogSchema = new Schema(
  4. {
  5. createdAt: { type: Date, default: () => new Date() },
  6. data: { type: Object },
  7. jsonData: { type: String },
  8. providerId: { type: String, default: '' },
  9. sessionId: { type: String, default: '' }
  10. },
  11. {
  12. collection: 'samlLogs'
  13. }
  14. )
  15. exports.SamlLog = mongoose.model('SamlLog', SamlLogSchema)
  16. exports.SamlLogSchema = SamlLogSchema