text: const mongoose = require("mongoose");
  mongoose.Promise = global.Promise;
  
  const paymentModeSchema = new mongoose.Schema({
    removed: {
      type: Boolean,
      default: false,
    },
    enabled: {
      type: Boolean,
      default: true,
    },
    name: {
      type: String,
      required: true,
    },
    description: {
      type: String,
      required: true,
    },
    created: {
      type: Date,
      default: Date.now,
    },
  });
  
  module.exports = mongoose.model("PaymentMode", paymentModeSchema);
  