GlobalNotificationSettingParentSchema.js 366 B

123456789101112
  1. const mongoose = require('mongoose');
  2. /**
  3. * parent schema for GlobalNotificationSetting model
  4. */
  5. const globalNotificationSettingSchema = new mongoose.Schema({
  6. isEnabled: { type: Boolean, required: true, default: true },
  7. triggerPath: { type: String, required: true },
  8. triggerEvents: { type: [String] },
  9. });
  10. module.exports = globalNotificationSettingSchema;