aboutsummaryrefslogtreecommitdiff
path: root/schema/quote-schema.js
blob: d1c7db87f51b4bd9f9198b8fe6f5d40cb0098c58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const mongoose = require('mongoose');

const reqString = {
    type: String,
    required: true
}

const quoteSchema = mongoose.Schema({
    quoteID: reqString,
    author: reqString,
    authorImage: reqString,
    quote: reqString,
    year: reqString

})

module.exports = mongoose.model('quote', quoteSchema)