const mongoose = require('mongoose'),
      Schema = mongoose.Schema;

const roomSchema = new Schema({
  name: String
});

module.exports = mongoose.model('Room', roomSchema);

const mongoose = require('mongoose'),
      Schema = mongoose.Schema;

const roomSchema = new Schema({
  _id: Schema.Types.ObjectId,
  value: String,
  photo: String
});

module.exports = mongoose.model('Room', roomSchema);

update Room model