text: const mongoose = require("mongoose");
  const Schema = mongoose.Schema;
  
  const userSchema = new Schema(
    {
      username: {
        type: String,
        require: true,
        trim: true,
      },
      email: {
        type: String,
        require: true,
        trim: true,
        unique: true,
      },
      password: {
        type: String,
        required: true,
        minlength: 8,
        trim: true,
      },
      // userContacts: [
      //   {
      //     type: Schema.Types.ObjectId,
      //     ref: "Contact",
      //   },
      // ],
    },
    {
      timestamps: true,
    }
  );
  
  module.exports = mongoose.model("User", userSchema);
  