{"size": 320, "ext": "js", "max_stars_repo_path": "src/models/bookModel.js", "max_stars_repo_name": "mbogokennedy/Home-Books", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/models/bookModel.js", "max_issues_repo_name": "mbogokennedy/Home-Books", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/models/bookModel.js", "max_forks_repo_name": "mbogokennedy/Home-Books", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.0, "max_line_length": 52, "alphanum_fraction": 0.615625}
const mongoose = require('mongoose');

const { Schema } = mongoose;

const bookModel = new Schema(
  {
    title: { type: String },
    description: { type: String },
    author: { type: String },
    rating: { type: String },
    published: { type: String }
  }
);

module.exports = mongoose.model('Books', bookModel);
