text: const mongoose = require("mongoose");
  const Schema = mongoose.Schema;
  
  const NotesSchema = new Schema({
    owner: {
      type: String,
      required: true,
    },
    name: {
      type: String,
      required: true,
    },
    content: {
      type: String,
      required: true,
    },
    date: {
      type: Date,
      default: Date.now,
      required: true,
    },
  });
  
  module.exports = Notes = mongoose.model("notes", NotesSchema);
  