text: const mongoose = require('mongoose');
  
  const reviewSchema = new mongoose.Schema(
    {
      author: { type: mongoose.Schema.Types.ObjectId, ref: 'User' },
      content: String,
      rating: { type: Number, default: 0, max: 5, min: 0 }
    },
    {
      timestamps: true,
      toJSON: {
        transform(doc, ret) {
          delete ret.createdAt;
          delete ret.updatedAt;
          delete ret.__v;
          return ret;
        }
      }
    }
  );
  
  module.exports = mongoose.model('Review', reviewSchema);
  