text: //  Loading database module
  const mongoose = require("mongoose");
  
  //	Using schema feature from mongoose and calling schemas
  const { Schema } = mongoose;
  
  //	Defining coupon schema
  const CouponSchema = Schema({
  	name: {
  		type: String,
  		required: true
  	},
  	userId: {
  		type: String,
  		default: ""
  	},
  	type: {
  		type: String,
  		required: true
  	},
  	private: {
  		type: Boolean,
  		required: true
  	},
  	qty: {
  		type: Number,
  		default: 0
  	},
  	method: {
  		type: String,
  		required: true
  	},
  	discount: {
  		type: Number,
  		default: 0,
  		required: true
  	},
  	available: {
  		type: Boolean,
  		default: true,
  		required: true
  	},
  	minValue: {
  		type: Number,
  		default: 0
  	},
  	whoUsed: {
  		type: Array,
  		default: []
  	},
  	creationDate: {
  		type: Date,
  		default: Date.now()
  	}
  });
  
  //	Creating collection Coupons on database
  mongoose.model("Coupons", CouponSchema);
  