Untitled
unknown
plain_text
a year ago
363 B
7
Indexable
// models/Review.js
const mongoose = require('mongoose');
const reviewSchema = new mongoose.Schema({
breweryId: { type: mongoose.Schema.Types.ObjectId, ref: 'Brewery' },
rating: { type: Number, required: true },
description: String,
// other fields as needed
});
const Review = mongoose.model('Review', reviewSchema);
module.exports = Review;
Editor is loading...
Leave a Comment