Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const mongoose = require('mongoose');
- const hotelSchema = new mongoose.Schema({
- name: {
- type: String,
- required: true,
- },
- city: {
- type: String,
- required: true,
- },
- freeRooms: {
- type: Number,
- required: true,
- },
- imgUrl: {
- type: String,
- required: true,
- }
- });
- module.exports = mongoose.model('Hotel', hotelSchema);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement