| 123456789101112131415161718192021222324252627 |
- const mongoose = require('mongoose');
- const RestaurantSchema = new mongoose.Schema(
- {
- name: {
- type: String,
- },
- index: {
- type: Number,
- },
- adress: {
- type: String,
- },
- latitude: {
- type: Number
- },
- longitude: {
- type: Number
- },
- }
- );
- exports.RestaurantSchema = RestaurantSchema;
- Restaurant = mongoose.model('Restaurant', RestaurantSchema );
- exports.Restaurant = Restaurant;
|