const mongoose = require("mongoose"); const restaurantSchema = mongoose.Schema({ _id: mongoose.Types.ObjectId, name: String, city: String, imgUrl: String, workingHours: String, hidden: Boolean, dishes: [mongoose.Types.ObjectId], }); module.exports = mongoose.model("Restaurant", restaurantSchema);