text: const mongoose = require("mongoose");
  
  const schema = new mongoose.Schema(
    {
      name: {
        type: String,
        required: [true, "can't be blank."],
        trim: true,
      },
      product: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "Product",
      },
      user: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "User",
      },
    },
    { timestamps: true }
  );
  
  module.exports = mongoose.model("Project", schema);
  