Created
October 8, 2019 13:58
-
-
Save Triskae/29ef280abf57ebf6318d32d0aa16d87c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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