Skip to content

Instantly share code, notes, and snippets.

@Triskae
Created October 8, 2019 13:58
Show Gist options
  • Save Triskae/29ef280abf57ebf6318d32d0aa16d87c to your computer and use it in GitHub Desktop.
Save Triskae/29ef280abf57ebf6318d32d0aa16d87c to your computer and use it in GitHub Desktop.
const mongoose = require('mongoose');
const eBookSchema = new mongoose.Schema({
title: {type: String},
authorName: {type: String},
isbn: {type: String},
year: {type: String},
pages: {type: String},
language: {type: String},
size: {type: String},
format: {type: String},
category: {type: String},
downloadUrl: {type: String},
description: {type: String},
folderId: {type: String}
});
module.exports = mongoose.model('eBook', eBookSchema);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment