text: 'use strict';
  
  const mongoose = require('mongoose');
  
  const BookSchema = mongoose.Schema({
    name: { type: String, required: true},
    description: { type: String},
    author: {type: String},
    status: { type: String, emum: ['Read', 'Unread', 'Recommended']},
  })
  
  const UserSchema = mongoose.Schema({
    email: { type: String, required: true},
    books: [BookSchema]
  })
  
  const UserModel = mongoose.model('user', UserSchema);
  
  
  module.exports = UserModel;