text: var mongoose = require("mongoose");
  var Schema = mongoose.Schema;
  
  // Create the Schema
  var UserSchema = new Schema({
    name: {
      type: String,
      required: true,
    },
    email: {
      type: String,
      required: true,
      unique:true
    },
    photo: {
      type: String,
    },
    registration_date: {
        type: Date,
        default:Date.now
    }
  });
  
  const User = mongoose.model("User", UserSchema);
  // Below code used for exporting the Schemas
  // Used when we need to import the below Schemas in another file.
  module.exports = { User: User };
  