text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  const mongoose = require("mongoose");
  const reviewsSchema = new mongoose.Schema({
      date: {
          type: Date,
          required: true
      },
      rating: {
          type: Number,
          required: true
      },
      comments: {
          type: String,
          required: true,
          maxlength: 500
      },
      restaurant: {
          type: mongoose.Schema.Types.ObjectId,
          ref: 'Restaurant',
          required: true
      },
      user: {
          type: mongoose.Schema.Types.ObjectId,
          ref: 'User',
          required: true
      }
  });
  exports.Reviews = mongoose.model('Review', reviewsSchema);
  