text: // external modules imports
  const mongoose = require("mongoose");
  
  const personSchema = new mongoose.Schema(
    {
      name: {
        type: String,
        required: true,
        trim: true,
      },
      email: {
        type: String,
        required: true,
        trim: true,
        lowercase: true,
      },
      mobile: {
        type: String,
        required: true,
      },
      password: {
        type: String,
        required: true,
      },
      avatar: {
        type: String,
      },
    },
    {
      timestamps: true,
    }
  );
  
  // make a model for person
  const Person = mongoose.model("Person", personSchema);
  
  // export the model
  module.exports = Person;
  