text: const mongoose = require('mongoose');
  require('mongoose-currency').loadType(mongoose);
  const Currency = mongoose.Types.Currency;
  const Schema = mongoose.Schema;
  
  const promotionSchema = new Schema({
      name: {
          type: String,
          required: true,
          unique: true
      },
      image: {
          type: String,
          required: true
      },
      label: {
          type: String,
          default: ''
      },
      price: {
          type: Currency,
          required: true,
          min: 0
      },
      description: {
          type: String,
          required: true
      },
      featured: {
          type: Boolean,
          default:false      
      }
  }, {
          timestamps: true
      });
  
  var Promotions = mongoose.model('Promotion', promotionSchema);
  module.exports = Promotions;